18.09.2010, 12:45
Well i made the system for admins to read the commands, now how can i skip commands /register /login and all that?
I tried with strcmp, didn't work if there was a param, tried with cmd_register(playerid, cmdtext) didn't work, it would have executed the command....
here is the code i have on OnPlayerCommandPerformed(playerid, cmdtext[], success)
Is there a way ? Please leave a reply. Thanks!
I tried with strcmp, didn't work if there was a param, tried with cmd_register(playerid, cmdtext) didn't work, it would have executed the command....
here is the code i have on OnPlayerCommandPerformed(playerid, cmdtext[], success)
pawn Код:
if( success == 1 && S_DATA[ S_ReadCMDS ] == 1/*strcmp(cmdtext, "/register", false )*/)
FormMessageForAdmins( COLOR_GREY, " %s used command %s ", PlayerName2( playerid ), cmdtext);