[ajuda] Como fazer um cmd de GMX?
#1

Eu tenho um serve pronto mas nгo fiz o cmd de gmx e eu nгo sei fazer nгo queria de zcmd quero de dcmd se alguem puder me ajuda
Reply
#2

pawn Код:
if (strcmp("/gmx", cmdtext, true, 10) == 0)
{
    if(IsPlayerAdmin(playerid))
    {
    SendRconCommand("gmx");
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
    format(string, sizeof(string), "[ GMX ] O Administrador %s reiniciou o Servidor!!", pname);
    SendClientMessageToAll(-1, string);
    return 1;
}
Reply
#3

cre um comando sу pra admin e nele coloque:
pawn Код:
SendRconCommand("gmx");
Reply
#4

Quote:
Originally Posted by PlayeR_TheReturN
Посмотреть сообщение
pawn Код:
if (strcmp("/gmx", cmdtext, true, 10) == 0)
{
    if(IsPlayerAdmin(playerid))
    {
    SendRconCommand("gmx");
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
    format(string, sizeof(string), "[ GMX ] O Administrador %s reiniciou o Servidor!!", pname);
    SendClientMessageToAll(-1, string);
    return 1;
}
meu deus, que vergonha
Reply
#5

como que faz? nгo й assim isso ai sу buga eu vi um que era assim
Quote:

if(strcmp(cmd, "/gmx", true) == 0 || strcmp(cmd, "/restart", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] > 1337)
{
if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342) { return SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)"); }
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{ OnPlayerSave(i); }
}
GameModeExitFunc();
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo tem autorizaзгo para dar GMX!");
}
}
return 1;
}

sу que nгo deu de copilar e o cara de baixo explicou isso aquiґ
й so por isso no meio do "comando" que voce deseja...
Quote:

SendRconCommand("gmx");

mas nгo consigo mesmo
Reply
#6

Quote:
Originally Posted by iReflesh
Посмотреть сообщение
meu deus, que vergonha
Reply
#7

pawn Код:
if(strcmp(cmdtext,"/gmx",true)==0) {
    if(!IsPlayerAdmin(playerid))
        return false;
    SendRconCommand( "gmx" );
    return true;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)