commands to RCON admins
#1

hey guys, how i script that when someone types a command it sends to all RCON ADMINS online? thnx
Reply
#2

pawn Код:
stock SendAdminMessage(Message[])
{
    for(new i; i<MAX_PLAYERS; i++)
    {
      if(IsPlayerAdmin(i)) SendClientMessage(i, COLOR, Message);
    }
}
Example: SendAdminMessage("lol");
Reply
#3

Quote:
Originally Posted by Weirdosport
pawn Код:
stock SendAdminMessage(Message[])
{
    for(new i; i<MAX_PLAYERS; i++)
    {
      if(IsPlayerAdmin(i)) SendClientMessage(i, COLOR, Message);
    }
}
Example: SendAdminMessage("lol");
huh!? i mean like if someone types a command with a / eg, "/help"
then it will show that the player typed "/help".. eg
"[GF]sIdEkIcK used /help" so it will show to all online Rcon Admins
Reply
#4

Well yeah, you just use the code I gave you...

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    SendAdminMessage(cmdtext);
    return 0;
}
Reply
#5

cool thnx it works
Reply
#6

Quote:
Originally Posted by [GF
sIdEkIcK ]
cool thnx it works
That's lucky, I didn't test it =p

You might want to change it to say which playerid/name said the command though.. shouldn't be too hard using format()
Reply
#7

lol hehe
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)