new zonaid;
new zonatime;
new zonas;
new zonatimer;
new PlayerText:klecanjetd;
new dodajezonu;
new zonalvl;
new gFam;
#define MAX_ZONA 200 //-----ovde namestite koliko zone ocete na modu :)
enum gzone
{
Float:mX,
Float:mY,
Float:vvX,
Float:vvY,
zonaTeam,
gPreuzeto,
gGlavna,
Float:gPickupx,
Float:gPickupy,
Float:gPickupz,
};
new GZ;
new ZonaID[sizeof(GZ)];
new Text3D:ZonaLabel[sizeof(GZ)];
new ZonaPickup[sizeof(GZ)];
YCMD:napravizonu(playerid, params[], help)
{
#pragma unused help
if(PlayerInfo < 6)
{
SCM(playerid, -1, ""BOJA"* Greska "BELA"Niste ovlasteni da koristite ovu komandu!");
return 1;
}
new string;
new cosid = 0;
for(new b = 0; b < sizeof(GZ); b++)
{
if(GZ > 0)
{
cosid = b + 1;
}
}
if(cosid > 500) return SCM(playerid, -1, ""BOJA"* Greska "BELA"Ne mozete napraviti vise od 200 zona!");
new team;
if(sscanf(params, "i",team))
{
SCM(playerid, -1, ""ZUTA"/napravizonu ");
SCM(playerid, -1, ""ZUTA"Team: "CRVENA"1"ZUTA". The Vinci Family");
SCM(playerid, -1, ""ZUTA"Team: "CRVENA"2"ZUTA". Black Dragon Triads");
SCM(playerid, -1, ""ZUTA"Team: "CRVENA"3"ZUTA". Groove Street Family");
SCM(playerid, -1, ""ZUTA"Team: "CRVENA"4"ZUTA". Ballas");
SCM(playerid, -1, ""ZUTA"Team: "CRVENA"5"ZUTA". Condor");
SCM(playerid, -1, ""ZUTA"Team: "CRVENA"6"ZUTA". Hitman");
SCM(playerid, -1, ""ZUTA"Team: "CRVENA"7"ZUTA". Blue Lagoon");
SCM(playerid, -1, ""ZUTA"Team: "CRVENA"8"ZUTA". Blue Terra");
SCM(playerid, -1, ""ZUTA"Team: "CRVENA"9"ZUTA". The Russian Mafia");
SCM(playerid, -1, ""ZUTA"Team: "CRVENA"10"ZUTA". Yakuza");
SCM(playerid, -1, ""ZUTA"Team: "CRVENA"11"ZUTA". Black Cobra Corporation");
SCM(playerid, -1, ""ZUTA"Team: "CRVENA"12"ZUTA". DeathRow");
SCM(playerid, -1, ""ZUTA"Team: "CRVENA"13"ZUTA". Russian Mafia");
return 1;
}
GZ = team;
format(string,sizeof(string),"Zona ID: "ZUTA"%d "BELA"je napravljena.",cosid);
SCM(playerid,-1,string);
dodajezonu = cosid;
zonalvl = 1;
SacuvajZonu(cosid);
new str;
format(str,128, ""BOJA"*** "BELA"Admin %s je napravio zonu pod ID-om: "ZUTA"%d "CRVENA"***", GetName(playerid), cosid);
ABroadCast(-1,str,1);
SCM(playerid, -1, ""ZELENA"NAPOMENA: Sada morate definisati regiju,Definisete je sa slovom N.");
SCM(playerid, -1, ""ZELENA"Oznacite tacku i idite diagonalno na drugu.");
SCM(playerid, -1, ""ZELENA"ZONA IDE OD LEVO DIAGONALNO NA DESNO!");
return 1;
}