How DO I Do this?
#4

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
  if(newstate == PLAYER_STATE_DRIVER)
  {
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
      SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i,0,1);
    }
  }
  return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
  for(new i = 0; i < GetMaxPlayers(); i++)
  {
    SetVehicleParamsForPlayer(vehicleid,i,0,0);
  }
  return 1;
}
Try this
Reply


Messages In This Thread
How DO I Do this? - by BP13 - 08.07.2009, 17:27
Re: How DO I Do this? - by kaisersouse - 08.07.2009, 17:28
Re: How DO I Do this? - by Danny_Costelo - 08.07.2009, 17:31
Re: How DO I Do this? - by -Sneaky- - 08.07.2009, 17:34
Re: How DO I Do this? - by BP13 - 08.07.2009, 19:18

Forum Jump:


Users browsing this thread: 2 Guest(s)