Como Fazer um comando de /dono /subdono e te sertar adm -
Matheus0811 - 27.06.2015
Galera, eu tinha um servidor, infelizmente perdi a host e a GM e voltei a jogar samp, vou reabrir meu servidor e preciso desse comando urgente vou dar uma explicado. o comando vc tinha que ter a permissгo ai vc dava /dono e vc ficava com adm lvl 5 e /subdono lvl 4 me ajudem
Re: Como Fazer um comando de /dono /subdono e te sertar adm -
IgorLuiz - 27.06.2015
Quote:
Originally Posted by Matheus0811
Galera, eu tinha um servidor, infelizmente perdi a host e a GM e voltei a jogar samp, vou reabrir meu servidor e preciso desse comando urgente vou dar uma explicado. o comando vc tinha que ter a permissгo ai vc dava /dono e vc ficava com adm lvl 5 e /subdono lvl 4 me ajudem
|
qual gm vc usa?
Re: Como Fazer um comando de /dono /subdono e te sertar adm -
iTakelot - 27.06.2015
Poste seusistema de admin!
Re: Como Fazer um comando de /dono /subdono e te sertar adm -
Matheus0811 - 01.07.2015
GM Dten
Re: Como Fazer um comando de /dono /subdono e te sertar adm -
DiegoLeo - 01.07.2015
Poste o comando /daradmin e o comando /admins pra que possamos te ajudar
Re: Como Fazer um comando de /dono /subdono e te sertar adm -
Matheus0811 - 02.07.2015
if(strcmp(cmd, "/admins", true) == 0)
{
new str[1000], count = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(admin[i])
{
if(pAdmin[i] == 1)
{
format(str, sizeof(str), "{FFFFFF}%s (%d) {FF0000}:: {FFFFFF}[Ajudante]\n", GetPlayerNameEx(i), i);
strcat(string, str, sizeof(string));
}
if(pAdmin[i] == 2)
{
format(str, sizeof(str), "{FFFFFF}%s (%d) {FF0000}:: {FFFFFF}[MOD]\n", GetPlayerNameEx(i), i);
strcat(string, str, sizeof(string));
}
if(pAdmin[i] == 3)
{
format(str, sizeof(str), "{FFFFFF}%s (%d) {FF0000}:: {FFFFFF}[SUPERMOD]\n", GetPlayerNameEx(i), i);
strcat(string, str, sizeof(string));
}
if(pAdmin[i] == 4)
{
format(str, sizeof(str), "{FFFFFF}%s (%d) {FF0000}:: {FFFFFF}[ADMINISTRADOR]\n", GetPlayerNameEx(i), i);
strcat(string, str, sizeof(string));
}
if(pAdmin[i] == 5)
{
format(str, sizeof(str), "{FFFFFF}%s (%d) {FF0000}:: {FFFFFF}[SUBDONO]\n", GetPlayerNameEx(i), i);
strcat(string, str, sizeof(string));
}
if(pAdmin[i] == 6)
{
format(str, sizeof(str), "{FFFFFF}%s (%d) {FF0000}:: {FFFFFF}[DONO]\n", GetPlayerNameEx(i), i);
strcat(string, str, sizeof(string));
}
if(pAdmin[i] == 7)
{
format(str, sizeof(str), "{FFFFFF}%s (%d) {FF0000}:: {FFFFFF}[DONOGERAL]\n", GetPlayerNameEx(i), i);
strcat(string, str, sizeof(string));
}
count++;
}
}
}
if(count == 0)
{
ShowPlayerDialog(playerid, playersimp, DIALOG_STYLE_MSGBOX, ".:: - ADM's Online - ::.", "{FF0000}Nгo hб ADM's online no momento.", "OK", "");
}
else
{
ShowPlayerDialog(playerid, playersimp, DIALOG_STYLE_MSGBOX, ".:: - ADM's Online - ::.", string, "OK", "");
}
return 1;
}
if(strcmp("/setadmin", cmd, true) == 0)
{
#if defined SystemAdminUser
if(PlayerInfo[playerid][SCON] == true)
{
new plid, lvl;
if(sscanf(cmdtext, "s[10]ud", cmd, plid, lvl))
{
SendClientMessage(playerid, Vermelho, "Digite: /setadmin [id] [level]");
return 1;
}
if(lvl >=

{
SendClientMessage(playerid, Vermelho, "O level permitido para ADM й de 0 a 7!");
return 1;
}
if(IsPlayerConnected(plid))
{
PlayerSetPlayerAdmin(playerid, plid, lvl);
}
else
{
SendClientMessage(playerid, Vermelho, "Jogador nгo conectado!");
}
}
#else
SendClientMessage(playerid, Azul, "Comando desativado temporбriamente.");
#endif
return 1;
}
Re: Como Fazer um comando de /dono /subdono e te sertar adm -
Pablo098 - 02.07.2015
Tб pidгo em.. e querendo escolher ainda.
Re: Como Fazer um comando de /dono /subdono e te sertar adm -
iTakelot - 02.07.2015
PHP код:
CMD:subdono(playerid,params[])
{
for(new i; i < MAX_PLAYERS; i ++) {
if (IsPlayerAdmin(i)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Vocк nгo tem permissгo para usar este comando!");
pAdmin[i] == 4;
SendClientMessage(playerid, 0xFFFFFFAA, "Voce agora й um subdono");
return 1;
}
CMD:dono(playerid,params[])
{
for(new i; i < MAX_PLAYERS; i ++) {
if (IsPlayerAdmin(i)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Vocк nгo tem permissгo para usar este comando!");
pAdmin[i] == 5;
SendClientMessage(playerid, 0xFFFFFFAA, "Voce agora й um dono");
return 1;
}
Re: Como Fazer um comando de /dono /subdono e te sertar adm -
ForT - 02.07.2015
Quote:
Originally Posted by iTakelot
PHP код:
CMD:seradmin(playerid,params[])
{
for(new i; i < MAX_PLAYERS; i ++) {
pAdmin[i] == 1;
SendClientMessage(playerid, 0xFFFFFFAA, "Voce agora й um admin");
return 1;
}
|
Revк esse comando ai fera, vai dar muitos erros se ele usar isso.
Re: Como Fazer um comando de /dono /subdono e te sertar adm -
iTakelot - 02.07.2015
Quote:
Originally Posted by ForT
Revк esse comando ai fera, vai dar muitos erros se ele usar isso.
|
no meu gm nгo deu.