commands in conzole - 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 in conzole (
/showthread.php?tid=257343)
commands in conzole -
boyan96 - 25.05.2011
what are the commands in conzole like
say -to say something in the server
did have others commands
Re: commands in conzole -
Sascha - 25.05.2011
read this info
https://sampwiki.blast.hk/wiki/Controlling_Your_Server
Re: commands in conzole -
boyan96 - 25.05.2011
Not this in the black window which you start the server
AW: commands in conzole -
Nero_3D - 25.05.2011
Just type "cmdlist" in the console (you would have found out that if you had read the link he provided)
For more rcon commands you could use OnRconCommand, some examples
pawn Код:
public OnRconCommand(cmd[]) {
if(cmd[0] == '!') {
GameTextForAll(cmd[1], 2500, 4);
return true;
}
if(strcmp(cmd, "kill", true) == 0) {
//no slash before the command! its "/rcon command" or in console only "command"
new
playerid = strval(cmd);
if(SetPlayerHealth(playerid, 0.0)) {
new
name[MAX_PLAYER_NAME];
SendClientMessage(playerid, 0xFF0000FF, "God send you to HELL");
GetPlayerName(playerid, name, sizeof name);
printf("%s (%d) successfully killed", name, playerid);
} else {
printf("Invalid playerid (%d)", playerid);
}
return true;
}
return false;
}
One important thing, this public can only be used if it is used in an loaded filterscript at least once
So I would recommand to make an filterscript called RconCmds.pwn or something like that