Nem tudom hogy neked ez RPG vagy stunt szerverre kell de ez például RPG módból van kiszedve
[pawn]if (strcmp(cmd, \"/adminok\", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new nev[32];
GetPlayerName(playerid, nev, sizeof(nev));
new h,mi,s,y,m,d;
getdate(y,m,d);
gettime(h,mi,s);
format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] %s beírta a /adminok parancsot\",y,m,d,h,mi,s,nev);
LoOoG(stringx);
SendClientMessage(playerid, COLOR_WHITE, \"\");
SendClientMessage(playerid, COLOR_WHITE, \"Elérhetõ Adminok:\");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Admin(i, 1) && PlayerInfo[pAdmin] <= 4 && PlayerInfo[playerid][rejtozes] == 0)
{
new admtext[64];
if(PlayerInfo[pAdmin] == 4) { admtext = \"Tulaj\"; }
else if(PlayerInfo[pAdmin] == 3) { admtext = \"Fõadmin\"; }
else if(PlayerInfo[pAdmin] == 2) { admtext = \"2*\"; }
else if(PlayerInfo[pAdmin] == 1) { admtext = \"1*\"; }
else { admtext = \"-\"; }
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty == 0)
{
format(string, 256, \"%s ( %s )\", sendername, admtext);
SendClientMessage(playerid, COLOR_YELLOW2, string);
}
else
{
format(string, 256, \"%s ( %s )\", sendername, admtext);
SendClientMessage(playerid, COLOR_YELLOW2, string);
}
}
}
}
SendClientMessage(playerid, COLOR_WHITE, \"Elérhetõ Adminsegédek:\");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[pHelper] >= 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty == 0)
{
format(string, 256, \"%s\", sendername);
SendClientMessage(playerid, COLOR_YELLOW2, string);
}
else
{
format(string, 256, \"%s\", sendername);
SendClientMessage(playerid, COLOR_YELLOW2, string);
}
}
}
}
SendClientMessage(playerid, COLOR_WHITE, \"\");
}
return 1;
}[/pawn]
Remélem megfelel csak kicsit dolgozd át