#10

PHP код:
*/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 
DestroyVehicle(pv[playerid]),pv[playerid]=CreateVehicle(vehiclemodelxy+ (size_z 0.25), facingcolor1color2, -1); 
}
/* 
Like this.
Reply


Messages In This Thread
help - by crukk11 - 23.02.2017, 14:33
Re: help - by Mencent - 23.02.2017, 14:41
Re: help - by crukk11 - 23.02.2017, 14:47
Re: help - by Mencent - 23.02.2017, 14:50
Re: help - by crukk11 - 23.02.2017, 14:52
Re: help - by Mencent - 23.02.2017, 14:55
Re: help - by crukk11 - 23.02.2017, 14:57
Re: help - by Mencent - 23.02.2017, 15:03
Re: help - by crukk11 - 23.02.2017, 15:07
Re: help - by Mencent - 23.02.2017, 16:06

Forum Jump:


Users browsing this thread: 2 Guest(s)