24.01.2012, 13:44
Hey all i dont know how do make /admins command for dcmd
i know all that
EnyOne can help?
i know all that
pawn Код:
dcmd(admins,6,cmdtext);
dcmd(admins,6,cmdtext);
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
}
here you are:
pawn Код:
|