02.04.2013, 06:42
This seem like it's not working
And plus. It makes the other scripts OnPlayerCommandText, OnPlayerCommandPerformed conflict.
Example i've error message when player enter a non-exist command it will show a message.
But when i added this code. It just doesn't said the error message.
Please help me.
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[])
{
new str[128];
if(sInfo[ReadCmds] == 1)
{
format(str, sizeof(str), "*** %s(ID:%d) : '%s'", GetName(playerid), playerid, cmdtext);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(pInfo[i][Admin] >= 1)
{
SendClientMessage(i, COLOR_GREY, str);
}
}
}
}
return 1;
}
Example i've error message when player enter a non-exist command it will show a message.
But when i added this code. It just doesn't said the error message.
Please help me.