Why doesnt this work?
#1

I'm working on a DM zone, and I want players to only have weapons when inside that zone.
This code doesnt give me any errors when compiled in my GM, but it doesn't seem to work in the server.

public isPlayerInArea()
{
new Float:X, Float:Y, Float:Z;
for(new i=0; i < MAX_PLAYERS; i++)
{
GetPlayerPos(i, X, Y, Z);
if (X <= 2806.4766 && X >= 2566.6860 && Y <= -2332.2461 && Y >= -2562.3301) // area 1
{
}
else
{
ResetPlayerWeapons(i);
}
}
}
Reply


Messages In This Thread
Why doesnt this work? - by Gemini - 07.07.2011, 11:54
Re: Why doesnt this work? - by Edvin - 07.07.2011, 12:07
Re: Why doesnt this work? - by Gemini - 07.07.2011, 12:47
Re: Why doesnt this work? - by Shadoww5 - 07.07.2011, 14:21

Forum Jump:


Users browsing this thread: 1 Guest(s)