14.12.2010, 03:59
i've been trying to tell you what to do..
try this
(untested)
edit - i dont think you can use strcmp, because cmdtext is the entire param sent.
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;
}
edit - i dont think you can use strcmp, because cmdtext is the entire param sent.