05.05.2010, 16:51
pawn Код:
if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if (newkeys & KEY_CROUCH)
{
if( GetPVarInt( playerid, "Hop" ) >= 1 )
{
new Float:xx, Float:xy, Float:xz;
GetVehicleVelocity(GetPlayerVehicleID(playerid), xx, xy, xz);
SetVehicleVelocity(GetPlayerVehicleID(playerid), xx, xy, xz + sf);
return 1;
}
}
}
pawn Код:
if( GetPVarInt( playerid, "Hop" ) >= 1 )
{
SetPVarInt( playerid, "Hop", 0 );
}
else
{
SetPVarInt( playerid, "Hop", 1 );
}
