25.11.2016, 01:17
I am now going thru the Y Commands trying to find OnCommandProcess, or OnCommandAttempt or anything related to that, anyone got anything useful? Or should I just make a callback for that myself?
EDIT: I know about OnPlayerCommandPerformed(playerid,cmdtext[],success) but I am looking for something that calls before the command was executed and not after it
EDIT 2:
So far I found
// Forwards for optional command callbacks.
Altho hmm, seems that it goes as "headers different from prototype" when I use it as
EDIT: I know about OnPlayerCommandPerformed(playerid,cmdtext[],success) but I am looking for something that calls before the command was executed and not after it
EDIT 2:
So far I found
// Forwards for optional command callbacks.
Quote:
forward e_COMMAND_ERRORS:OnPlayerCommandReceived(playerid, cmdtext[], e_COMMAND_ERRORSuccess); forward e_COMMAND_ERRORS:OnPlayerCommandPerformed(playerid , cmdtext[], e_COMMAND_ERRORSuccess); |
Quote:
public OnPlayerCommandReceived(playerid, cmdtext[],success) |