13.01.2012, 11:34
In my Gamemode I have
In commands.inc
I have
Any idea why its not working?
Код:
dcmd(nos,3,cmdtext);
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { new bool:AutoNOS[MAX_PLAYERS]; if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && AutoNOS[playerid] && (newkeys & KEY_ACTION || newkeys & KEY_FIRE)) AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); return 1; }
I have
Код:
dcmd_nos(playerid,params[]) { new bool:AutoNOS[MAX_PLAYERS]; if(AutoNOS[playerid]) { SendClientMessage(playerid, 0x924161FF, "[ ! ] Automatic nitro deactivated."); AutoNOS[playerid] = false; } else { SendClientMessage(playerid, 0x924161FF, "[ ! ] Automatic nitro activated!"); AutoNOS[playerid] = true; } return 1; }