adding nos
#1

How can i fix it to add nos by pressing lctrl and mouse left click.. i use this code but it's working with mouse left click not with lctrl..

Quote:

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_FIRE))
{
if (IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
}
}
return 1;
}

Reply
#2

https://sampwiki.blast.hk/wiki/Keys

As you can see on this page, in KEY_FIRE's case LCTRL is used when the player is on foot and LALT is used when the player is in a vehicle ( your case ).

I guess you could try changing the controls in the settings menu of GTA SA ? That would only work for you though.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)