- 0
Coamnda /admins pe LuxAdmin sa fie la level x cum fac?
-
Similar Content
-
- 1 reply
- 87 views
-
- 0 replies
- 131 views
-
- 2 answers
- 229 views
-
Cum Adau un Anticheat pe serverul de samp ? totul este facut perfect dar am observat ca sunt codati si nu stiu ce sa fac in aceasta privinta , va rog mult daca poate cineva sa ma ajute sa rezolv treaba asta ca am cautat vreo 2 zile peste tot internetul
By Decisivul,
- 0 replies
- 187 views
-
- 0 replies
- 339 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
[.E.m.O.]K1DDU
Hi ^^
Cum pot face ca comanda /admins sa mearga sa fie accesata doar de jucatori cu level x (1 sau 2 sau 3 sau 4 sau 5 E.T.C.)
Pe Sistemul de Admin LuxAdmin
Uitati aici Comanda (dcmd_admins) /admins :
[pawn]dcmd_admins(playerid,params[])
{
#pragma unused params
new count = 0;
new string[128];
new ChangeColor;
SendClientMessage(playerid, green, " ");
SendClientMessage(playerid, green, "___________ |- Online Admins -| ___________");
SendClientMessage(playerid, green, " ");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(AccInfo[Level] >= 2 && AccInfo[Hide] == 0)
{
if(AccInfo[Level] > 5)
{
AdmRank = "Professional Admin";
ChangeColor = Color_Professional_Admin;
}
if(IsPlayerAdmin(i))
{
AdmRank = "RCON Administrator";
ChangeColor = Color_RCON_Administrator;
}
else
{
switch(AccInfo[Level])
{
case 1: {
AdmRank = "Basic Moderator";
ChangeColor = Color_Basic_Moderator;
}
case 2: {
AdmRank = "Moderator";
ChangeColor = Color_Moderator;
}
case 3: {
AdmRank = "Master Moderator";
ChangeColor = Color_Master_Moderator;
}
case 4: {
AdmRank = "Administrator";
ChangeColor = Color_Administrator;
}
case 5: {
AdmRank = "Master Administrator";
ChangeColor = Color_Master_Administrator;
}
}
}
switch(AccInfo[OnDuty])
{
case 0: AdmDuty = "Playing!";
case 1: AdmDuty = "On Duty!";
}
format(string, 128, "Level: %d - %s (Id:%i) | %s | %s",AccInfo[Level], PlayerName2(i),i,AdmRank,AdmDuty);
SendClientMessage(playerid, ChangeColor, string);
count++;
}
}
}
if (count == 0)
SendClientMessage(playerid,red,"No admin online in the list");
SendClientMessage(playerid, green, " _______________________________________");
return 1;
}
[/pawn]
Multumesc anticipat
F*ck everybody who want and who try to judge me for who I am, b*star*s !
Link to comment
Share on other sites
5 answers to this question
Recommended Posts