SA-MP Forums Archive
How to do that - 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: How to do that (/showthread.php?tid=193899)



How to do that - dawidek11 - 27.11.2010

If I type /rcon players I get list of online players + their id's etc, but I want to get this in to SendClientMessage.

How can I do it?


Re: How to do that - XePloiT - 27.11.2010

for start i need to know if you using dini/mysql... but you can add this after...
this is the basic try this:
pawn Код:
EDIT: DELETED... CRAP sorry by mistake i wrote a script to show your information >.<"



Re: How to do that - dawidek11 - 27.11.2010

thanks I will try it


Re: How to do that - 6d - 27.11.2010

or simpler than that:

pawn Код:
if(!strcmp(cmdtext,"/players",true))
{
     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"You are not a rcon admin!");
     SendRconCommand("players");
     return 1;
}



Re: How to do that - XePloiT - 27.11.2010

hm i deleted the script sorry.... see what i wrote....
any way... you want all of this information at once? or maybe..."/player 4"
and it will give you the information of player id 4?


Re: How to do that - dawidek11 - 27.11.2010

I want to get this string (SendRconCommand("players") to format it and send it to my IRC.