/admin command
#2

Admin chat?
pawn Code:
CMD:adminchat(playerid,params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,SRed,"Only admin can use this command.");
    if(isnull(params)) return SendClientMessage(playerid,SYellow,"Usage: /a(adminchat) <text> ~To talk in admin chat.");
    CostumFormat(params,"(([Admin]%s: %s))",SUName(playerid),params);
    return AdminChat(params);
}

stock AdminChat(stringtext[])
{
    foreach(Player,i)
    {
        if(IsPlayerAdmin(playerid)) SendClientMessage(i,SOrange,stringtext);
    }
    return 1;
}
Reply


Messages In This Thread
/admin command - by Trucker[UK] - 28.08.2011, 02:00
Re: /admin command - by =WoR=Varth - 28.08.2011, 02:28
Re: /admin command - by Trucker[UK] - 28.08.2011, 02:37
Re: /admin command - by =WoR=Varth - 28.08.2011, 02:52
Re: /admin command - by Trucker[UK] - 28.08.2011, 02:53
Re: /admin command - by =WoR=Varth - 28.08.2011, 09:18

Forum Jump:


Users browsing this thread: 1 Guest(s)