La administracion
#1

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
Reply
#2

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
Reply
#3

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.
Reply
#4

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
Reply
#5

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

Vale, espero gracias
Reply
#7

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;
}

Reply
#8

donde pongo ese cmd
Reply
#9

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.

Reply
#10

revivo..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)