04.11.2012, 20:07
PHP код:
CMD:help(playerid, params[])
{
new MSG[250]
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,sizeof(Name));
new mssg[250];
format(MSG,sizeof(MSG),"Player %s needs help:[Help Message: %s]", Name, mssg);
SendClientMessageToAdmins(GREEN, MSG);
return 1;
//.................................
stock SendClientMessageToAdmins(color, text[])
{
for(new a, g = GetMaxPlayers(); a < g; a++)
if(IsPlayerConnected(a) && IsPlayerAdmin(a))
SendClientMessage(a, color, text);
}
}