22.06.2013, 11:54
(
Последний раз редактировалось Blackazur; 22.06.2013 в 13:03.
)
----
#include <a_samp>
#define red 0xFF0000AA
public OnPlayerText(playerid, text[])
{
if(text[0] == '//' && IsPlayerAdmin(playerd)) {
new string[128]; GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"Admin Chat: %s: %s",string,text[1]); SendMessageToRAdmins(red,string);
return 0;
}
stock SendMessageToRAdmins(color,const msg[])
{
for (new i=0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i) && IsPlayerAdmin(i)) SendClientMessage(i,color,msg);
}
}