how can i check if a player is a Passanger?
#1

how can i check if a player is a Passenger?
I mean that OnPlayerStateChange
I did this:
pawn Код:
if(newstate && PLAYER_STATE_DRIVER)
    {
      return 1;
    }
but how to check if the player is a passenger?
Reply
#2

I think there is a PLAYER_STATE_PASSENGER?

GetPlayerState(playerid) == PLAYER_STATE_PASSENGER
Reply
#3

pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
printf("ID %i is now driving.",playerid);
}
if(newstate == PLAYER_STATE_PASSENGER)
{
printf("ID %i is now in a vehicle.",playerid);
}
return 1;
}
There you go
Reply


Forum Jump:


Users browsing this thread: