Quote:
|
Originally Posted by 0rb
Something like this
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (newkeys & KEY_SUBMISSION) { OnPlayerCommandText(playerid, "/ticket"); //if /ticket is in another script, use: //CallRemoteFunction("OnPlayerCommandText", "is", playerid, "/ticket"); return true; }
return false; }
|
Thanks so much I really appreciate it!
Now I need to know how I could associate this with a dcmd command please. Would it be OnPlayerCommandText(playerid, "dcmd_command");? Thanks in advance!