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:
Functions:
Callbacks:
Definitions:
Activation:
Notice:
Filterscript not exist because filterscripts have limits.
This has been replaced by include, having automatic installation, efficient GameMode/FilterScript.
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.