17.03.2013, 03:33
Try this :
Then you can use like this
pawn Код:
stock SendMessageToAdmins(color, const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][Admin] >= 1) // You can edit this line depends on your admin system.
SendClientMessage(i, color, string);
}
return 1;
}
pawn Код:
CMD:mycommand(playerid, params[])
{
SendMessageToAdmins(-1, "My command Successful"); // -1 is your "Color" and "My command Successful" is your string.
return 1;
}