Quote:
Originally Posted by The_Gangstas
i've been trying to tell you what to do..
try this
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[],success) { GetPlayerName(playerid, pname, sizeof(pname)); new string1[256], string2[256], pname[MAX_PLAYER_NAME]; format(string1, sizeof(string1), "[View Commands]: %s(%d): %s",pname,playerid,cmdtext);
format(string2, sizeof(string2), "Command Text: %s by: %s",cmdtext,pname); if(strfind(cmdtext, "/login", true) != -1 || strfind(cmdtext, "/register", true) != -1 || strfind(cmdtext, "/changepass", true) != -1) { return 1; } else { SendClientMessageToAdmins(GREY, string1, 3); CMDLog(string2); } return 1; }
(untested)
edit - i dont think you can use strcmp, because cmdtext is the entire param sent.
|
look at my code... (message above yours) i added cmd=strtok(cmdtext,idx) its takes only the first work/string...
which is /something