15.07.2014, 00:57
Here's the documentation for the SendBullet function:
I've downloaded it from here: http://dev.future-elife.com/SendBullet/src.zip
Code:
- SenderID = The ID that shot the bullet this is required to be a streamed and valid player, otherwise the bullet will not arrive. - HitID = The ID of the player, vehicle or object that was hit. - Hit Type = Read https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot. - Hit Origin = From where the bullet came ? (actually useless but I'll include it anyway.) - Hit Target = You need this for HITTYPE 0 otherwise the bullet will be at some point. - Center Of Hit = The offset of the hit (on hittype higher than 0) - To Player = The Player ID who should receive the Bullet. // Basically you can just controll the bullet's target by using type 0. // Use Type 1 for let the NPC's shoot, example included. // The Other type's are kinda useless, expect you want a npc shoot a vehicle or object. native SendBullet(senderid, hitid, hittype, Float:hitOriginX, Float:hitOriginY, Float:hitOriginZ, Float:hitTargetX, Float:hitTargetY, Float:hitTargetZ, Float:centerOfHitX, Float:centerOfHitX, Float:centerOfHitY, toplayer);