/adminchat
#7

Try this:
PHP код:
CMD:adminchat(playeridparams[]) 

    if(
PlayerInfo[playerid][pAdmin] >= 1
    { 
        new 
name[MAX_PLAYER_NAME]; 
        
GetPlayerName(playeridnamesizeof(name)); 
        new 
text[128]; 
        if(
sscanf(params"s[128]",text)) return SendClientMessage(playeridCOLOR_CORRECTION"USAGE: (/a)dmin [Admin Chat]"); 
        
format(textsizeof(text), "%s %s: %s",GetAdminRank(playerid), nametext); 
        
SendAdminMessage(COLOR_ADMINCHATtext); 
    } 
    else 
    { 
        
SendClientMessage(playeridCOLOR_CORRECTION"You are not authorized to use this chat."); 
    } 
    return 
1

CMD:a(playeridparams[]) 

  return 
cmd_adminchat(playeridparams); 

Here is the code for admin level 1+, you placed it to be 2+!
Reply


Messages In This Thread
/adminchat - by Jaua10 - 11.10.2017, 14:05
Re: /adminchat - by Kyle - 11.10.2017, 14:06
Re: /adminchat - by whadez - 11.10.2017, 14:09
Re: /adminchat - by Jaua10 - 11.10.2017, 14:18
Re: /adminchat - by Kyle - 11.10.2017, 14:27
Re: /adminchat - by Jaua10 - 11.10.2017, 14:31
Re: /adminchat - by Kraeror - 11.10.2017, 14:33
Re: /adminchat - by Jaua10 - 11.10.2017, 14:45
Re: /adminchat - by whadez - 11.10.2017, 14:52
Re: /adminchat - by jlalt - 11.10.2017, 14:53

Forum Jump:


Users browsing this thread: 1 Guest(s)