SA-MP Forums Archive
pos Z - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: pos Z (/showthread.php?tid=67157)



pos Z - Headshot1108 - 27.02.2009

hi i have this:

pawn Код:
public RefUpdate()
{
new Float:x,Float:y,Float:z;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(gTeam[i] == TEAM_REF)
{
GetPlayerPos(i,x,y,z);
if(z < 37)
{
SpawnPlayer(i);
SetPlayerHealth(i,100);
SendClientMessage(i,COLOR_RED,"Dont go from the Tower!");
}
}
}
return 1;
}
in my high update (i made a clanwar)
but its dont work.

whats wrong?


Re: pos Z - Jefff - 27.02.2009

Because z > 37 ? xD


Re: pos Z - Headshot1108 - 27.02.2009

Quote:
Originally Posted by Jefff
Because z > 37 ? xD
i've already testet, but its dont work


Re: pos Z - Headshot1108 - 27.02.2009

any1?


Re: pos Z - Norn - 27.02.2009

How did you honestly expect that check to work? Theres so so many possibilities that it wont be 37 and under.