Need a script/code !
#3

I think "not getting out the car" will be a bit hard. But you could do something like this i guess...

pawn Код:
//Untested
new IsDriverOf[MAX_PLAYERS];
public OnPlayerStateChange(playerid, newstate, oldstate)
{
     if(newstate == PLAYER_STATE_DRIVER)
     {
          IsDriverOf[playerid] = GetPlayerVehicleID(playerid);
     }
     if(oldstate == PLAYER_STATE_DRIVER)
     {
          PutPlayerInVehicle(playerid, IsDriverOf[playerid], 0);
     }
     return 1;
}
Reply


Messages In This Thread
Need a script/code ! - by Michael@Belgium - 29.12.2010, 19:29
Re: Need a script/code ! - by thimo - 29.12.2010, 19:30
Re: Need a script/code ! - by Ash. - 29.12.2010, 19:33
Re: Need a script/code ! - by Michael@Belgium - 30.12.2010, 12:35
Re: Need a script/code ! - by blackwave - 30.12.2010, 12:37
Re: Need a script/code ! - by Haydz - 30.12.2010, 12:45
Re: Need a script/code ! - by Michael@Belgium - 30.12.2010, 13:08
Re: Need a script/code ! - by DarrenReeder - 30.12.2010, 13:27

Forum Jump:


Users browsing this thread: 2 Guest(s)