[Ajuda]Me ajuda criar um GMX eu procurei mais nenhum funfou
#1

Me ajuda criar um GMX eu procurei mais nenhum funfou
Reply
#2

Aqui
Reply
#3

/rcon login [senha]
/rcon gmx

Nгo ah igual.
Reply
#4

Velho eu disse /gmx nгo /rcon gmx --'
Tipo eu sou admin de um tal server ex: Brasil Play Hard
ai eu dou /gmx й assim que quero saber D:
Reply
#5

Gmx nгo й tudo igual? ¬¬
Reply
#6

Edu meu ta assim eu do /gmx mais da gmx mais a tela fica preta D:
Reply
#7

pawn Код:
if (strcmp(cmd, "/gmx", true) == 0)
{
    if //Aqui a variбvel do sistema de admin
    {
        OnFilterScriptExit();
        SetTimer("Reiniciar", 3000, 0);
    }
    else
    {
        SendClientMessage(playerid, -1, "Vocк nгo pode usar esse comando!");
    }
    return 1;
}

forward Reiniciar();
public Reiniciar()
{
    SendRconCommand("gmx");
}
Sei la mais ou menos assim
Reply
#8

pawn Код:
// Topo
new gmxTick;

// Comando
if(!strcmp("/gmx", cmd, true))
{
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, -1, "Use /gmx <segundos>"); // Contagem
   
    gmxTick = strval(tmp) + 1;
    SetTimer("restartServer", 1000, 1);
    return 1;
}

// Fim do script
forward restartServer();
public restartServer()
{
    -- gmxTick;
    new str[32];
    format(str, sizeof(str), "GMX: ~r~%d", gmxTick);
    GameTextForAll(str, 1000, 5);
    if(gmxTick == 1)
        SendRconCommand("gmx");
       
    return 1;
}
Reply
#9

Quote:
Originally Posted by Pedro_Miranda
Посмотреть сообщение
pawn Код:
// Topo
new gmxTick;

// Comando
if(!strcmp("/gmx", cmd, true))
{
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, -1, "Use /gmx <segundos>"); // Contagem
   
    gmxTick = strval(tmp) + 1;
    SetTimer("restartServer", 1000, 1);
    return 1;
}

// Fim do script
forward restartServer();
public restartServer()
{
    -- gmxTick;
    new str[32];
    format(str, sizeof(str), "GMX: ~r~%d", gmxTick);
    GameTextForAll(str, 1000, 5);
    if(gmxTick == 1)
        SendRconCommand("gmx");
       
    return 1;
}
Poderia fazer direto neh:
pawn Код:
SetTimer("restartServer", strval(tmp)*1000, 0);
Simples:
pawn Код:
SendRconCommand("gmx");

//ou

OnGameModeExit();
Reply
#10

Quote:
Originally Posted by paulor
Посмотреть сообщение
Poderia fazer direto neh:
pawn Код:
SetTimer("restartServer", strval(tmp)*1000, 0);
Simples:
pawn Код:
SendRconCommand("gmx");

//ou

OnGameModeExit();
Com contagem fica mais bonitinho :B
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)