20.11.2011, 03:01
Vehicle Hopping System
Description:This is a Simple Bunny Hopping System Created By The Best (well thats me :P)PHP код:
#include a_samp
#define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_SUBMISSION)))
{
if (IsPlayerInAnyVehicle(playerid))
{
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new
Float:x,
Float:y,
Float:z;
GetVehicleVelocity(GetPlayerVehicleID(playerid),x,y,z);
SetVehicleVelocity(GetPlayerVehicleID(playerid),x,y,0.3);
}
}
}
return 1;
}
PasteBin: Click Me!
Direct: Click Me!
Forgotten Kings Inspiring your Game