help to make gangzones
#1

hi.
i want to make a gangzone , players can capture that .
i maked all captureable gangzones and any things i do need to capture the gang zones , but i want to add if player leave the gang zone is in capturing capturing will be stop .
i did this
Quote:

forward isPlayerInArea();

Quote:

public isPlayerInArea()
{
new Float:X, Float:Y, Float:Z;
for(new i=0; i < MAX_PLAYERS; i++)
{
GetPlayerPos(i, X, Y, Z);
if (X <= 1807.9355 && X >= 1774.2284 && Y <= -1936.0048 && Y >= -1885.2125)
{
GangZoneStopFlashForAll(captured);
GangZoneShowForAll(captured, GetPlayerColor(playerid));
}
}
}

i thinked this is for my bad gang zone system but when i did replaced
Quote:

SetPlayerHealth(i, -999999.9);

with
Quote:

GangZoneStopFlashForAll(captured);
GangZoneShowForAll(captured, GetPlayerColor(playerid));

that didn't worked and i dont know what is isplayerinarea problem .
pls help me.
and sorry for my bad english .
good bye ;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)