Still need help on checking if a player is in a vehicle
#1

Hi can i get the proper usage of the function which will check whether or not a player is inside a vehicle, obviously not the server side ID but the actual vehicle model.

Will reply when i can as watching Fulham play agains Man Utd :P
Reply
#2

Quote:
Originally Posted by NewerthRoleplay
Посмотреть сообщение
Hi can i get the proper usage of the function which will check whether or not a player is inside a vehicle, obviously not the server side ID but the actual vehicle model.

Will reply when i can as watching Fulham play agains Man Utd :P
pawn Код:
if(IsPlayerInAnyVehicle(playerid)) {
 new vModel = GetVehicleModel(GetPlayerVehicleID(playerid));
}
This should work.
Reply
#3

what about specifically in the vehicle model 414
Reply
#4

pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 414)
{
    // Do stuff
}
Reply
#5

Quote:
Originally Posted by MP2
Посмотреть сообщение
pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 414)
{
    // Do stuff
}
Thank you kindly
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)