Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new zonaid[MAX_PLAYERS];
- new zonatime[MAX_PLAYERS];
- new zonas[MAX_PLAYERS];
- new zonatimer[MAX_PLAYERS];
- new PlayerText:klecanjetd[MAX_PLAYERS];
- new dodajezonu[MAX_PLAYERS];
- new zonalvl[MAX_PLAYERS];
- new gFam[MAX_PLAYERS];
- #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[MAX_ZONA][gzone];
- new ZonaID[sizeof(GZ)];
- new Text3D:ZonaLabel[sizeof(GZ)];
- new ZonaPickup[sizeof(GZ)];
- YCMD:napravizonu(playerid, params[], help)
- {
- #pragma unused help
- if(PlayerInfo[playerid][pAdmin] < 6)
- {
- SCM(playerid, -1, ""BOJA"* Greska "BELA"Niste ovlasteni da koristite ovu komandu!");
- return 1;
- }
- new string[512];
- new cosid = 0;
- for(new b = 0; b < sizeof(GZ); b++)
- {
- if(GZ[b][zonaTeam] > 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 [Team]");
- 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[cosid][zonaTeam] = team;
- format(string,sizeof(string),"Zona ID: "ZUTA"%d "BELA"je napravljena.",cosid);
- SCM(playerid,-1,string);
- dodajezonu[playerid] = cosid;
- zonalvl[playerid] = 1;
- SacuvajZonu(cosid);
- new str[126];
- 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;
- }
Advertisement
Add Comment
Please, Sign In to add comment