dcmd /admins [+REP] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: dcmd /admins [+REP] (
/showthread.php?tid=313120)
dcmd /admins [+REP] -
James Coral - 24.01.2012
Hey all i dont know how do make /admins command for dcmd
i know all that
EnyOne can help?
Re: dcmd /admins [+REP] -
[HK]Ryder[AN] - 24.01.2012
What's your enum used to define that a player is admin or not.
Until i know that i can't give the code although the way is to loop through all the players and see if a player is admin send his name in message else don't send.
Re: dcmd /admins [+REP] -
James Coral - 24.01.2012
Never Mind! i got that coommand
Re: dcmd /admins [+REP] -
KingHual - 24.01.2012
"EnyOne"? lol'd
Re: dcmd /admins [+REP] -
MAVERICKS - 24.01.2012
here you are:
pawn Код:
dcmd_admins(playerid, params[])
{
SendClientMessage(playerid, COLOR_YELLOW, "Online admins:");
new chose;
for(new i=0;i<MAX_PLAYERS;i++)
{
if(AccountInfo[i][aLevel] > 0)
{
new name[60], string[100];
GetPlayerName(i, name, 60);
format(string, 100, "%s[%i] Level: %i", name, i, AccountInfo[i][aLevel]);
SendClientMessage(playerid, COLOR_WHITE, string);
chose = 1;
}
}
if(chose == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "No administrators online!");
}
return 1;
#pragma unused params
}
Re: dcmd /admins [+REP] -
[HK]Ryder[AN] - 24.01.2012
Quote:
Originally Posted by MAVERICKS
here you are:
pawn Код:
dcmd_admins(playerid, params[]) { SendClientMessage(playerid, COLOR_YELLOW, "Online admins:"); new chose; for(new i=0;i<MAX_PLAYERS;i++) { if(AccountInfo[i][aLevel] > 0) { new name[60], string[100]; GetPlayerName(i, name, 60); format(string, 100, "%s[%i] Level: %i", name, i, AccountInfo[i][aLevel]); SendClientMessage(playerid, COLOR_WHITE, string); chose = 1; } } if(chose == 0) { SendClientMessage(playerid, COLOR_WHITE, "No administrators online!"); } return 1; #pragma unused params }
|
Read the comment.He says that he has found out the CMD
Re: dcmd /admins [+REP] -
NeonPotatoz - 26.02.2012
Bumpius! - How to put this in Dialog form? (DCMD) And I will give you rep :3
Re: dcmd /admins [+REP] -
KingHual - 26.02.2012
Quote:
Originally Posted by NeonPotatoz
Bumpius! - How to put this in Dialog form? (DCMD) And I will give you rep :3
|
You can't even rep. Didn't you take any time at all to read the forum rules before posting? *sigh*