OnRconCommand - 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: OnRconCommand (
/showthread.php?tid=106767)
OnRconCommand -
AG Adam - 05.11.2009
Hi all! I creating a filterscript (I don't want to post it), and I need If rconcommand = something.
How can I create something like this? (I KNOW IT'S WRONG BUT HOW)
pawn Код:
public OnRconCommand(cmd[])
{
if(cmd="Something")
{
print("It is good");
} else {
print("Wrong!");
}
return 1;
}
Re: OnRconCommand -
Kurence - 05.11.2009
it is:
public OnRconCommand(cmd[]){
if(strcmp("Something", cmd, true) == 0)
{...
But for some reason is OnRconCommand working only in FS make sure it is not in GM
Re: OnRconCommand -
AG Adam - 05.11.2009
Quote:
Originally Posted by Kurence
it is:
public OnRconCommand(cmd[]){
if(strcmp("Something", cmd, true) == 0)
{...
But for some reason is OnRconCommand working only in FS make sure it is not in GM
|
Thanks and yes it's a FS
Re: OnRconCommand -
Correlli - 05.11.2009
You can try this:
http://forum.sa-mp.com/index.php?topic=113647.0
http://forum.sa-mp.com/index.php?topic=119178.0