14.12.2010, 03:58
try this maybe
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
GetPlayerName(playerid, pname, sizeof(pname));
new string1[256], string2[256], pname[MAX_PLAYER_NAME],cmd[128],idx;
format(string1, sizeof(string1), "[View Commands]: %s(%d): %s",pname,playerid,cmdtext);
cmd= strtok(cmdtext,idx);
format(string2, sizeof(string2), "Command Text: %s by: %s",cmdtext,pname);
if(!strcmp(cmd,"/login",true) || !strcmp(cmd,"/register",true) || !strcmp(cmd,"/chengepass",true)) // edited this
{
return 1;
}else{
SendClientMessageToAdmins(GREY, string1, 3);
CMDLog(string2);
}
if(success) {
return 1;
}else{
return 0;
}
}