04.03.2015, 11:03
Tell me how I can use the SendBulletData of plug-YSF?
Give an example
MyCode
I've got a bullet flew by player and hit the twoplayer
I still do not understand where to write any coordinates
Show how to use this as an example
Give an example
MyCode
Код:
new Float:x,Float:y,Float:z,Float:x2,Float:y2,Float:z2; GetPlayerPos(playerid,x,y,z);//Get Pos Player Shot GetPlayerPos(twopalyer,x2,y2,z2);//Get Pos Player Take Damage
Quote:
- 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) |
Show how to use this as an example