Guest User

GangZone By Vini Kuliveguisky B2L

a guest
Aug 2nd, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. public IBallasxVagos(playerid)
  2. {
  3. new string[128];
  4. new playername[MAX_PLAYER_NAME];
  5. if(provocoidlewood[playerid] == 1)
  6. {
  7. for(new player; player<MAX_PLAYERS; player++)
  8. {
  9. if(PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11 && PlayerInfo[playerid][pLider] == 10 || PlayerInfo[playerid][pMembro] == 10 && IsPlayerInPlace(playerid,1905.908,-1810.773, 2227.908,-1530.773))
  10. {
  11. format(string, sizeof(string), "[TERRITÓRIO]: O combate em Idlewood foi prolongado. ");
  12. SendBallasMessage(COLOR_WHITE, string, 1);
  13. format(string, sizeof(string), "[TERRITÓRIO]: O combate em Idlewood foi prolongado. ");
  14. SendVagosMessage(COLOR_WHITE, string, 1);
  15. tempoidlewood = SetTimerEx("IBallasxVagos", 120000, 0, "i", playerid);
  16. }
  17. }
  18. if(PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11 && IsPlayerInPlace(playerid,1905.908,-1810.773, 2227.908,-1530.773))
  19. {
  20. GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
  21. format(string, sizeof(string), "[TERRITÓRIO]: Ballas conseguiram tomar o controle de Idlewood. ");
  22. SendClientMessageToAll(COLOR_YELLOW, string);
  23. GangZoneStopFlashForAll(Idlewood);
  24. GangZoneShowForAll(Idlewood, COR_BALLAS);
  25. Dominando[playerid] = 0;
  26. provocoidlewood[playerid] = 0;
  27. guerraemidlewood = 0;
  28. donoidlewood = 2;
  29. KillTimer(tempoidlewood);
  30. return 1;
  31. }
  32. else if(PlayerInfo[playerid][pMembro] == 10 || PlayerInfo[playerid][pLider] == 10 && IsPlayerInPlace(playerid,1905.908,-1810.773, 2227.908,-1530.773))
  33. {
  34. GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
  35. format(string, sizeof(string), "[TERRITÓRIO]: Vagos consegue manter o controle de Idlewood. ");
  36. SendClientMessageToAll(COLOR_YELLOW, string);
  37. GangZoneStopFlashForAll(Idlewood);
  38. GangZoneShowForAll(Idlewood, COR_VAGOS);
  39. Dominando[playerid] = 0;
  40. provocoidlewood[playerid] = 0;
  41. guerraemidlewood = 0;
  42. donoidlewood = 4;
  43. KillTimer(tempoidlewood);
  44. return 1;
  45. }
  46. else
  47. {
  48. format(string, sizeof(string), "[TERRITÓRIO]: O território em Idlewood está livre de Gangsters!");
  49. SendClientMessageToAll(COLOR_YELLOW, string);
  50. GangZoneStopFlashForAll(Idlewood);
  51. GangZoneShowForAll(Idlewood, Cinza);
  52. Dominando[playerid] = 0;
  53. provocoidlewood[playerid] = 0;
  54. guerraemidlewood = 0;
  55. donoidlewood = 0;
  56. KillTimer(tempoidlewood);
  57. return 1;
  58. }
  59. }
  60. return 1;
  61. }
Add Comment
Please, Sign In to add comment