Rcon Cmd
#4

pawn Код:
public OnRconCommand(cmd[])
{
    if(strcmp(cmd, "rcon gmx", true) == 0)
    {
        SaveAccount();
        SendClientMessageToAll(COLOR_YELLOW,"_____________________________________");
        SendClientMessageToAll(COLOR_YELLOW," ");
        SendClientMessageToAll(COLOR_GREEN,"( ! ) Server: Server is restarting!");
        SendClientMessageToAll(COLOR_GREEN,"( ! ) Server: Account's saved!");
        SendClientMessageToAll(COLOR_YELLOW,"_____________________________________");
        SendRconCommand("gmx");
    }
    if(strcmp(cmd, "gmx", true) == 0)
    {
        SaveAccount();
        SendClientMessageToAll(COLOR_YELLOW,"_____________________________________");
        SendClientMessageToAll(COLOR_YELLOW," ");
        SendClientMessageToAll(COLOR_GREEN,"( ! ) Server: Server is restarting!");
        SendClientMessageToAll(COLOR_GREEN,"( ! ) Server: Account's saved!");
        SendClientMessageToAll(COLOR_YELLOW,"_____________________________________");
        SendRconCommand("gmx");
    }
    if(strcmp(cmd, "/rcon gmx", true) == 0)
    {
        SaveAccount();
        SendClientMessageToAll(COLOR_YELLOW,"_____________________________________");
        SendClientMessageToAll(COLOR_YELLOW," ");
        SendClientMessageToAll(COLOR_GREEN,"( ! ) Server: Server is restarting!");
        SendClientMessageToAll(COLOR_GREEN,"( ! ) Server: Account's saved!");
        SendClientMessageToAll(COLOR_YELLOW,"_____________________________________");
        SendRconCommand("gmx");
    }
    return 1;
}
None of them worked any ideas?
Reply


Messages In This Thread
Rcon Cmd - by Cameltoe - 11.07.2010, 00:16
Re: Rcon Cmd - by Grim_ - 11.07.2010, 01:02
Re: Rcon Cmd - by Cameltoe - 11.07.2010, 01:19
Re: Rcon Cmd - by Cameltoe - 11.07.2010, 01:35
Re: Rcon Cmd - by Cameltoe - 11.07.2010, 11:16
Re: Rcon Cmd - by novox - 11.07.2010, 15:10
Re: Rcon Cmd - by MadeMan - 11.07.2010, 15:18
Re: Rcon Cmd - by Cameltoe - 15.07.2010, 00:31

Forum Jump:


Users browsing this thread: 1 Guest(s)