Heres the simplest example of an exploding bullet script
CLIENT STUFF
function weaponfired (weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement )
if source == getLocalPlayer () then
triggerServerEvent ("bulletboom", getLocalPlayer (), hitX, hitY, hitZ )
end
end
addEventHandler ( "onClientPlayerWeaponFire", getRootElement(), weaponfired )
SERVER STUFF
addEvent ("bulletboom", true )
function bulletexplosion (hitX, hitY, hitZ)
createExplosion ( hitX, hitY, hitZ, 2 )
end
addEventHandler("bulletboom",getRootElement(),bulletexplosion)
play with it if you want to check which weapon is fired, credit the player with the kill, or generally improve it