09.05.2013, 17:24
Hello, I have small question again. Well Let's say in the script they are six admin levels [1,2,3,4,5,6] and when we're talking over /a, I need to show them as Junior Administraor [playername], General Administraor [playername], Server Owner [playername], like that.
Currently it's showing like Admin Level 1 [playername], Admin Level 2 [playername], so on.
Current /a code is
I tried some ways, Not working.
Currently it's showing like Admin Level 1 [playername], Admin Level 2 [playername], so on.
Current /a code is
PHP код:
CMD:admin(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
/*if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
{
SendClientMessage(playerid,COLOR_WHITE, "You can only chat while off-duty. Type /aduty to go on-duty.");
return 1;
}*/
if(!isnull(params))
{
new szMessage[128];
format(szMessage, sizeof(szMessage), "* Level %d Admin %s: %s", PlayerInfo[playerid][pAdmin], GetPlayerNameEx(playerid), params);
ABroadCast(COLOR_YELLOW, szMessage, 1);
}
else SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/a)dmin [admin chat]");
}
return 1;
}