Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Releases Filterscripts [Filterscript] Magic Wand

 
  • 0 Vote(s) - 0 Average
Filterscript Magic Wand
AbyssMorgan
Offline

Burgershot Member
Posts: 63
Threads: 25
Joined: Apr 2021
Reputation: 8
Location: Poland
#1
2021-04-18, 12:28 PM (This post was last modified: 2021-04-27, 04:51 PM by AbyssMorgan. Edit Reason: Update v1.3.0 )
Hello, I would like to present you the Magic Wand Script

Video:
https://www.youtube.com/watch?v=aaHfVz-UxR8

Download:
Magic.inc
3DTryg.inc
ColAndreas Plugin

Installation:
Code:
#include <colandreas>
#include <3DTryg>
#include <Magic>

Functions:
Code:
Magic::ToggleUseTeam(bool:toggle);            //default: false
Magic::IsToggleUseTeam();
Magic::ToggleForAll(bool:toggle);             //default: false
Magic::IsToggleForAll();
Magic::ToggleForPlayer(playerid,bool:toggle); //default: false
Magic::IsToggleForPlayer(playerid);
Magic::GetDamage(playerid);
Magic::SetDamage(playerid,Float:amount);
Magic::GetSpeed(playerid);
Magic::SetSpeed(playerid,Float:speed);
Magic::GetRange(playerid);
Magic::SetRange(playerid,Float:range);
Magic::GetAmmo(playerid);
Magic::SetAmmo(playerid,ammo);
Magic::TogglePoisoning(playerid,bool:toggle);
Magic::IsTogglePoisoning(playerid);
Magic::GetPoisoningTime(playerid);
Magic::SetPoisoningTime(playerid,seconds);
Magic::GetPoisoningDamage(playerid);
Magic::SetPoisoningDamage(playerid,Float:damage);
Magic::SetProjectile(playerid,modelid=18693,Float:rx=90.0,Float:ry=0.0,Float:rz=0.0,Float:offx=0.0,Float:offy=0.0,Float:offz=0.0);
Magic::GetProjectile(playerid,&modelid,&Float:rx=0.0,&Float:ry=0.0,&Float:rz=0.0,&Float:offx=0.0,&Float:offy=0.0,&Float:offz=0.0);

Callbacks:
Code:
OnPlayerRequestMagicShot(playerid,targetid); //return 0 - prevent to use magic shoot (this callback is called also if ammo is 0)

Definitions:
Code:
MAGIC_SPEED
MAGIC_MAX_RADIUS
MAGIC_REFRESH_ACTION
MAGIC_DAMAGE
MAGIC_DOT_POISONING
MAGIC_POISONING_TIME
MAGIC_WEAPON_AMMO_INFINITY

WEAPON_MAGIC_BULLET
WEAPON_MAGIC_POISONING

Activation:
Code:
Weapon: Fist
Left Mouse Button

Notice:
Filterscript not exist because filterscripts have limits.
This has been replaced by include, having automatic installation, efficient GameMode/FilterScript.
AbyssMorgan
Offline

Burgershot Member
Posts: 63
Threads: 25
Joined: Apr 2021
Reputation: 8
Location: Poland
#2
2021-04-27, 04:52 PM
Update v1.3.0:

- General functions renamed

- Updated for Knife.inc standard

- Added functions:
Code:
Magic::TogglePoisoning(playerid,bool:toggle);
Magic::IsTogglePoisoning(playerid);
Magic::GetPoisoningTime(playerid);
Magic::SetPoisoningTime(playerid,seconds);
Magic::GetPoisoningDamage(playerid);
Magic::SetPoisoningDamage(playerid,Float:damage);

- Added death reasons:
Code:
WEAPON_MAGIC_BULLET
WEAPON_MAGIC_POISONING

- Added definitions:
Code:
MAGIC_DOT_POISONING
MAGIC_POISONING_TIME
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode