Custura

Untitled

Apr 17th, 2017
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. CMD:turfs(playerid, params[])
  2. {
  3. if(TurfsDisp[playerid] == 0)
  4. {
  5. TurfsDisp[playerid] = 1;
  6. for(new i = 1; i < sizeof(Turfs); i++)
  7. {
  8. if(TurfInfo[i][zOwned] == 0)
  9. {
  10. GangZoneShowForPlayer(playerid, Turfs[i], 0xFFFFFF99); //None
  11. }
  12. if(TurfInfo[i][zOwned] == 6)
  13. {
  14. GangZoneShowForPlayer(playerid, Turfs[i], 0x198A1399); //RIFA
  15. }
  16. if(TurfInfo[i][zOwned] == 7)
  17. {
  18. GangZoneShowForPlayer(playerid, Turfs[i], 0xB125E899); //TRIADS
  19. }
  20. }
  21. ArataLinii(playerid);
  22. }
  23. else
  24. {
  25. TurfsDisp[playerid] = 0;
  26. AscundeLinii(playerid);
  27. for(new i = 1; i < sizeof(Turfs); i++)
  28. {
  29. GangZoneHideForPlayer(playerid, Turfs[i]);
  30. }
  31. }
  32. return 1;
  33. }
  34.  
  35.  
  36.  
  37. stock ArataLinii(playerid)
  38. {
  39. for(new i=0; i<sizeof(Turfs)*5; i++)
  40. {
  41. if(MGangZones[i][exista])
  42. {
  43. GangZoneShowForPlayer(playerid,MGangZones[i][linie][0],0xFFFFFF99);
  44. GangZoneShowForPlayer(playerid,MGangZones[i][linie][1],0xFFFFFF99);
  45. GangZoneShowForPlayer(playerid,MGangZones[i][linie][2],0xFFFFFF99);
  46. GangZoneShowForPlayer(playerid,MGangZones[i][linie][3],0xFFFFFF99);
  47. }
  48. }
  49. SendClientMessage(playerid, COLOR_YELLOW, "[TURFS]: ON.");
  50. }
  51.  
  52. stock AscundeLinii(playerid)
  53. {
  54. for(new i=0; i<sizeof(Turfs)*5; i++)
  55. {
  56. if(MGangZones[i][exista])
  57. {
  58. GangZoneHideForPlayer(playerid,MGangZones[i][linie][0]);
  59. GangZoneHideForPlayer(playerid,MGangZones[i][linie][1]);
  60. GangZoneHideForPlayer(playerid,MGangZones[i][linie][2]);
  61. GangZoneHideForPlayer(playerid,MGangZones[i][linie][3]);
  62. }
  63. }
  64. SendClientMessage(playerid, COLOR_YELLOW, "[TURFS]: OFF.");
  65. }
Advertisement
Add Comment
Please, Sign In to add comment