24.10.2012, 20:53
Hello
I have a command:
And now i want to activate "engine" command while i press SUBMISSION button. So...
I have a command:
Код:
CMD:engine(playerid, params[]) { if(Engine[vehid] == 1) { SendClientMessage(playerid, -1, "Engine off"); Engine[vehid] = 0; } else { SendClientMessage(playerid, -1, "Engine on"); Engine[vehid] = 1; } return 1; }
Код:
public OnplayerKeyStateChange(...) { if(newkeys == KEY_SUBMISSION) { Question here! How can i make things shorter, i don`t want to write engine code again, what was the function for zcmd? it was like.. cmd_engine(playerid); or something? What was the right code? } }