commands to RCON admins - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: commands to RCON admins (
/showthread.php?tid=86246)
commands to RCON admins -
[GF]sIdEkIcK - 12.07.2009
hey guys, how i script that when someone types a command it sends to all RCON ADMINS online? thnx
Re: commands to RCON admins -
Weirdosport - 12.07.2009
pawn Код:
stock SendAdminMessage(Message[])
{
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerAdmin(i)) SendClientMessage(i, COLOR, Message);
}
}
Example: SendAdminMessage("lol");
Re: commands to RCON admins -
[GF]sIdEkIcK - 12.07.2009
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
Re: commands to RCON admins -
Weirdosport - 12.07.2009
Well yeah, you just use the code I gave you...
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
SendAdminMessage(cmdtext);
return 0;
}
Re: commands to RCON admins -
[GF]sIdEkIcK - 12.07.2009
cool thnx it works
Re: commands to RCON admins -
Weirdosport - 12.07.2009
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()
Re: commands to RCON admins -
[GF]sIdEkIcK - 12.07.2009
lol hehe