IsPlayerInRangeOfPoint Problem!
#2

Could you possibly do something like this?

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(i,x,y,z);
 
    if(IsPlayerInRangeOfPoint(i, 7.0, 264.1581,1820.8364,9.4387))
    {
        if(z>9 && z<10) // or if(z==9.4387) but I'm not completely sure that would work.
        {
            new oname[30];
            new string[156];
            GetPlayerName(i,oname,30);
            format(string,sizeof(string),"[SERVER] %s(%d) Has Been Kicked! - Bug Abuse!",oname,i);
            SendClientMessageToAll(COLOR_ADMIN,string);
            Kick(i);
        }
    }
}
Reply


Messages In This Thread
IsPlayerInRangeOfPoint Problem! - by Kyle - 11.03.2010, 06:53
Re: IsPlayerInRangeOfPoint Problem! - by Chris. - 11.03.2010, 07:03
Re: IsPlayerInRangeOfPoint Problem! - by MenaceX^ - 11.03.2010, 07:25
Re: IsPlayerInRangeOfPoint Problem! - by Deat_Itself - 11.03.2010, 07:31
Re: IsPlayerInRangeOfPoint Problem! - by deather - 11.03.2010, 07:36
Re: IsPlayerInRangeOfPoint Problem! - by MenaceX^ - 11.03.2010, 07:41
Re: IsPlayerInRangeOfPoint Problem! - by Kyle - 11.03.2010, 14:54
Re: IsPlayerInRangeOfPoint Problem! - by shady91 - 11.03.2010, 15:50
Re: IsPlayerInRangeOfPoint Problem! - by ¤Adas¤ - 11.03.2010, 15:57

Forum Jump:


Users browsing this thread: 1 Guest(s)