SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 18/06/2016, 08:18 PM   #21
AbyssMorgan
High-roller
 
AbyssMorgan's Avatar
 
Join Date: Apr 2015
Location: Poland
Posts: 1,213
Reputation: 351
Default Re: Knife Shot

Update 2.1:
function call OnPlayerGiveDamage / OnPlayerTakeDamage when the knife hits
AbyssMorgan is offline   Reply With Quote
Old 22/06/2016, 08:00 PM   #22
AbyssMorgan
High-roller
 
AbyssMorgan's Avatar
 
Join Date: Apr 2015
Location: Poland
Posts: 1,213
Reputation: 351
Default Re: Knife Shot

Update 2.2:

Added functions:
PHP Code:
ToggleKnifeShootForAll(bool:toggle);             //default: true 
bool:IsToggleKnifeShootForAll();                   
ToggleKnifeShootForPlayer(playerid,bool:toggle); //default: false 
bool:IsToggleKnifeShootForPlayer(playerid); 
AbyssMorgan is offline   Reply With Quote
Old 22/06/2016, 08:15 PM   #23
Owen007
Big Clucker
 
Owen007's Avatar
 
Join Date: Jun 2016
Location: Earth
Posts: 177
Reputation: 23
Default Re: Knife Shot

keep up the awesome work.
__________________
My Work:



Anyone Interested in making a whole new Los Santos Zombie Apocalypse? With Some extra Cool Feautres DM Me Now!
Owen007 is offline   Reply With Quote
Old 19/02/2017, 01:42 PM   #24
AbyssMorgan
High-roller
 
AbyssMorgan's Avatar
 
Join Date: Apr 2015
Location: Poland
Posts: 1,213
Reputation: 351
Default Re: Knife Shot

Update v2.4.0:

- Update for 3DTryg v4.0.2 !

- Added collision detect

- Removed options:
PHP Code:
DISABLE_KNIFE_SOUND Now use OnPlayerGiveDamage OnPlayerTakeDamage
USE_OLD_KNIFE_DATIVE
DISABLE_KNIFE_CALL_DAMAGE 
3DTryg already call OnPlayerGiveDamage OnPlayerTakeDamage 
AbyssMorgan is offline   Reply With Quote
Old 19/02/2017, 04:34 PM   #25
Sumit4
Big Clucker
 
Join Date: Sep 2016
Posts: 95
Reputation: 18
Default Re: Knife Shot

Nice FS
Sumit4 is offline   Reply With Quote
Old 19/02/2017, 05:02 PM   #26
justice96
Guest
 
Posts: n/a
Default Re: Knife Shot

Will try it soon!
  Reply With Quote
Old 22/02/2017, 06:08 PM   #27
AbyssMorgan
High-roller
 
AbyssMorgan's Avatar
 
Join Date: Apr 2015
Location: Poland
Posts: 1,213
Reputation: 351
Default Re: Knife Shot

Update v2.5.0:

- Added functions:
PHP Code:
Float:GetKnifeShootDamage(playerid);
SetKnifeShootDamage(playerid,Float:amount);
Float:GetKnifeShootSpeed(playerid);
SetKnifeShootSpeed(playerid,Float:speed);
Float:GetKnifeShootRange(playerid);
SetKnifeShootRange(playerid,Float:range); 
AbyssMorgan is offline   Reply With Quote
Old 23/02/2017, 06:35 PM   #28
AbyssMorgan
High-roller
 
AbyssMorgan's Avatar
 
Join Date: Apr 2015
Location: Poland
Posts: 1,213
Reputation: 351
Default Re: Knife Shot

Update v2.5.1:
- Fixed latest update bugs (Weapon not working).
AbyssMorgan is offline   Reply With Quote
Old 23/02/2017, 06:52 PM   #29
Variable™
Gangsta
 
Join Date: Jul 2015
Posts: 801
Reputation: 175
Thumbs up Re: Knife Shot

Gotcha, keep up the work.
__________________
Discord | Website
Variable™ is offline   Reply With Quote
Old 13/02/2018, 02:45 PM   #30
KatarinaCalzaghe
Banned
 
Join Date: Feb 2018
Location: Barren Land
Posts: 10
Reputation: 0
Default Re: Knife Shot

Update v2.6.0:

- Added Functions:
PHP Code:
GetKnifeShootAmmo(playerid);
SetKnifeShootAmmo(playerid,ammo); 
- Added Callbacks:
PHP Code:
OnPlayerRequestKnifeShot(playerid,targetid); //return 0 - prevent to use knife shoot (this callback is called also if ammo is 0) 
- Added Definitions:
PHP Code:
KNIFE_WEAPON_AMMO_INFINITY 
KatarinaCalzaghe is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Detect if player has Shot someone else (And been Shot)? DarrenReeder Help Archive 9 04/04/2010 06:37 PM
Knife from behind bug Striker_Moe Help Archive 3 18/09/2009 07:10 PM


All times are GMT. The time now is 08:26 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.