Limite no chat /a
#3

Код:
CMD:a(playerid,params[])
{
    new adminstring[128];
if(adminstatus[playerid] == 1) return SendClientMessage(playerid, COR_BORDO, "Vocк nгo estб em modo admin, use /trabalhar.");
    if(pInfo[playerid][pAdmin] >= 1)
    {
        if(!strlen(params))
        {
            SendClientMessage(playerid, -1, ""chat" /a [message]");
            return 1;
        }
        format(adminstring, sizeof(adminstring), ""COR_BORDO"[Admin Chat] %s[%d]: %s",PlayerName(playerid), playerid, params);
        SendMessageToAllAdmins(adminstring, -1);
    }
    else {
        SendClientMessage(playerid,-1,"*"COR_BORDO" You do not have the right admin permissions for this command!");
    }
    return 1;
}
final

Код:
stock SendMessageToAllAdmins(message[], color)
{
	foreach(Player, i)
	{
		if(pInfo[i][pAdmin] >= 1 || IsPlayerAdmin(i))
		{
	 	    SendClientMessage(i, color, message);
	 	}
 	}
	return 1;
}
Reply


Messages In This Thread
Limite no chat /a - by Cheleber_Pausini - 13.01.2017, 18:22
Programando e Gambiarrando! - by RazorGuigo - 13.01.2017, 18:33
Re: Limite no chat /a - by Meck - 13.01.2017, 18:34
Re: Limite no chat /a - by Cheleber_Pausini - 13.01.2017, 18:54
Re: Limite no chat /a - by BobbMarley - 13.01.2017, 19:02

Forum Jump:


Users browsing this thread: 1 Guest(s)