[PEDIDO]Comando /trancar
#1

Bom Galera Ja Coloquei Na TAG Do Tуpico Que й Um Pedido.

Eu Queria Fazer Um Comando /trancar Que Salvasse.
Quando o Player Criasse Um Veiculo NO Menu De Veнculos.
Se Tivesse Salvado Que Tava Trancado. Trancasse Todos Veнculos.
Que Ele Criasse Atraves Do Menu.

Eu Uso Para Salvar o Veнculos DO Menu :
pawn Код:
SetPVarInt(playerid,"Veiculo",GetPlayerVehicleID(playerid));
Entao Teria Que Fechar o Veiculo Salvo Nessa PVar.

HELP ME!!!
Reply
#2

Meu sistema й diferente, porem pode ser que sirva para vocк!

pawn Код:
new TrancarGeral[MAX_PLAYERS];

    if(strcmp(cmdtext, "/trancar", true) == 0)
    {
        if(TrancarGeral[playerid] = 0)
        {
            if(TrancarGeral[playerid] = 1) return SendClientMessage(playerid, 0xd6deacAA,"** Seus veiculos jб estгo trancados.");
            new vehicleid = GetPlayerVehicleID(playerid);
            for( new i=0;i<=MAX_PLAYERS;i++)
            {
                if(i!= playerid)
                {
                    if(FUNCAO DE CRIAR VEICULOS)
                    {
                        TrancarGeral[i] = 1
                        SetVehicleParamsForPlayer(vehicleid, FUNCAO DE CRIAR VEICULOS, 0, 1);
                        GameTextForPlayer(playerid,"Todos seus veiculos foram trancados!",3000,3);
                    }
                }
            }
            return SendClientMessage(playerid, 0xd6deacAA, "[INFO]: Veiculos trancados"), PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
        }
Reply
#3

Vlw Stronda Mais Nao й Isso Que To Pensando

+rep para vc por me ajudar
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)