|
|
|
|
#1 | |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Apr 2010
Location: Lithuania
Posts: 1,352
Reputation: 130
|
EDIT 2013: THIS INCLUDE IS OLD AND OUTDATED! SA-MP HAS DEVELOPED NATIVE FUNCTIONS FOR THIS.
OnPlayerShootPlayer v8 Today I was thinking of making a Real Time damage system. When it was finished, i thought i can make a OnPlayerShootPlayer function of it! The include is Plug&Play, just include it in your script. No changes needed. This doesn't call the calback, when you shoot through a wall, or something like that. It checks when a players health goes down, and checks if anyone is aiming at the player. ChangeLog: Quote:
Usage: Insert this code on top of your game mode after #include <a_samp>pawn Code:
pawn Code:
An example: pawn Code:
Installing: Download and save to pawn/includes folder!Credits: Credits to Double-O-Seven for Cross Product system.Credits to Nero_3D for GetPlayerCameraWeaponVector function. Download: Here you go:Version 8.4 Version 7.0 Version 6.0 Version 5.0 Feel free to do anything you want with it. Last edited by wups; 25/03/2013 at 07:36 PM. |
|
|
|
|
|
|
#2 |
|
Huge Clucker
Join Date: Aug 2010
Location: Puerto Madryn
Posts: 244
Reputation: 3
|
Very good!!
|
|
|
|
|
|
#3 |
|
Godfather
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Feb 2010
Posts: 6,834
Reputation: 489
|
Finally, it's about time somebody released something like this! I'm going to go check the accuracy of this in an hour or so.
|
|
|
|
|
|
#4 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Apr 2010
Location: Lithuania
Posts: 1,352
Reputation: 130
|
Thanks, I appreciate that guys.
|
|
|
|
|
|
#5 |
|
Little Clucker
![]() Join Date: Jul 2010
Posts: 13
Reputation: 0
|
Woot! Nice job. I will test it.
|
|
|
|
|
|
#6 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Jan 2010
Posts: 329
Reputation: 7
|
nice job bro.
|
|
|
|
|
|
#7 |
|
Banned
![]() Join Date: Jan 2010
Location: Everywhere
Posts: 694
Reputation: 0
|
Lovely! Really usefull! Ur being so kind releasing it!
Would be really usefull for Sniper Minigames! |
|
|
|
|
|
#8 |
|
Little Clucker
![]() Join Date: Nov 2010
Posts: 7
Reputation: 0
|
Very good! Now I can to fix the team fuction.
|
|
|
|
|
|
#9 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jul 2010
Location: England
Posts: 2,182
Reputation: 51
|
Thanks a FUCKLOAD for this. =D
|
|
|
|
|
|
#10 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: May 2009
Location: The Netherlands
Posts: 1,340
Reputation: 119
|
Thanks for this, seriously. I have been looking for this, great job.
Next mission; Create an include which will decide how many HP(damage) the one will lose when you shoot!
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|