nos with LMB? and flipcar with 3? how to?
#1

hey guys,
i want to make it that when i press LMB i get unlimited nos and when i press 3 the car getsd flipped but how to make it? i know its something with OnPlayerKeyStateChange but how to make this?
niels
Reply
#2

You can't make Flip with 3 since it's not supported

For NOS:
PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if(
newkeys == KEY_FIRE)
    {
        if(!
IsPlayerInAnyVehicle(playerid)) return 1;
        
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
    }
    return 
1;

Enjoy
Reply
#3

hmm but can u make flip with 1 then?
Reply
#4

See https://sampwiki.blast.hk/wiki/GetPlayerKeys for supported keys.
Reply
#5

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & ...) { // ... = Key. Sorry for this, but I think there isn't.
        if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return 1;
        new
            zAngle,
            Vehicle = GetPlayerVehicleID(playerid);
        GetVehicleZAngle(Vehicle,zAngle);
        SetVehicleZAngle(Vehicle,zAngle);
    }
    return 1;
}
Reply
#6

so this one is good or wut? kostas?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)