Ajuda.
#1

pawn Код:
CMD:criarcarro(playerid, params[])
{
    if (informacoes[playerid][leveladministrativo] >= 1)
    {
        new id, cor, cor2;
       
        if (sscanf(params, "udd", id, cor, cor2) ) return SendClientMessage(playerid, 0xFF4848AA, "Use: /criarcarro id cor cor2.");
       
        else if (id >= 400 || id <= 611 || cor >= 0 || cor <= 126 || cor2 >= 0 || cor2 <= 126)
        {
            GetPlayerPos(playerid, x, y, z);
            AddStaticVehicle(id, x, y, z, 0.0, cor, cor2);
            PutPlayerInVehicle(playerid, id, 0);
            SendClientMessage(playerid, 0xC0FFFFAA, "Veнculo criando, caso vocк saia dele ele serб destruнdo.");
        }
       
        else if (id < 400 || id > 611 || cor < 0 || cor > 126 || cor2 < 0 || cor2 > 126)
        {
            return SendClientMessage(playerid, 0xFF4848AA, "Id inexistente.");
        }
    }
    return 1;
}
Queria saber como usar a funзгo de destruir o veнculo quando o jogador sair e sу pode ser com o motorista.
Reply


Messages In This Thread
Ajuda. - by Cнєsρıяıтσ ѓгη - 20.01.2011, 18:39
Re: Ajuda. - by Macintosh - 20.01.2011, 18:58
Re: Ajuda. - by Ricop522 - 20.01.2011, 19:33
Re: Ajuda. - by Cнєsρıяıтσ ѓгη - 20.01.2011, 19:40
Re: Ajuda. - by LuaN_ - 20.01.2011, 21:25
Re: Ajuda. - by rjjj - 20.01.2011, 22:34

Forum Jump:


Users browsing this thread: 1 Guest(s)