[Ajuda] CMD de criar carro
#2

tenta ai

pawn Код:
CMD:cv(playerid, params[])
{
    new Float:x, Float:y, Float:z,carro,cor1,cor2;
    if(sscanf(params, "ddd",carro,cor1,cor2))
    {
    SendClientMessage(playerid, -1,"Uso correto: /cv [idveiculo] [cor1] [cor2]");
    }
    else
    {
        if(carro < 400 || carro > 611)
        {
        SendClientMessage(playerid, -1,"Veнculo nгo encontrado");
        }
        else
        {
            if(GetPlayerInterior(playerid) != 0)
            {
            GetPlayerPos(playerid, x,y,z)
            LinkVehicleToInterior(CreateVehicle(carro,x,y,z,90,cor1,cor2,600),GetPlayerInterior(playerid))
            }
            else
            {
            GetPlayerPos(playerid, x,y,z)
            CreateVehicle(carro,x,y,z,90,cor1,cor2,600)
            }
        }
    }
    return 1;
}
by JoaoP
Reply


Messages In This Thread
CMD de criar carro - by BWCALLEf - 16.06.2014, 01:26
Re: CMD de criar carro - by KILERTRANSUDO - 16.06.2014, 01:30
Re: CMD de criar carro - by MultiKill - 16.06.2014, 03:17
Re: CMD de criar carro - by Ts3 - 16.06.2014, 20:12

Forum Jump:


Users browsing this thread: 1 Guest(s)