help to make gangzones - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help to make gangzones (
/showthread.php?tid=461590)
help to make gangzones -
soroushdarkness13 - 02.09.2013
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 ;