22.11.2014, 19:09
Queria Por um Sistema de Funзao Dentro do Jogo EX: /daradmin [ID] [NIVEL] [FUNCAO]' Ai Quando o O Cara der /admins Aparecer a Funзao q eu dei para o player Tipo
./admins aDMIN: Lukas_Staff Nivel: Scripter Funзao: Cuidar do Servidor
./admins aDMIN: Felipe_Staff Nivel: Sub_Dono Funзao: Ajudar Membros Ou
./admins aDMIN: Felipe_Staff Nivel: Sub_Dono Funзao: Divulgaзao e Mapper
Meu Sistema de Admin:
if (strcmp(cmd, "/admins", true) == 0)
{
new DialogThiago[1500];
SendClientMessage(playerid, COLOR_WHITE, "|__________________[ Admins Online ]__________________|");
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1 && PlayerInfo[i][pAdmin] > 0)
{
if(admhide[i] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
new lolz[20];
if(PlayerInfo[i][pAdmin] == 1)
{
lolz = "Em Teste";
}
if(PlayerInfo[i][pAdmin] == 2)
{
lolz = "Moderador";
}
if(PlayerInfo[i][pAdmin] == 3)
{
lolz = "Auxiliar";
}
if(PlayerInfo[i][pAdmin] == 4)
{
lolz = "Sub/Master";
}
if(PlayerInfo[i][pAdmin] == MASTER)
{
lolz = "Master";
}
if(PlayerInfo[i][pAdmin] == SUB_GERENTE)
{
lolz = "Sub/Gerente";
}
if(PlayerInfo[i][pAdmin] == GERENTE)
{
lolz = "Gerente";
}
if(PlayerInfo[i][pAdmin] == SUB_DONO)
{
lolz = "Sub/Dono";
}
if(PlayerInfo[i][pAdmin] == DONO)
{
lolz = "Fundador/Scripter";
}
if(PlayerInfo[i][pAdmin] == 3000)
{
lolz = "ScripteR";
}
if(away[i] == 0)
{
if(admtrampando[i] == 1)
{
format(string, 128, "Admin: %s Nivel: [%s] [TRABALHANDO] \n", sendername, lolz);
SendClientMessage(playerid,COLOR_GRAD1,string);
}
else
{
format(string, 128, "Admin: %s Nivel: [%s] [JOGANDO] \n", sendername, lolz);
SendClientMessage(playerid,COLOR_GRAD1,string);
}
}
else
{
format(string, 128, "{98F5FF}%s {FFFFFF}[%s] {FF4040}(Ausente)\n", sendername, lolz);
strcat(DialogThiago,string);
}
}
}
}
return true;
}
./admins aDMIN: Lukas_Staff Nivel: Scripter Funзao: Cuidar do Servidor
./admins aDMIN: Felipe_Staff Nivel: Sub_Dono Funзao: Ajudar Membros Ou
./admins aDMIN: Felipe_Staff Nivel: Sub_Dono Funзao: Divulgaзao e Mapper
Meu Sistema de Admin:
if (strcmp(cmd, "/admins", true) == 0)
{
new DialogThiago[1500];
SendClientMessage(playerid, COLOR_WHITE, "|__________________[ Admins Online ]__________________|");
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1 && PlayerInfo[i][pAdmin] > 0)
{
if(admhide[i] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
new lolz[20];
if(PlayerInfo[i][pAdmin] == 1)
{
lolz = "Em Teste";
}
if(PlayerInfo[i][pAdmin] == 2)
{
lolz = "Moderador";
}
if(PlayerInfo[i][pAdmin] == 3)
{
lolz = "Auxiliar";
}
if(PlayerInfo[i][pAdmin] == 4)
{
lolz = "Sub/Master";
}
if(PlayerInfo[i][pAdmin] == MASTER)
{
lolz = "Master";
}
if(PlayerInfo[i][pAdmin] == SUB_GERENTE)
{
lolz = "Sub/Gerente";
}
if(PlayerInfo[i][pAdmin] == GERENTE)
{
lolz = "Gerente";
}
if(PlayerInfo[i][pAdmin] == SUB_DONO)
{
lolz = "Sub/Dono";
}
if(PlayerInfo[i][pAdmin] == DONO)
{
lolz = "Fundador/Scripter";
}
if(PlayerInfo[i][pAdmin] == 3000)
{
lolz = "ScripteR";
}
if(away[i] == 0)
{
if(admtrampando[i] == 1)
{
format(string, 128, "Admin: %s Nivel: [%s] [TRABALHANDO] \n", sendername, lolz);
SendClientMessage(playerid,COLOR_GRAD1,string);
}
else
{
format(string, 128, "Admin: %s Nivel: [%s] [JOGANDO] \n", sendername, lolz);
SendClientMessage(playerid,COLOR_GRAD1,string);
}
}
else
{
format(string, 128, "{98F5FF}%s {FFFFFF}[%s] {FF4040}(Ausente)\n", sendername, lolz);
strcat(DialogThiago,string);
}
}
}
}
return true;
}