[Pedido] /admins
#1

bom todos tem um /admins
bom eu queria que tipo
o adm 1342 fosse fundador
e eu queria colocar meu nome envez de 1342 e ficar scripter
Reply
#2

TOPO:
Код:
new nomez[24];
#define Azul 0x00BFFFFF
new string_[168];
#define paramount(%0,%1) for(new %0; %0 < %1; ++%0) if(IsPlayerConnected(%0) && !IsPlayerNPC(%0))
Код:
CMD:admins(playerid,params[])
{
	SendClientMessage(playerid, Azul,"Administradores On-line");
	paramount(i,MAX_PLAYERS)
	{
	    GetPlayerName(i,nomez,24);
            if(PlayerInfo[i][pAdmin] == 1342) // troca pela variavel de admins
	    {
		format(string_,100,"Admin [%s]: Nivel:[Scripter]",nomez);
		SendClientMessage(playerid, Azul,string_);
	    }
	}
	return 1;
}
Reply
#3

Use:
pawn Код:
//Topo:
#define Nome(%0) new snd[MAX_PLAYER_NAME];\
    GetPlayerName(%0, snd, sizeof snd)
#define MSGFormat(%0,%1,%2,%3) new string_format[128]; \
    format(string_format, sizeof string_format, %2, %3) && SendClientMessage(%0,%1,string_format)
   
// Comando Strcmp:

if(!strcmp(cmdtext,"/admins",true))
{
    for(new u = 0; u < MAX_PLAYERS; u++)
    {
        if(PlayerInfo[u][pAdmin] == 1342)
        {
            MSGFormat(playerid, -1, "Admin: %s (Scripter)", Nome(u));
        }
    }
    return 1;
}
Reply
#4

vlw os 2 rep+
Reply
#5

de nada, se precisar... tamos ai
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)