21.11.2014, 14:35
Hi Guys I Made A Speed Boost Command But It Don't Work When i press 'w'
Code:
Thx For Helping !.
Code:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_FIRE)
{
new Car, Float:x, Float:y, Float:z;
Car = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
GetVehicleVelocity(Car, x, y, z);
SetVehicleVelocity(Car, x*1.5, y*1.5, z*1.5);
}
}
return 1;
}