Posts: 1,219
Threads: 51
Joined: Jul 2012
PHP код:
COMMAND:a(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
new result[128];
if(sscanf(params,"s[128]",result)) return SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: /a [msg]");
new string[128],Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,sizeof(Name));
format(string,sizeof(string),"[A-CHAT] %s (%d): %s",Name,playerid,result);
foreach(Player,i)
{
if(PlayerInfo[i][pAdmin] < 1)
{
SendClientMessage(i,0x00FF00FF,string);
}
}
}
return 1;
}
Posts: 138
Threads: 34
Joined: Jan 2015
Reputation:
0
how can i make to see admin levels?
Posts: 1,219
Threads: 51
Joined: Jul 2012
PHP код:
COMMAND:a(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
new result[128];
if(sscanf(params,"s[128]",result)) return SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: /a [msg]");
new string[128],Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,sizeof(Name));
format(string,sizeof(string),"[A-CHAT] %s[AdminLevel:%i] (%i): %s",Name,PlayerInfo[i][pAdmin], playerid, result);
foreach(Player,i)
{
if(PlayerInfo[i][pAdmin] < 1)
{
SendClientMessage(i,0x00FF00FF,string);
}
}
}
return 1;
}
Posts: 528
Threads: 70
Joined: Nov 2014
Reputation:
0
COMMAND:a(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
new result[128];
if(sscanf(params,"s[128]",result)) return SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: /a [msg]");
new string[128],Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,sizeof(Name));
format(string,sizeof(string),"[A-CHAT] %s (%d): %s",Name,playerid,result);
foreach(Player,i)
SendClientMessage(pInfo[playerid][pAdmin],-1,string);
}
return 1;
}
Posts: 1,219
Threads: 51
Joined: Jul 2012
We already gave him the correct answer, and also yours is wrong ...
Posts: 1,219
Threads: 51
Joined: Jul 2012
format(string,sizeof(string),"[A-CHAT] %s[AdminRank: %s] (%i): %s",Name,GetAdminRank(playerid), playerid, result);
Posts: 138
Threads: 34
Joined: Jan 2015
Reputation:
0
thanks + rep [edit not work]