Help[]
#1

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
Reply
#2

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

no command There !?
Reply
#4

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;
}
Reply
#5

Not working
Reply
#6

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

pressing ? h ? or numpad 0
Reply
#8

Pressing the Horn Button (h)
Reply
#9

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)