Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //----Territorio
- new gZonePark;
- new LimiteTerritorioPark[MAX_PLAYERS];
- forward DominarPark(playerid);
- ----
- depois la ja no fim :D
- //-
- public DominarPark(playerid)
- {
- if(PlayerInfo[playerid][pRECIFE] >= 2)
- {
- new string[256];
- new nick[24];
- GetPlayerName(playerid, nick, 30);
- LimiteTerritorioPark[playerid] = 1;
- GangZoneHideForAll(gZonePark);
- GangZoneShowForAll(gZonePark, TEAM_RECIFE);
- format(string, sizeof(string), "%s dominou o território da Boate, quem manda agora é o Comando Vermelho !", nick);
- SendClientMessageToAll(TEAM_RECIFE, string);
- }
- return 1;
- }
- //---
- if(newkeys == KEY_SECONDARY_ATTACK)
- {
- new string[528];
- new nick[30];
- if(levelrecife[playerid] >= 2 || PlayerInfo[playerid][pRECIFE] >= 1)
- {
- if(PlayerToPoint(1.0, playerid, 184.1385,-107.5335,2.0234))
- {
- if(LimiteTerritorioPark[playerid] == 1)
- {
- GangZoneFlashForAll(gZonePark,pRECIFE);
- LimiteTerritorioPark[playerid] = 0;
- format(string, 256, "%s e o Comando Vermelho estão tomando o território da Boate !", nick);
- SendClientMessageToAll(pRECIFE, string);
- }
- }
- }
- }
- return 1;
- }
- //-
- no OnGameModeInit
- bota um desse
- e no OnPlayerConnect
- bota um desse
- GangZoneShowForPlayer(playerid, gZonePark, 0xFFFFFFA1);
- gZonePark = GangZoneCreate(-245.2354, -525.5044, 537.1823, 245.2354);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement