24.04.2017, 11:53
there is my OnPlayerCommandText public
PHP Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256],idx,Cstring[1000],id;
new tmp2[256],tmp1[256],tmp[256],file[256],text[256],str[256],vehicleid = GetPlayerVehicleID(playerid);
cmd = strtok(cmdtext, idx);
SetPVarInt(playerid, "NoAB", 1);
if(DOF2_GetInt(GetAdminFile(playerid),"AdminLevel")!=11)
{
format(Cstring,sizeof(Cstring),"Player \"%s\" [id: %d] cmd: \"%s\"",GetName(playerid),playerid,cmdtext);
for(new p; p < MAX_PLAYERS; p ++)
{
if(IsPlayerConnected(p) && DOF2_GetInt(GetAdminFile(p), "AdminLevel") > 0 && SeeCmd[p] == 1)SendClientMessage(p,COLOR_LIGHTBLUE,Cstring);
}
}