Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:turfs(playerid, params[])
- {
- if(TurfsDisp[playerid] == 0)
- {
- TurfsDisp[playerid] = 1;
- for(new i = 1; i < sizeof(Turfs); i++)
- {
- if(TurfInfo[i][zOwned] == 0)
- {
- GangZoneShowForPlayer(playerid, Turfs[i], 0xFFFFFF99); //None
- }
- if(TurfInfo[i][zOwned] == 6)
- {
- GangZoneShowForPlayer(playerid, Turfs[i], 0x198A1399); //RIFA
- }
- if(TurfInfo[i][zOwned] == 7)
- {
- GangZoneShowForPlayer(playerid, Turfs[i], 0xB125E899); //TRIADS
- }
- }
- ArataLinii(playerid);
- }
- else
- {
- TurfsDisp[playerid] = 0;
- AscundeLinii(playerid);
- for(new i = 1; i < sizeof(Turfs); i++)
- {
- GangZoneHideForPlayer(playerid, Turfs[i]);
- }
- }
- return 1;
- }
- stock ArataLinii(playerid)
- {
- for(new i=0; i<sizeof(Turfs)*5; i++)
- {
- if(MGangZones[i][exista])
- {
- GangZoneShowForPlayer(playerid,MGangZones[i][linie][0],0xFFFFFF99);
- GangZoneShowForPlayer(playerid,MGangZones[i][linie][1],0xFFFFFF99);
- GangZoneShowForPlayer(playerid,MGangZones[i][linie][2],0xFFFFFF99);
- GangZoneShowForPlayer(playerid,MGangZones[i][linie][3],0xFFFFFF99);
- }
- }
- SendClientMessage(playerid, COLOR_YELLOW, "[TURFS]: ON.");
- }
- stock AscundeLinii(playerid)
- {
- for(new i=0; i<sizeof(Turfs)*5; i++)
- {
- if(MGangZones[i][exista])
- {
- GangZoneHideForPlayer(playerid,MGangZones[i][linie][0]);
- GangZoneHideForPlayer(playerid,MGangZones[i][linie][1]);
- GangZoneHideForPlayer(playerid,MGangZones[i][linie][2]);
- GangZoneHideForPlayer(playerid,MGangZones[i][linie][3]);
- }
- }
- SendClientMessage(playerid, COLOR_YELLOW, "[TURFS]: OFF.");
- }
Advertisement
Add Comment
Please, Sign In to add comment