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?