[Ajuda] deletar veiculo
#1

Galera to usando o vspawner e eu tentei faze pro player da /v
e o veнculo anterior dele deletar mais nгo to conseguindo fazer alguйm pode me ajudar?
Reply
#2

posta o cуdigo
Reply
#3

PHP Code:
SpawnVehicle_InfrontOfPlayer(playeridvehiclemodelcolor1color2)
{
    new 
Float:x,Float:y,Float:z;
    new 
Float:facing;
    new 
Float:distance;

    
GetPlayerPos(playeridxyz);
    
GetPlayerFacingAngle(playeridfacing);

    new 
Float:size_x,Float:size_y,Float:size_z;
    
GetVehicleModelInfo(vehiclemodelVEHICLE_MODEL_INFO_SIZEsize_xsize_ysize_z);
    
    
distance size_x 0.5;

      
+= (distance floatsin(-facingdegrees));
    
+= (distance floatcos(-facingdegrees));

    
facing += 90.0;
    if(
facing 360.0facing -= 360.0;
    return 
CreateVehicle(vehiclemodelxy+ (size_z 0.25), facingcolor1color2, -1);


Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)