What's the code? i lost
#1

I'm making a /setstation radio and i want to know which code to put for check if he is in Driver seat.
I'll Rep+
Reply
#2

pawn Код:
if(GetPlayerVehicleSeat(playerid) != 0)
        {
                    //He isn't the main driver.
            return 1;
        }
Reply
#3

=1 is the driver?
Reply
#4

pawn Код:
new playerState = GetPlayerState(playerid);
 
    if (playerState == PLAYER_STATE_DRIVER)
    {
        // Code
    }
Quote:
Originally Posted by KeeDee
Посмотреть сообщение
=1 is the driver?
Driver is '0'
Reply
#5

https://sampwiki.blast.hk/wiki/GetPlayerVehicleSeat
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)