SA-MP Forums Archive
Como Poner Level a Comando De Admin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Como Poner Level a Comando De Admin (/showthread.php?tid=636265)



Como Poner Level a Comando De Admin - Gamerd - 24.06.2017

Hola Amigos Del Samp
No Tengo Idea De Como Ponerle Un Level A Mi sistema de Administracion

Alguien me puede Ayudar Si Necesitas algo del sistema Pidemelo E Intentado Con Otro Sistema Viendo Como Lo Tienen y Lo Ago Casi Igual Pero No Me Funciona



Re: Como Poner Level a Comando De Admin - El Bardo - 24.06.2017

https://sampforum.blast.hk/showthread.php?tid=624896
Y 300 mбs


Respuesta: Como Poner Level a Comando De Admin - FixFl0w - 24.06.2017

El nivel es identificado como el valor de la variable:
Код:
jInformacion[playerid][ADMIN_VARIABLE] = valor;
Ejemplo en un cmd

Код:
#define MAX_NIVEL_ADMIN 4//en este caso '4' es el valor.

new Enum
{
ADMIN_VARIABLE //Variable la cual contiene el valor..
};

CMD:hola(playerid,params[])
{
if(jInformacion[playerid][ADMIN_VARIABLE] != MAX_NIVEL_ADMIN) return 0;
SendClientMessageToAll(-1,"*un administrador dice, Hola!");
return 1;
}
si no es el grano al que quieres llegar avisa..


Re: Como Poner Level a Comando De Admin - Gamerd - 24.06.2017

Xd Amigo Mira Esta Forma Que Tengo Pero Da Error
Quote:

COMMAND:admin(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playerid, -1,"Hola Funciono MMGv");
} else SendClientMessage(playerid, COL_WHITE, "Error: Usted No Es Admin Para Usar Este Comando.");
return 0b1;
}




Re: Respuesta: Como Poner Level a Comando De Admin - Gamerd - 24.06.2017

Quote:
Originally Posted by FixFl0w
Посмотреть сообщение
El nivel es identificado como el valor de la variable:
Код:
jInformacion[playerid][ADMIN_VARIABLE] = valor;
Ejemplo en un cmd

Код:
#define MAX_NIVEL_ADMIN 4//en este caso '4' es el valor.

new Enum
{
ADMIN_VARIABLE //Variable la cual contiene el valor..
};

CMD:hola(playerid,params[])
{
if(jInformacion[playerid][ADMIN_VARIABLE] != MAX_NIVEL_ADMIN) return 0;
SendClientMessageToAll(-1,"*un administrador dice, Hola!");
return 1;
}
si no es el grano al que quieres llegar avisa..
Amigo Mira Esto Errores Creo Que Pusiste algo malo
Quote:

C:\Users\User Principal 2\Documents\DeTodoUnPoco\filterscripts\adminV1.pwn (34) : error 001: expected token: ";", but found "{"
C:\Users\User Principal 2\Documents\DeTodoUnPoco\filterscripts\adminV1.pwn (187) : error 017: undefined symbol "jInformacion"
C:\Users\User Principal 2\Documents\DeTodoUnPoco\filterscripts\adminV1.pwn (187) : warning 215: expression has no effect
C:\Users\User Principal 2\Documents\DeTodoUnPoco\filterscripts\adminV1.pwn (187) : error 001: expected token: ";", but found "]"
C:\Users\User Principal 2\Documents\DeTodoUnPoco\filterscripts\adminV1.pwn (187) : error 029: invalid expression, assumed zero
C:\Users\User Principal 2\Documents\DeTodoUnPoco\filterscripts\adminV1.pwn (187) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

Osea El New Enum Me Da Error y el if Del Commando Tambien




Respuesta: Como Poner Level a Comando De Admin - FixFl0w - 24.06.2017

Es solo un ejemplo para que tu lo uses, supongo que tu ya tienes tu enum de jugador en el cual hay una variable Admin.

Ademбs el enum se definнa asн..
Код:
enum Usuarios
{
ADMIN_VARIABLE
};
new JInfo[MAX_PLAYERS][Usuarios];
pero tu ya tienes el tuyo en tu servidor supongo..


Re: Como Poner Level a Comando De Admin - Gamerd - 24.06.2017

Asi No Me Da Error Pero No Sale En Mensaje a Poner El Comando
Quote:

CMD:hola(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] != MAX_NIVEL_ADMIN) return 0;
SendClientMessageToAll(-1,"*un administrador dice, Hola!");
return 1;
}




Respuesta: Re: Como Poner Level a Comando De Admin - FixFl0w - 24.06.2017

Quote:
Originally Posted by Gamerd
Посмотреть сообщение
Asi No Me Da Error Pero No Sale En Mensaje a Poner El Comando
Verificaste que eres administrador nivel '4', como lo indica el define?


Re: Como Poner Level a Comando De Admin - Gamerd - 24.06.2017

Si Amigo


Respuesta: Como Poner Level a Comando De Admin - FixFl0w - 24.06.2017

Estoy seguro que no tienes admin nivel 4, prueba asн..

Код:
CMD:hola(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] != MAX_NIVEL_ADMIN) return SendClientMessage(playerid,-1,"*No autorizadooo");
SendClientMessageToAll(-1,"*un administrador dice, Hola!");
return 1;
}