Commands in samp-server.exe console - 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)
+--- Thread: Commands in samp-server.exe console (
/showthread.php?tid=281365)
Commands in samp-server.exe console -
Wesley221 - 05.09.2011
I know its possible to have commands in the samp-server.exe console, and i also tried to make one but it didnt work.
pawn Код:
public OnRconCommand(cmd[])
{
if( !strcmp( cmd, "kickall", true ) )
{
print("kickall");
foreach(Player, i)
{
Kick( i );
}
}
return 0;
}
When i typed "kickall" in the console (with '/rcon' before it, and with 'rcon' before it and without '(/)rcon' ) nothing happened, it didnt even print 'kickall'
What can the problem be?
~Wesley
Re: Commands in samp-server.exe console -
Backwardsman97 - 05.09.2011
I think only native rcon commands work in the console.
Re: Commands in samp-server.exe console -
=WoR=Varth - 05.09.2011
Re: Commands in samp-server.exe console -
Wesley221 - 05.09.2011
Quote:
Originally Posted by Backwardsman97
I think only native rcon commands work in the console.
|
So actually this callback has no use then?
Quote:
Originally Posted by varthshenon
|
Still nothing
Re: Commands in samp-server.exe console -
=WoR=Varth - 05.09.2011
Quote:
Originally Posted by Wesley221
So actually this callback has no use then?
Still nothing
|
Have you read this?
https://sampwiki.blast.hk/wiki/OnRconCommand
Re: Commands in samp-server.exe console -
Wesley221 - 05.09.2011
Quote:
Originally Posted by varthshenon
|
Yes i did
Re: Commands in samp-server.exe console -
[MWR]Blood - 05.09.2011
When you execute a command in the console, it shouldn't be preceded by 'rcon'.
Re: Commands in samp-server.exe console -
Wesley221 - 05.09.2011
Quote:
Originally Posted by [MWR]Blood
When you execute a command in the console, it shouldn't be preceded by 'rcon'.
|
Quote:
Originally Posted by Wesley221
I know its possible to have commands in the samp-server.exe console, and i also tried to make one but it didnt work.
pawn Код:
public OnRconCommand(cmd[]) { if( !strcmp( cmd, "kickall", true ) ) { print("kickall"); foreach(Player, i) { Kick( i ); } } return 0; }
When i typed "kickall" in the console ( with '/rcon' before it, and with 'rcon' before it and without '(/)rcon' ) nothing happened, it didnt even print 'kickall'
What can the problem be?
~Wesley
|
I did it with, and without
Re: Commands in samp-server.exe console -
=WoR=G4M3Ov3r - 05.09.2011
Did you try /kickall ? (Not IG)
Re: Commands in samp-server.exe console -
Wesley221 - 05.09.2011
Quote:
Originally Posted by G4M3Ov3r
Did you try /kickall ?
|
In the console you dont need the '/' before a command
Edit:
Quote:
Originally Posted by [MWR]Blood
|
I just tried, but didnt work neither