SA-MP Forums Archive
What's the code? i lost - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: What's the code? i lost (/showthread.php?tid=308136)



What's the code? i lost - KeeDee - 02.01.2012

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+


Re: What's the code? i lost - GamingTurf - 02.01.2012

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



Re: What's the code? i lost - KeeDee - 02.01.2012

=1 is the driver?


Re: What's the code? i lost - Konstantinos - 02.01.2012

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


Re: What's the code? i lost - PowerPC603 - 02.01.2012

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