[Ajuda] Comando Ativar/Desativar
#3

Quote:
Originally Posted by PT
Посмотреть сообщение
pawn Код:
// topo da gm
new godmode[MAX_PLAYERS] = 0;

// OnPlayerConnect
godmode[playerid] = 0;

// comando
if (strcmp("/god", cmdtext, true, 5) == 0)
{
    if(godmode[playerid] == 0)
    {
        godmode[playerid] = 1;
        SendClientMessage(playerid, 0xFFFFFFAA, "godmod on");
        return 1;
    }
    else
    {
        godmode[playerid] = 0;
        SendClientMessage(playerid, 0xFFFFFFAA, "godmod off");
    }
    return 1;
}
nossa cara valeu procurei procurei e nao achei mais voce ajudo
Reply


Messages In This Thread
Comando Ativar/Desativar - by RuanRider - 22.09.2013, 23:00
Re: Comando Ativar/Desativar - by PT - 22.09.2013, 23:05
Re: Comando Ativar/Desativar - by RuanRider - 22.09.2013, 23:07
Re: Comando Ativar/Desativar - by arakuta - 23.09.2013, 04:10
Re: Comando Ativar/Desativar - by RuanRider - 23.09.2013, 13:19

Forum Jump:


Users browsing this thread: 2 Guest(s)