Djolenzy

Untitled

Apr 2nd, 2018
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. new zonaid[MAX_PLAYERS];
  2. new zonatime[MAX_PLAYERS];
  3. new zonas[MAX_PLAYERS];
  4. new zonatimer[MAX_PLAYERS];
  5. new PlayerText:klecanjetd[MAX_PLAYERS];
  6. new dodajezonu[MAX_PLAYERS];
  7. new zonalvl[MAX_PLAYERS];
  8. new gFam[MAX_PLAYERS];
  9. #define MAX_ZONA 200 //-----ovde namestite koliko zone ocete na modu :)
  10. enum gzone
  11. {
  12. Float:mX,
  13. Float:mY,
  14. Float:vvX,
  15. Float:vvY,
  16. zonaTeam,
  17. gPreuzeto,
  18. gGlavna,
  19. Float:gPickupx,
  20. Float:gPickupy,
  21. Float:gPickupz,
  22. };
  23. new GZ[MAX_ZONA][gzone];
  24. new ZonaID[sizeof(GZ)];
  25. new Text3D:ZonaLabel[sizeof(GZ)];
  26. new ZonaPickup[sizeof(GZ)];
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33. YCMD:napravizonu(playerid, params[], help)
  34. {
  35. #pragma unused help
  36. if(PlayerInfo[playerid][pAdmin] < 6)
  37. {
  38. SCM(playerid, -1, ""BOJA"* Greska "BELA"Niste ovlasteni da koristite ovu komandu!");
  39. return 1;
  40. }
  41. new string[512];
  42. new cosid = 0;
  43. for(new b = 0; b < sizeof(GZ); b++)
  44. {
  45. if(GZ[b][zonaTeam] > 0)
  46. {
  47. cosid = b + 1;
  48. }
  49. }
  50. if(cosid > 500) return SCM(playerid, -1, ""BOJA"* Greska "BELA"Ne mozete napraviti vise od 200 zona!");
  51. new team;
  52. if(sscanf(params, "i",team))
  53. {
  54. SCM(playerid, -1, ""ZUTA"/napravizonu [Team]");
  55. SCM(playerid, -1, ""ZUTA"Team: "CRVENA"1"ZUTA". The Vinci Family");
  56. SCM(playerid, -1, ""ZUTA"Team: "CRVENA"2"ZUTA". Black Dragon Triads");
  57. SCM(playerid, -1, ""ZUTA"Team: "CRVENA"3"ZUTA". Groove Street Family");
  58. SCM(playerid, -1, ""ZUTA"Team: "CRVENA"4"ZUTA". Ballas");
  59. SCM(playerid, -1, ""ZUTA"Team: "CRVENA"5"ZUTA". Condor");
  60. SCM(playerid, -1, ""ZUTA"Team: "CRVENA"6"ZUTA". Hitman");
  61. SCM(playerid, -1, ""ZUTA"Team: "CRVENA"7"ZUTA". Blue Lagoon");
  62. SCM(playerid, -1, ""ZUTA"Team: "CRVENA"8"ZUTA". Blue Terra");
  63. SCM(playerid, -1, ""ZUTA"Team: "CRVENA"9"ZUTA". The Russian Mafia");
  64. SCM(playerid, -1, ""ZUTA"Team: "CRVENA"10"ZUTA". Yakuza");
  65. SCM(playerid, -1, ""ZUTA"Team: "CRVENA"11"ZUTA". Black Cobra Corporation");
  66. SCM(playerid, -1, ""ZUTA"Team: "CRVENA"12"ZUTA". DeathRow");
  67. SCM(playerid, -1, ""ZUTA"Team: "CRVENA"13"ZUTA". Russian Mafia");
  68. return 1;
  69. }
  70. GZ[cosid][zonaTeam] = team;
  71. format(string,sizeof(string),"Zona ID: "ZUTA"%d "BELA"je napravljena.",cosid);
  72. SCM(playerid,-1,string);
  73. dodajezonu[playerid] = cosid;
  74. zonalvl[playerid] = 1;
  75. SacuvajZonu(cosid);
  76. new str[126];
  77. format(str,128, ""BOJA"*** "BELA"Admin %s je napravio zonu pod ID-om: "ZUTA"%d "CRVENA"***", GetName(playerid), cosid);
  78. ABroadCast(-1,str,1);
  79. SCM(playerid, -1, ""ZELENA"NAPOMENA: Sada morate definisati regiju,Definisete je sa slovom N.");
  80. SCM(playerid, -1, ""ZELENA"Oznacite tacku i idite diagonalno na drugu.");
  81. SCM(playerid, -1, ""ZELENA"ZONA IDE OD LEVO DIAGONALNO NA DESNO!");
  82. return 1;
  83. }
Advertisement
Add Comment
Please, Sign In to add comment