SA-MP Forums Archive
Help[] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help[] (/showthread.php?tid=297754)



Help[] - K4P3L_KUM4R - 17.11.2011

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


Re: Help[] - =WoR=G4M3Ov3r - 17.11.2011

https://sampforum.blast.hk/showthread.php?tid=187229


Re: Help[] - K4P3L_KUM4R - 17.11.2011

no command There !?


Re: Help[] - Kostas' - 17.11.2011

I am not sure, if it works
pawn Код:
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
#define KeyPressed(%0) (newkeys & %0) && !(oldkeys & %0)
pawn Код:
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;
}



Re: Help[] - K4P3L_KUM4R - 17.11.2011

Not working


Re: Help[] - Kostas' - 17.11.2011

Weird. It's worked fine while I was testing it.


Re: Help[] - K4P3L_KUM4R - 17.11.2011

pressing ? h ? or numpad 0


Re: Help[] - Kostas' - 17.11.2011

Pressing the Horn Button (h)


Re: Help[] - K4P3L_KUM4R - 17.11.2011

Ok i try to add this command in other script it says

Quote:

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.

H E L P