17.03.2013, 02:26
(
Последний раз редактировалось Ananisiki; 15.12.2013 в 18:37.
)
^^^^^^^^
stock SendClientMessageToAdmins(color, message[128])
{
for(new i = 0; i < MAX_PLAYERS; i++){
if(IsPlayerAdmin(i)){
SendClientMessage(i, color, message);
}
}
}
CMD:mycommand(playerid, params[])
{
//whatever the command does
//send message to admins
SendClientMessageToAdmins(-1, "A user used a command, blah blah...");
return 1;
}
stock SendClientMessageToAdmins(color, message[128])
{
for(new i = 0; i < MAX_PLAYERS; i++){
if(IsPlayerAdmin(i)){
SendClientMessage(i, color, message);
}
}
}
stock SendClientMessageToAdmins(color, message[128])
{
for(new i = 0; i < MAX_PLAYERS; i++){
if(PlayerInfo[i][pAdmin] >= 1){
SendClientMessage(i, color, message);
}
}
}
SendClientMessageToAdmins(-1, string);
SendClientMessageToAdmins(1, string);
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;
}
CMD:mycommand(playerid, params[])
{
SendMessageToAdmins(-1, "My command Successful"); // -1 is your "Color" and "My command Successful" is your string.
return 1;
}