15.03.2014, 01:15
Okay, So I need help with the actual command of the Admin Chat, but ive already got the stock. heres the stock
So how do i do the CMD:a(playerid,params[])
I need it in ZCMD btw
pawn Код:
stock SendMessageToAdmins(fromid, colour, msg[])
{
new pName[MAX_PLAYER_NAME], string[128];
GetPlayerName(fromid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s: %s", pName, msg);
for(new i; i < GetMaxPlayers(); i++)
{
if(pInfo[playerid][pAdmin] < 1)
{
SendClientMessage(i, colour, string);
}
}
}
I need it in ZCMD btw