05.05.2010, 16:49
You can make a variable between the functions
For example here only admins can do this..
I suggest you try out the new setvparint function here to make your own 'variable'
https://sampwiki.blast.hk/wiki/SetPVarInt
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;
}
https://sampwiki.blast.hk/wiki/SetPVarInt

