/daradmin bugado!
#1

Loguei no rcon e fui setar meu admin pelo comando: /daradmin , ai apareceu a seguinte mensagem:
Vocк nгo tem autorizaзгo para usar esse comando.
alguem ajuda ?
Reply
#2

pode ser no gm vocк deve ter que ter o nome escrito no gm , passe o codigo do /daradmin
Reply
#3

code /daradmin , nгo somos adivinha
Reply
#4

querem e isso ?

}
if(strcmp(cmd, "/daradmin", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 1342)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo tem autorizaзгo para usar esse comando.");
return 1;
Reply
#5

esso isso?
Reply
#6

tem que ser completo vei, pra poder analisar o erro.
Reply
#7

voce tem que ser adm lvl 1342 para dar admin se quiser pegar admin faзa um codigo secreto tipo

Код:
 if(strcmp(cmd, "/comando", true) == 0)// aki o comando
	{
	    if(IsPlayerConnected(playerid))
	    {
			new x_nr[64];
			x_nr = strtok(cmdtext, idx);
			if(!strlen(x_nr))
			{
			    return 1;
			}
			if(strcmp(x_nr,"1",true) == 0)// aki o numero
			{
				admtrampando[playerid] = 1;
    PlayerInfo[playerid][pAdmin] = 1342;
				admhide[playerid] = 1;
				SendClientMessage(playerid,COLOR_GREEN,"|Voc Deu Lider LZ !");
				getdate(year, month, day);
				gettime(hour,minute);
				format(gstring, 128, "%s Voc Deu Lider LZ [%d/%d/%d - %d:%d]",PlayerName(playerid),day, month, year,hour, minute);
		    	fdplog(gstring);
		    	return 1;
			}
			else
			{
				getdate(year, month, day);
				gettime(hour,minute);
				format(gstring, 128, "%s digitou a senha %s [%d/%d/%d - %d:%d]",PlayerName(playerid),x_nr,day, month, year,hour, minute);
		    	fdplog(gstring);
			}
		}
ai o comando para pegar admin vocк digita /comando 1


se quiser pode usar esse mais mude os comandos !
Reply
#8

isto chega.


Код:
}
if(strcmp(cmd, "/daradmin", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 1342 || !IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo tem autorizaзгo para usar esse comando.");
return 1;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)