30.01.2016, 07:04
(
Last edited by AbyssMorgan; 11/10/2019 at 12:59 PM.
Reason: Update v2.7.0
)
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
Installation:
Functions:
Callbacks:
Definitions:
Activation:
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
Video:
https://www.youtube.com/watch?v=WJZCn3XXRHY
Download:
Knife.inc
3DTryg.inc Thread
ColAndreas Plugin
Installation:
PHP Code:
#include <3DTryg>
#include <Knife>
PHP Code:
Knife::ToggleUseTeam(bool:toggle); //default: false
Knife::IsToggleUseTeam();
Knife::ToggleForAll(bool:toggle); //default: false
Knife::IsToggleForAll();
Knife::ToggleForPlayer(playerid,bool:toggle); //default: false
Knife::IsToggleForPlayer(playerid);
Knife::GetDamage(playerid);
Knife::SetDamage(playerid,Float:amount);
Knife::GetSpeed(playerid);
Knife::SetSpeed(playerid,Float:speed);
Knife::GetRange(playerid);
Knife::SetRange(playerid,Float:range);
Knife::GetAmmo(playerid);
Knife::SetAmmo(playerid,ammo);
Knife::TogglePoisoning(playerid,bool:toggle);
Knife::IsTogglePoisoning(playerid);
Knife::GetPoisoningTime(playerid);
Knife::SetPoisoningTime(playerid,seconds);
Knife::GetPoisoningDamage(playerid);
Knife::SetPoisoningDamage(playerid,Float:damage);*
PHP Code:
OnPlayerRequestKnifeShot(playerid,targetid); //return 0 - prevent to use knife shoot (this callback is called also if ammo is 0)
PHP Code:
KNIFE_SPEED
KNIFE_MAX_RADIUS
KNIFE_REFRESH_ACTION
KNIFE_REFRESH_MISS
KNIFE_DAMAGE
KNIFE_WEAPON_AMMO_INFINITY
KNIFE_DOT_POISONING
KNIFE_POISONING_TIME
WEAPON_KNIFE_THROWN
WEAPON_KNIFE_POISONING
PHP Code:
Weapon: Knife
Step 1: Right Mouse Button
Step 2: Left Mouse Button
Filterscript not exist because filterscripts have limits.
This has been replaced by include, having automatic installation, efficient GameMode/FilterScript.
Non-Registered Users:
Bug Report