[Ayuda] Autos
#2

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  ...
  SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
  return 1;
}
pawn Код:
public OnPlayerStateChange(playerid, oldstate, newstate)
{
  if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
  {
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == aquiponeselmodelodeltanke && GetPlayerScore(playerid) < 100)
    {
      RemovePlayerFromVehicle(playerid);
    }
  }
  return 1;
}
Reply


Messages In This Thread
[Ayuda] Autos - by X-DiEgO-X - 07.03.2010, 02:16
Re: [Ayuda] Autos - by Miguel - 07.03.2010, 03:45
Re: [Ayuda] Autos - by X-DiEgO-X - 07.03.2010, 14:34
Re: [Ayuda] Autos - by Miguel - 07.03.2010, 14:51
Re: [Ayuda] Autos - by X-DiEgO-X - 07.03.2010, 15:11

Forum Jump:


Users browsing this thread: 1 Guest(s)