06.08.2013, 12:37
Код:
new pname[MAX_PLAYER_NAME];
CMD:credits(playerid, params[])
{
ShowPlayerDialog(playerid, creditdialog, DIALOG_STYLE_MSGBOX, "Credits", ""cgreen">"cred"Elvis"cblue" server main scripter\n"cgreen">"cred"RaiN_HawK"cblue" server founder", "Ok", "");
SendAdminCMD(playerid, "credits");
return 1;
}
stock SendAdminCMD(playerid, command[])
{
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && pdata[i][admin] > 0)
format(String, sizeof(String), "%s has used command %s", GetPlayerName(playerid, pname, sizeof(pname)), command);
SendClientMessage(i, blue, String);
}
}

