17.11.2011, 16:38
i need a command of when a player sit in car or bike when he press h vechile fly
Like airbreak hack !!! Plz Htell me the command
Like airbreak hack !!! Plz Htell me the command
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
#define KeyPressed(%0) (newkeys & %0) && !(oldkeys & %0)
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_HORN) && IsPlayerInAnyVehicle(playerid)) {
new Float:x, Float:y, Float:z;
GetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z);
SetVehicleVelocity(GetPlayerVehicleID(playerid) ,x ,y ,z+0.3);
}
//Rest Of Code Here
return 1;
}
C:\Documents and Settings\XPPRESP3\Desktop\samp03csvr_R5_win32\samp 03csvr_R5_win32\filterscripts\Spreee.pwn(1763) : error 017: undefined symbol "KEY_HORN" C:\Documents and Settings\XPPRESP3\Desktop\samp03csvr_R5_win32\samp 03csvr_R5_win32\filterscripts\Spreee.pwn(1763) : error 029: invalid expression, assumed zero C:\Documents and Settings\XPPRESP3\Desktop\samp03csvr_R5_win32\samp 03csvr_R5_win32\filterscripts\Spreee.pwn(1763) : error 001: expected token: ";", but found ")" C:\Documents and Settings\XPPRESP3\Desktop\samp03csvr_R5_win32\samp 03csvr_R5_win32\filterscripts\Spreee.pwn(1763) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |