Jump to content

Vehicle to vehicle damaging


S0rcerer

Recommended Posts

Sample server

  
function joinHandler() 
  
        local x,y,z 
        x = 1959.55 
        y = -1714.46 
        z = 16 
        spawnPlayer(source, x, y, z, 0, 68) 
        createPickup ( x, y, z, 0, 100, 1) 
        createBlipAttachedTo ( source, 0, 2, r, g, b, 140 ) 
        giveWeapon ( source , 32 , 500 ) 
    giveWeapon ( source , 42, 2000 ) 
    giveWeapon ( source , 24, 100 ) 
    giveWeapon ( source , 9, 1 ) 
    createVehicle ( 522 , 1944.7, -1710.08, 13.3, 0, 0, 180 ) 
        fadeCamera(source, true) 
        outputChatBox("W 46!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!W 46!!!!!!!!!!!!!!!", source) 
end 
  
addEventHandler('onPlayerJoin', getRootElement(), joinHandler) 
  

in this server players get into the vehicles and fight by weapons , but sometimes it works and sometimes not , i mean that sometimes vehicles didnt take any damage.Can you explain it to me?

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...