[Ajuda] Comando para criar veiculos bugando
#2

Tente desta forma:

Код:
CMD:veh (playerid, params[]) 
{ 
    new STR[128], Float:X, Float:Y, Float:Z, Float:A, Modelo, c1, c2; 

    if(sscanf(params, "ddd", Modelo, c1, c2)) return SendClientMessage(playerid, COR_VERMELHO, "| AVISO | Use:/veh [Modelo] [cor1] [cor2] "); 

    if(!(Modelo >= 400 && Modelo <= 611)) return SendClientMessage(playerid, COR_VERMELHO, "| AVISO | ID Invбlido use [400 a 611]"); 
    { 
        if(Carro[playerid]) DestroyVehicle(Carro[playerid]); 
        
		GetPlayerPos(playerid, X, Y, Z); 
        GetPlayerFacingAngle(playerid, A); 

        Carro[playerid] = CreateVehicle(Modelo, X, Y, Z, A, c1, c2, 10000); 
        PutPlayerInVehicle(playerid, Carro[playerid], 0); 

        format(STR, sizeof (STR), "| INFO | Vocк criou o Veiculo %d com Sucesso.", Modelo ); 
        SendClientMessage(playerid, COR_VERDECLARO, STR); 

    }
    return 1; 
} 

CMD:delveh (playerid, params[]) 
{ 
    if(Carro[playerid]) DestroyVehicle(Carro[playerid]), Carro[playerid] = 0; 
    return 1; 
}
Reply


Messages In This Thread
Comando para criar veiculos bugando - by ImScoope - 30.03.2019, 23:27
Re: Comando para criar veiculos bugando - by JeffSantos2 - 30.03.2019, 23:57
Re: Comando para criar veiculos bugando - by ImScoope - 31.03.2019, 00:22

Forum Jump:


Users browsing this thread: 1 Guest(s)