pirateship command help
#10

I also just want to let you know you don't need to do
IsPlayerInRangeOfPoint return 1
return 0
You can simply return IsPlayerInRangeOfPoint, since that returns false / 0 if he's not in range, and true / 1 if he is.
pawn Код:
IsPlayerInRangeOfVehicle(playerid, veh, Float: range)
{
    if( !IsPlayerConnected( playerid ) || !IsValidVehicle( veh ) ) return 0;
    new
        Float: x,
        Float: y,
        Float: z
    ;
    GetVehiclePos( veh, x, y, z );
    return IsPlayerInRangeOfPoint(playerid, range, x, y, z);
}
Reply


Messages In This Thread
pirateship command help - by PSYCHOBABYKILLA - 26.03.2015, 11:24
Re: [HELP]pirateship command help - by CalvinC - 26.03.2015, 11:27
Re: [HELP]pirateship command help - by Aly - 26.03.2015, 11:31
Re: pirateship command help - by PSYCHOBABYKILLA - 26.03.2015, 21:53
Re: pirateship command help - by Pottus - 26.03.2015, 21:55
Re: pirateship command help - by PSYCHOBABYKILLA - 26.03.2015, 22:05
Re: pirateship command help - by Pottus - 26.03.2015, 22:09
Re: pirateship command help - by PSYCHOBABYKILLA - 26.03.2015, 23:22
Re: pirateship command help - by PSYCHOBABYKILLA - 27.03.2015, 02:34
Re: pirateship command help - by CalvinC - 27.03.2015, 05:42

Forum Jump:


Users browsing this thread: 1 Guest(s)