You can attach a small breakable object (like cm_box)to the projectile and make it invisible. Then catch the object break event and explode the satchel. It would also explode when hit by a car or melee - you can filter these out by damage source and cancel the event/recreate the box if this is not what you're after.
Also, good idea, I think I'll do it too
Isso ocorre por que a sniper somente tem uma bala no clip, você precisará aumenta o clip de balas usando :
setWeaponProperty("sniper", "pro", "maximum_clip_ammo", 10)
setWeaponProperty("sniper", "std", "maximum_clip_ammo", 10)
setWeaponProperty("sniper", "poor", "maximum_clip_ammo", 10)
You need to use events.
OnClientPlayerJoin trigger the attached function when someone join to server, and you need to start the Intro Render only for this client, who is you, localPlayer.
addEventHandler("onClientPlayerJoin", root, function
-- Wiki note: The `source` of this event is the player that joined the server.
if source == localPlayer then -- who join is you, the localPlayer
-- start render
end
end)
-- or set the source of the event to localPlayer instead of root, and then you dont need to check it who is the source.
Some Lua tutorial
Add me to a chat program and I'll help you understand further
You can use 2 methods,
Shaders, which can sync to multiplayer.
Or
.TXD files, to locally replace the texture for individual clients.
Você pode fazer isso. Crie uma tabela com o ID do veículo como index e os valores da handling como value.
A principal função e o principal evento que você deve usar:
setVehicleHandling
onVehicleEnter