commands in conzole
#1

what are the commands in conzole like
say -to say something in the server
did have others commands
Reply
#2

read this info
https://sampwiki.blast.hk/wiki/Controlling_Your_Server
Reply
#3

Not this in the black window which you start the server
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)