SA-MP Forums Archive
La administracion - 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: La administracion (/showthread.php?tid=624889)



La administracion - GOM3Z - 24.12.2016

COmo se los niveles de administraciion que hay en un sv y donde tengo que ir a mirarlo
es
Quote:

jadmin

No tiene administracion, entonces me puedes explicar como se hacen y tamvien poner varios niveles quiero 5


Respuesta: La administracion - Z0MBERTH - 24.12.2016

Normalmente en los gamemodes hay un comando para ver los comandos administrativos, probablemente salga...


MODERADOR > CMDS
ADMINIStRADOR > CMDS...

etc... prueba con /ah /ayudaadmin, etc cosas asн y allн verбs


Respuesta: La administracion - Gles - 24.12.2016

Tambiйn puedes ir al .pwn y buscar todas las palabras con "Admin" o con la respectiva variable que use.
Asн mirar todos los comandos.



Respuesta: La administracion - GOM3Z - 24.12.2016

yo quiero poner administracion de 6 niveles donde tengo que poner los niveles

Quote:

enum jInfo
{
jContra[64],
jDinero,
jAdmin, //la administracion
Float:jPosX,
Float:jPosY,
Float:jPosZ,
jArmas[13],
jMunicion[13],
jReg,
jNivel,
jRopa,
jCasa,
jRep,
jSex,
}

y que solo el de nivel 6 puede dar administracion


Re: La administracion - BrianFaria - 26.12.2016

Lo de 6 niveles no seria nada complicado, luego te ayudo.


Respuesta: La administracion - GOM3Z - 26.12.2016

Vale, espero gracias


Re: La administracion - Eloy - 26.12.2016

adaptalo a tus variables

Quote:

CMD:admins( playerid, params[ ] )
{
new count, boolnline, string[128], AdminRank[70], name[24];
for(new i,g=GetMaxPlayers(); i < g; i++)
{
if(IsPlayerConnected(i))
{
if(1 <= pAdminLevel[i]/*Change this var to yours*/ <= 99999)
{


on‌line = true;
switch(pAdminLevel[i]) /* << Change this var to yours*/
{
case 1: AdminRank = "Moderator";
case 2: AdminRank = "Junior Admin";
case 3: AdminRank = "General Admin";
case 4: AdminRank = "Senior Admin";
case 1337: AdminRank = "Head Admin";
case 1338: AdminRank = "Scripter";
case 1339: AdminRank = "Head Scripter";
case 99998: AdminRank = "Co-Owner";
case 99999: AdminRank = "Owner";

}
GetPlayerName(i, name, sizeof(name));
format(string,sizeof(string), "%s %s [%s],",string, name, AdminRank);
count++;
if(count == 4)
{
format(string,sizeof(string),"Admins: %s",string);
SendClientMessage(playerid, -1, string);
string = "";
count = 0;
}

}
}
}
if(count)
{
format(string,sizeof(string),"Admins: %s",string);
SendClientMessage(playerid, -1, string);
}
if(!online) SendClientMessage(playerid, -1,"No Admin online in the list.");
return 1;
}




Respuesta: La administracion - GOM3Z - 26.12.2016

donde pongo ese cmd


Respuesta: La administracion - GOM3Z - 26.12.2016

lo puse y ..
Quote:

F:\New Gothan Servidor\New Gothan Sv\gamemodes\GM_Base.pwn(3252) : error 017: undefined symbol "pAdminLevel"
F:\New Gothan Servidor\New Gothan Sv\gamemodes\GM_Base.pwn(3252) : warning 215: expression has no effect
F:\New Gothan Servidor\New Gothan Sv\gamemodes\GM_Base.pwn(3252) : error 001: expected token: ";", but found "]"
F:\New Gothan Servidor\New Gothan Sv\gamemodes\GM_Base.pwn(3252) : error 029: invalid expression, assumed zero
F:\New Gothan Servidor\New Gothan Sv\gamemodes\GM_Base.pwn(3252) : fatal error 107: too many error messages on one line

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


4 Errors.




Respuesta: La administracion - GOM3Z - 27.12.2016

revivo..