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; i < sizeof(TurfInfo); ++i)
- {
- if(TurfInfo[i][zOwned] == 6)
- {
- GangZoneShowForPlayer(playerid, Turfs[i], 0x198A1399); //Grove Street
- }
- if(TurfInfo[i][zOwned] == 7)
- {
- GangZoneShowForPlayer(playerid, Turfs[i], 0xB125E899); //Ballas
- }
- }
- ArataLinii(playerid);
- }
- else
- {
- TurfsDisp[playerid] = 0;
- AscundeLinii(playerid);
- for(new i; i < sizeof(TurfInfo); ++i)
- {
- GangZoneHideForPlayer(playerid, Turfs[i]);
- }
- }
- return 1;
- }
- stock GangZoneCreateM( Float:MinX,Float:MinY,Float:MaxX,Float:MaxY)
- {
- new gangid = GangZoneCreate(MinX,MinY,MaxX,MaxY);
- MGangZones[gangid][exista] = true;
- MGangZones[gangid][linie][0] = GangZoneCreate( MinX-2.0, MinY, MinX+2.0, MaxY );
- MGangZones[gangid][linie][1] = GangZoneCreate( MinX-2.0, MaxY-2.0, MaxX, MaxY+2.0 );
- MGangZones[gangid][linie][2] = GangZoneCreate( MaxX-2.0, MinY, MaxX+2.0, MaxY );
- MGangZones[gangid][linie][3] = GangZoneCreate( MinX-2.0, MinY-2.0, MaxX, MinY+2.0 );
- return gangid;
- }
- stock ArataLinii(playerid)
- {
- for(new i; 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; 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.");
- }
Add Comment
Please, Sign In to add comment