30.07.2011, 20:00
Thanks
I have another problem
in seecmds command
It's not showing me the commands
I have another problem
in seecmds command
PHP Code:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(success)
{
if(strcmp(cmdtext, "/Login", true) == 0 || strcmp(cmdtext, "/Register", true) == 0 || strcmp(cmdtext, "/ChangePass", true) == 0 || strcmp(cmdtext, "/Pm", true) == 0)
{
}
else
{
foreach(Player, i)
{
if(IsPlayerConnected(i)&& GetPVarInt(i,"Cseecmds") == 1 && GetPVarInt(playerid,"AdminLvl") < GetPVarInt(i,"AdminLvl"))
{
new string[128];
format(string,128,"Player \"%s\" [id: %d] Cmd: \"%s\"",GetName(playerid),playerid,cmdtext);
SendClientMessage(i, COLOR_GREY, string);
}
}
}
}
else
{
SendClientMessage(playerid,COLOR_WHITE, "SERVER: Unknown Command.");
}
return 1;