05.05.2010, 11:49
So, i have this code:
How can i make a command what disabled/enables it ?
pawn Код:
if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
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;
}
}