Checking if near a flag.
#4

pawn Код:
if(IsPlayerInRangeOfObject(playerid, range, PunaneLipp))
    return SendClientMessage(playerid, -1, "a");


stock IsPlayerInRangeOfObject(playerid, Float:range, objectid) {
    new Float:pos[3];
    GetObjectPos(objectid, pos[0], pos[1], pos[2]);
    return IsPlayerInRangeOfPoint(playerid, range, pos[0], pos[1], pos[2]);
}
Reply


Messages In This Thread
Checking if near a flag. - by Dan. - 13.05.2012, 14:38
Re: Checking if near a flag. - by thefatshizms - 13.05.2012, 14:50
Re: Checking if near a flag. - by Dan. - 13.05.2012, 14:51
Re: Checking if near a flag. - by zbt - 13.05.2012, 14:57
Re: Checking if near a flag. - by Dan. - 13.05.2012, 16:27
Re: Checking if near a flag. - by Vince - 13.05.2012, 16:32
Re: Checking if near a flag. - by Dan. - 13.05.2012, 16:36

Forum Jump:


Users browsing this thread: 2 Guest(s)