Why doesnt this work?
#4

PHP код:
stock IsPlayerInArea(playeridFloat:MinXFloat:MinYFloat:MaxXFloat:MaxY)
{
    new 
Float:XFloat:YFloat:Z;
    
GetPlayerPos(playeridXYZ);
    if(
>= MinX && <= MaxX && >= MinY && <= MaxY
    {
        return 
1;
    }
    return 
0;
}

public 
Check()
{
    new 
Float:XFloat:YFloat:Z;
    for(new 
i=0MAX_PLAYERSi++)
    {
        if(!
IsPlayerInArea(i2566.6860, -2562.33012806.4766, -2332.2461))
        {
            
ResetPlayerWeapons(i);
        }
    }
    return 
1;

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)