SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 30/01/2016, 07:04 AM   #1
AbyssMorgan
Banned
 
Join Date: Apr 2015
Location: Poland
Posts: 1,260
Reputation: 326
Cool Knife Shot

Hello, I would like to present you the Knife Shot Script

Video:
https://www.youtube.com/watch?v=WJZCn3XXRHY

Download:
Knife.inc
3DTryg.inc Thread
ColAndreas Plugin Thread

Installation:
PHP Code:
#include <SAM/3DTryg>
#include <Knife> 
Functions:
PHP Code:
ToggleUseTeamKnifeShoot(bool:toggle);            //default: false
bool:IsToggleUseTeamKnifeShoot();
ToggleKnifeShootForAll(bool:toggle);             //default: true
bool:IsToggleKnifeShootForAll();                  
ToggleKnifeShootForPlayer(playerid,bool:toggle); //default: false
bool:IsToggleKnifeShootForPlayer(playerid);
Float:GetKnifeShootDamage(playerid);
SetKnifeShootDamage(playerid,Float:amount);
Float:GetKnifeShootSpeed(playerid);
SetKnifeShootSpeed(playerid,Float:speed);
Float:GetKnifeShootRange(playerid);
SetKnifeShootRange(playerid,Float:range); 
Activation:
PHP Code:
WeaponKnife

Step 1
Right Mouse Button
Step 2
Left Mouse Button 
Notice:
Filterscript not exist because filterscripts have limits.
This has been replaced by include, having automatic installation, efficient GameMode/FilterScript.


Non-Registered Users:
Bug Report

Last edited by AbyssMorgan; 12/01/2018 at 04:53 PM. Reason: Bug report
AbyssMorgan is offline   Reply With Quote
Old 30/01/2016, 07:17 AM   #2
SyS
High-roller
 
SyS's Avatar
 
Join Date: Oct 2015
Posts: 1,971
Reputation: 447
Default Re: Knife Shot

Nice fs +rep
SyS is offline   Reply With Quote
Old 30/01/2016, 07:44 AM   #3
K0P
Gangsta
 
K0P's Avatar
 
Join Date: Nov 2015
Location: *.*.*.*
Posts: 573
Reputation: 70
Default Re: Knife Shot

You should increase the speed of the knife a little bit
__________________
OptionComment
GitHubAll of the scripts made by me can be found here.
Contact InfoClick here if you want to contact me.
Gift Me CS:GOIF you are kind enough to gift me CS:GO
K0P is offline   Reply With Quote
Old 30/01/2016, 07:46 AM   #4
AbyssMorgan
Banned
 
Join Date: Apr 2015
Location: Poland
Posts: 1,260
Reputation: 326
Default Re: Knife Shot

Quote:
Originally Posted by K0P View Post
You should increase the speed of the knife a little bit
just change the value
#define KNIFE_SPEED (12.0)
AbyssMorgan is offline   Reply With Quote
Old 30/01/2016, 01:19 PM   #5
HaRdiiZin
Gangsta
 
HaRdiiZin's Avatar
 
Join Date: Jan 2015
Location: localhost/HaRdiiZin
Posts: 809
Reputation: 98
Default Respuesta: Knife Shot

Good job.
HaRdiiZin is offline   Reply With Quote
Old 31/01/2016, 08:14 AM   #6
Amunra
Gangsta
 
Amunra's Avatar
 
Join Date: Nov 2015
Location: Indonesian
Posts: 519
Reputation: 12
Default Re: Knife Shot

Good IDEA ....
But...
Quote:
pawno\include\3DTryg.inc(251) : error 017: undefined symbol "FLOAT_INFINITY"
How to fix ?
__________________
Legendary Criminals


Amunra is offline   Reply With Quote
Old 31/01/2016, 08:16 AM   #7
AbyssMorgan
Banned
 
Join Date: Apr 2015
Location: Poland
Posts: 1,260
Reputation: 326
Default Re: Knife Shot

I recommend update you streamer

From streamer.inc
PHP Code:
#if !defined FLOAT_INFINITY
    #define FLOAT_INFINITY (Float:0x7F800000)
#endif 
AbyssMorgan is offline   Reply With Quote
Old 31/01/2016, 08:22 AM   #8
Amunra
Gangsta
 
Amunra's Avatar
 
Join Date: Nov 2015
Location: Indonesian
Posts: 519
Reputation: 12
Default Re: Knife Shot

Quote:
Originally Posted by AbyssMorgan View Post
I recommend update you streamer

From streamer.inc
PHP Code:
#if !defined FLOAT_INFINITY
    #define FLOAT_INFINITY (Float:0x7F800000)
#endif 
Your Mean Streamer version 2.7.9 ?
__________________
Legendary Criminals


Amunra is offline   Reply With Quote
Old 31/01/2016, 08:25 AM   #9
AbyssMorgan
Banned
 
Join Date: Apr 2015
Location: Poland
Posts: 1,260
Reputation: 326
Default Re: Knife Shot

Quote:
Originally Posted by Amunra View Post
Your Mean Streamer version 2.7.9 ?
Yes

Check your streamer.inc whether it has FLOAT_INFINITY

//edit: the problem will be fixed in version 3DTryg.inc 2.1G
AbyssMorgan is offline   Reply With Quote
Old 31/01/2016, 08:28 AM   #10
Amunra
Gangsta
 
Amunra's Avatar
 
Join Date: Nov 2015
Location: Indonesian
Posts: 519
Reputation: 12
Default Re: Knife Shot

Quote:
Originally Posted by AbyssMorgan View Post
Yes

Check your streamer.inc whether it has FLOAT_INFINITY
Can you give me a Download Link From Solidfiles ?
-a Pack Plugins Of Streamer 2.7.9-

My Computer Has Problem With opening Github link !
__________________
Legendary Criminals


Amunra 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
How to: Using Knife CrossOv3r Screenshots and Videos 12 07/12/2013 11:18 AM
Detect if player has Shot someone else (And been Shot)? DarrenReeder Help Archive 9 04/04/2010 05:37 PM
Knife from behind bug Striker_Moe Help Archive 3 18/09/2009 06:10 PM


All times are GMT. The time now is 01:31 AM.


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