PHP код:
CMD:trancarservidor(playerid, params[])
{
if ( isnull(params) )
return SendClientMessage(playerid, 0xFFBB00FF, "Erro: Uso Correto /trancarservidor [senha]");
new str[128];
format(str, 128, "password %s", params);
SendRconCommand(str);
SendClientMessage(playerid, 0x00BBFFFF, "Servidor trancado.");
return true;
}
CMD:destrancarservidor(playerid)
{
SendRconCommand("password 0");
SendClientMessage(playerid, 0x00BBFFFF, "Servidor destrancado.");
return true;
}