Vehicle Hopping
#5

You can make a variable between the functions

For example here only admins can do this..

Код:
  
if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  {
  if(isplayeradmin(playerid)
  {
  if (newkeys & KEY_CROUCH)
  {
  new Float:xx, Float:xy, Float:xz;
  GetVehicleVelocity(GetPlayerVehicleID(playerid), xx, xy, xz);
  SetVehicleVelocity(GetPlayerVehicleID(playerid), xx, xy, xz + sf);
  }
  }
  return 1; 
  }
I suggest you try out the new setvparint function here to make your own 'variable'
https://sampwiki.blast.hk/wiki/SetPVarInt

Reply


Messages In This Thread
Vehicle Hopping - by Bomber - 05.05.2010, 11:49
Re: Vehicle Hopping - by Bomber - 05.05.2010, 16:42
Re: Vehicle Hopping - by ¤Adas¤ - 05.05.2010, 16:44
Re: Vehicle Hopping - by Bomber - 05.05.2010, 16:46
Re: Vehicle Hopping - by boelie - 05.05.2010, 16:49
Re: Vehicle Hopping - by Calgon - 05.05.2010, 16:51
Re: Vehicle Hopping - by Bomber - 05.05.2010, 19:25
Re: Vehicle Hopping - by boelie - 05.05.2010, 19:33

Forum Jump:


Users browsing this thread: 1 Guest(s)