- 0
Intrebare system de admin By zh3r0
-
Similar Content
-
fish system
By ionutadvv,
- 2 replies
- 922 views
-
- 7 replies
- 2,906 views
-
- 12 replies
- 1,259 views
-
heist system
By DanielSy,
- 10 replies
- 833 views
-
- 0 replies
- 409 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
shaun
salut all.
As vrea ca la comanda /helpers sa arate adminii de level 1...
uitati comanda care arata toti adminii(facuta de zh3r0)
[pawn]
CMD:admins(PARAMS)
{
LoginCheck(playerid);
new C, S[1024], cString[150];
foreach(Player, i){
if(P_DATA[Level] > 0){
C++;
}
}
format(cString, sizeof (cString), "%s", © ? (OnlineCheck("Admins", C)) : ("{FF0000}No VIP members online!")) ;
if(C == 1){
foreach(Player, i){
if(P_DATA[Level] > 0){
format(S, sizeof (S), "%s"GREE"%s"W"["GREE"L:%d|ID:%d"W"]",cString, Name(i), P_DATA[Level],i);
}
}
}
if(C > 1){
foreach(Player, i){
if(P_DATA[Level] > 0){
format(S, sizeof (S), "%s"GREE"%s"W"["GREE"L:%d|ID:%d"W"], ",S, Name(i), P_DATA[Level],i);
if(!(i % MAX_SHOW_PER_ROW)){
if(i != 0){
strdel(S, strlen(S) - 2, strlen(S));
strins(S, "\n", strlen(S));
//S[0] = EOS;
}
}
}
}
}
if(!C) format(S, sizeof (S), "%s", cString);
if(strlen(S) < 1024) SPD(playerid, Dialog:Empty, BOX, "{FFFFFF}Online Administrators!", S, "Close", "");
if(strlen(S) > 1024) SPD(playerid, Dialog:Empty, BOX, "{FFFFFF}Online Administrators!", "{FF0000}An error has occured while trying to show the online administrators!\n{FFFFFF}Please contact the owner and inform him about this problem!", "Close", "");
return 1;
}
[/pawn]
Help :azn:
CHECK MY CHANNEL!
http://www.youtube.com/user/amysoica
Link to comment
Share on other sites
4 answers to this question
Recommended Posts