OnPlayerEnterVehicle
#3

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
  {
   GivePlayerMoney(playerid,-12);
  }
  else if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  {
   GivePlayerMoney(playerid,12);
  }
  return 1;
}
NOT TESTED. But you dont need to loop.
Reply


Messages In This Thread
OnPlayerEnterVehicle - by thefatshizms - 06.10.2012, 15:16
Re: OnPlayerEnterVehicle - by ikbenremco - 06.10.2012, 15:19
Re: OnPlayerEnterVehicle - by Lordzy - 06.10.2012, 15:19
Re: OnPlayerEnterVehicle - by thefatshizms - 06.10.2012, 15:23
Re: OnPlayerEnterVehicle - by ikbenremco - 06.10.2012, 15:27
Re: OnPlayerEnterVehicle - by thefatshizms - 06.10.2012, 15:51
Re: OnPlayerEnterVehicle - by Unfriendly - 06.10.2012, 16:05
Re: OnPlayerEnterVehicle - by Faisal_khan - 06.10.2012, 16:28

Forum Jump:


Users browsing this thread: 3 Guest(s)