How to check....
#1

Hello,
Just wanted to ask that how to check if player is near a vehicle.
ThAnKs!
Reply
#2

IsPlayerInRangeOfPoint?

GetVehiclePos?

Etcetra?
Reply
#3

Quote:
Originally Posted by TaLhA XIV
Посмотреть сообщение
Hello,
Just wanted to ask that how to check if player is near a vehicle.
ThAnKs!
pawn Код:
stock IsPlayerNearVehicle(playerid,vehicleid)
{
    new Float:VX,Float:VY,Float:VZ;
    GetVehiclePos(vehicleid,VX,VY,VZ);
    if(IsPlayerInRangeOfPoint(playerid,5.0,VX,VY,VZ)) return 1;
    else return 0;
}
hope this helps ?
Reply
#4

Nevermind...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)