SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 19/02/2017, 12:44 PM   #1
AbyssMorgan
Banned
 
Join Date: Apr 2015
Location: Poland
Posts: 1,251
Reputation: 326
Cool Magic Wand (Extended Weapon)

Hello, I would like to present you the Magic Wand Script

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

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

Installation:
PHP Code:
#include <SAM/3DTryg>
#include <Magic> 
Functions:
PHP Code:
ToggleUseTeamMagicShoot(bool:toggle);            //default: false
bool:IsToggleUseTeamMagicShoot();
ToggleMagicShootForAll(bool:toggle);             //default: false
bool:IsToggleMagicShootForAll();                  
ToggleMagicShootForPlayer(playerid,bool:toggle); //default: false
bool:IsToggleMagicShootForPlayer(playerid);
Float:GetMagicShootDamage(playerid);
SetMagicShootDamage(playerid,Float:amount);
Float:GetMagicShootSpeed(playerid);
SetMagicShootSpeed(playerid,Float:speed);
Float:GetMagicShootRange(playerid);
SetMagicShootRange(playerid,Float:range);

SetMagicProjectile(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);
GetMagicProjectile(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); 
Activation:
PHP Code:
WeaponFist
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:52 PM. Reason: Bug report
AbyssMorgan is offline   Reply With Quote
Old 19/02/2017, 02:37 PM   #2
TopShooter
Big Clucker
 
TopShooter's Avatar
 
Join Date: Jan 2016
Location: Unknown
Posts: 83
Reputation: 90
Default Re: Magic Wand (Extended Weapon)

Good job, but I had a suggestion for this system.

Add more weapons maybe? For example, you can throw only fire as far as I see, make it that you can throw water aswell, etc.
TopShooter is offline   Reply With Quote
Old 19/02/2017, 02:46 PM   #3
justice96
Guest
 
Posts: n/a
Default Re: Magic Wand (Extended Weapon)

Another good release, it's pretty cool!

add some object to throw, not only fire
  Reply With Quote
Old 22/02/2017, 05:06 PM   #4
AbyssMorgan
Banned
 
Join Date: Apr 2015
Location: Poland
Posts: 1,251
Reputation: 326
Default Re: Magic Wand (Extended Weapon)

Update v1.1.0:

- Added functions:
PHP Code:
Float:GetMagicShootDamage(playerid);
SetMagicShootDamage(playerid,Float:amount);
Float:GetMagicShootSpeed(playerid);
SetMagicShootSpeed(playerid,Float:speed);
Float:GetMagicShootRange(playerid);
SetMagicShootRange(playerid,Float:range);

SetMagicProjectile(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);
GetMagicProjectile(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); 
AbyssMorgan is offline   Reply With Quote
Old 23/02/2017, 05:32 PM   #5
AbyssMorgan
Banned
 
Join Date: Apr 2015
Location: Poland
Posts: 1,251
Reputation: 326
Default Re: Magic Wand (Extended Weapon)

Update v1.1.1:
- Fixed latest update bugs (Weapon not working).
AbyssMorgan is offline   Reply With Quote
Old 24/02/2017, 04:53 PM   #6
Henrik96
Big Clucker
 
Join Date: Nov 2014
Location: Sweden
Posts: 100
Reputation: 6
Default Re: Magic Wand (Extended Weapon)

Good job!
Henrik96 is offline   Reply With Quote
Old 24/02/2017, 08:21 PM   #7
Freaksken
Gangsta
 
Freaksken's Avatar
 
Join Date: Mar 2009
Location: Belgium
Posts: 618
Reputation: 287
Default Re: Magic Wand (Extended Weapon)

Haha that's awesome
__________________
Always keep in mind that a lot of people are active on this forum in their spare time.
They are sacrificing time they could easily spend on things they would rather do, to help you instead.


[Include] FCNPC A.I. - [Tutorial] Speedometer - [WIP] Single-player-like co-op mission - [Other] List of all my work
Freaksken is offline   Reply With Quote
Old 24/02/2017, 08:37 PM   #8
Hansrutger
Gangsta
 
Hansrutger's Avatar
 
Join Date: May 2011
Location: Sweden
Posts: 927
Reputation: 158
Default Re: Magic Wand (Extended Weapon)

Harry Potter Roleplay coming soon?

Jokes aside, very nice haha, funny thing to script!
__________________


Hansrutger is offline   Reply With Quote
Old 25/02/2017, 03:02 PM   #9
BlackbirdXd
Big Clucker
 
BlackbirdXd's Avatar
 
Join Date: May 2016
Location: Home
Posts: 130
Reputation: 12
Default Re: Magic Wand (Extended Weapon)

Quote:
Originally Posted by Hansrutger View Post
Harry Potter Roleplay coming soon?

Jokes aside, very nice haha, funny thing to script!
I was finding a name for my server.
OT: Awesome work looks dope.
BlackbirdXd is offline   Reply With Quote
Old 25/02/2017, 03:40 PM   #10
DRIFT_HUNTER
High-roller
 
Join Date: Oct 2009
Posts: 2,143
Reputation: 172
Default Re: Magic Wand (Extended Weapon)

That is nice and original idea!
How about locking angular velocity so that car cant spin all around after you open parachute.
__________________
Путин here,
Путин there,
Путин просто everywhere.


Any PM's that include question about any kind of help will be ignored.
Use appropriate boards for that
DRIFT_HUNTER 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
[Map] Magic Waterfall [LvZ]Free Maps 13 02/10/2014 10:35 AM
Magic : D Britas Scripting Help 0 27/06/2012 03:45 PM
[FilterScript] Magic hillko Filterscripts 6 18/07/2011 12:25 PM
THIS IS MAGIC? OR NOT? Iphone1234g Help Archive 8 17/06/2011 08:18 PM


All times are GMT. The time now is 09:05 PM.


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