How to get vehicle id on spawn?
#7

Quote:
Originally Posted by SilentHuntR
Посмотреть сообщение
Put it under OnPlayerStateChange, do a 'if' check for newstate==PLAYER_STATE_DRIVER

example:
pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
    if(newstate==PLAYER_STATE_DRIVER)
    {
        //Your code
    }
    return 1;
}
Thanks for help, I already found the same solution by searching around the forums. It works. Now I gotta figure out how to lock it xD
Reply


Messages In This Thread
How to get vehicle id on spawn? - by Outcast - 15.01.2011, 22:08
Re: How to get vehicle id on spawn? - by hanzen - 15.01.2011, 22:15
Re: How to get vehicle id on spawn? - by Outcast - 15.01.2011, 22:20
Re: How to get vehicle id on spawn? - by hanzen - 15.01.2011, 22:36
Re: How to get vehicle id on spawn? - by Outcast - 15.01.2011, 22:47
Re: How to get vehicle id on spawn? - by Joe Staff - 15.01.2011, 23:08
Re: How to get vehicle id on spawn? - by Outcast - 15.01.2011, 23:18

Forum Jump:


Users browsing this thread: 1 Guest(s)