[Ajuda] Comando
#7

Quote:
Originally Posted by Pedro_Miranda
Посмотреть сообщение
Vai dar array must be indexed. E nem precisava de MAX_PLAYERS

pawn Код:
#include <a_samp>

new bool:Liberado;

public OnPlayerCommandText(playerid, cmdtext[]) {

    if(!strcmp("/liberardm", cmdtext)) {
        if(Liberado)
            return SendClientMessage(playerid, 0xFFA500FF, "Erro: Teleportes jб liberados.");
           
        Liberado = true;
        return 1;
    }
   
    if(!strcmp("/bloqueardm", cmdtext)) {
        if(!Liberado)
            return SendClientMessage(playerid, 0xFFA500FF, "Erro: Teleportes jб bloqueados.");
           
        Liberado = false;
        return 1;
    }
   
    if(!strcmp("/dm1", cmdtext)) {
        if(!Liberado)
            return SendClientMessage(playerid, 0xFFA500FF, "Erro: Teleportes nгo liberados.");
           
        // Funзхes de teleporte
        return 1;
    }
   
    if(!strcmp("/dm2", cmdtext)) {
        if(!Liberado)
            return SendClientMessage(playerid, 0xFFA500FF, "Erro: Teleportes nгo liberados.");

        // Funзхes de teleporte
        return 1;
    }

    return 0;
}

avб vlw kk eu me esqueco de detalhes mais ele disse que funciono certinho!
Reply


Messages In This Thread
Comando - by maluco88 - 16.09.2012, 20:18
Re: Comando - by Coreia - 16.09.2012, 20:20
Re: Comando - by maluco88 - 16.09.2012, 20:21
Re: Comando - by Coreia - 16.09.2012, 20:25
Re: Comando - by Sky™ - 16.09.2012, 20:49
Re: Comando - by Jason` - 16.09.2012, 23:34
Re: Comando - by Sky™ - 17.09.2012, 00:47

Forum Jump:


Users browsing this thread: 1 Guest(s)