27.09.2015, 01:53
Como fazer um comando /gmx, que faзa +/- a mesma coisa que o /rcon gmx?
CMD:gmx(playerid, params[])
{
SendRconCommand("Gmx");
return 1;
}
GameModeExit();
if (strcmp("/gmx", cmdtext, true, 10) == 0) { SendRconCommand("gmx"); return 1; }
CMD:gmx(playerid, params[])
{
new sendername;
new string[128];
new player_c[MAX_PLAYER_NAME];
GetPlayerName(playerid, player_c, sizeof(player_c));
if(strcmp(player_c, "seunick", true) != 0 ) return SendClientMessage(playerid, -1, "You not have permissions to use command");
SendRconCommand("gmx");
format(string, sizeof(string), "|ADMIN|: ROOT The server is restarted.", playerid, sendername);
SendClientMessageToAll(0x03F2FFFF,string);
return 1;
}
ele quer um comando para reiniciar o servidor isso e uma public с seria isso ?
|