Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.27 KB | None | 0 0
  1. //----Territorio
  2. new gZonePark;
  3. new LimiteTerritorioPark[MAX_PLAYERS];
  4. forward DominarPark(playerid);
  5.  
  6.  
  7. ----
  8.  
  9. depois la ja no fim :D
  10. //-
  11. public DominarPark(playerid)
  12. {
  13. if(PlayerInfo[playerid][pRECIFE] >= 2)
  14. {
  15. new string[256];
  16. new nick[24];
  17. GetPlayerName(playerid, nick, 30);
  18. LimiteTerritorioPark[playerid] = 1;
  19. GangZoneHideForAll(gZonePark);
  20. GangZoneShowForAll(gZonePark, TEAM_RECIFE);
  21. format(string, sizeof(string), "%s dominou o território da Boate, quem manda agora é o Comando Vermelho !", nick);
  22. SendClientMessageToAll(TEAM_RECIFE, string);
  23. }
  24. return 1;
  25. }
  26.  
  27. //---
  28.  
  29. if(newkeys == KEY_SECONDARY_ATTACK)
  30. {
  31. new string[528];
  32. new nick[30];
  33. if(levelrecife[playerid] >= 2 || PlayerInfo[playerid][pRECIFE] >= 1)
  34. {
  35. if(PlayerToPoint(1.0, playerid, 184.1385,-107.5335,2.0234))
  36. {
  37. if(LimiteTerritorioPark[playerid] == 1)
  38. {
  39. GangZoneFlashForAll(gZonePark,pRECIFE);
  40. LimiteTerritorioPark[playerid] = 0;
  41. format(string, 256, "%s e o Comando Vermelho estão tomando o território da Boate !", nick);
  42. SendClientMessageToAll(pRECIFE, string);
  43. }
  44. }
  45. }
  46. }
  47. return 1;
  48. }
  49. //-
  50. no OnGameModeInit
  51. bota um desse
  52.  
  53. e no OnPlayerConnect
  54. bota um desse
  55.  
  56. GangZoneShowForPlayer(playerid, gZonePark, 0xFFFFFFA1);
  57. gZonePark = GangZoneCreate(-245.2354, -525.5044, 537.1823, 245.2354);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement