#1

I cant seem to get my IsPlayerInRangeOfPoint function working

can someone possibly give me a example code with it built in? i tried wiki and inserted it, no difference :L



thx
Reply
#2

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 2.0, X, Y, Z))
{
//what happens if you are in range
}
else
{
// what happens if you don't are in range
}
There ya go lolrolf
Reply
#3

pawn Код:
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (PRESSED(KEY_CROUCH))
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0, X, Y, Z))
                {
                     //do something, like gates?
                }
        return 1;
    }
    return 1;
}
Reply
#4

Quote:
Originally Posted by bartje01
Посмотреть сообщение
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 2.0, X, Y, Z))
{
//what happens if you are in range
}
else
{
// what happens if you don't are in range
}
There ya go lolrolf

yu are THE MAN
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)