Raised This Month: $32 Target: $400
 8% 

Special effects on specific command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 02-19-2019 , 15:57   Special effects on specific command
Reply With Quote #1

Hello,

Im trying to make a special effects when a certain command is used, a thunderclap for example when amx_slay is used on a player, doesnt matter if its used by an admin or a server itself.

Any help appreciated.
__________________

Last edited by SomewhereLost; 02-19-2019 at 16:04.
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-19-2019 , 16:07   Re: Special effects on specific command
Reply With Quote #2

This plugin's code can help you - https://forums.alliedmods.net/showthread.php?t=924
PS: if you're asking for help about scripting, you should obviously post in the scripting help section.
__________________

Last edited by OciXCrom; 02-19-2019 at 16:08.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 02-19-2019 , 16:31   Re: Special effects on specific command
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
This plugin's code can help you - https://forums.alliedmods.net/showthread.php?t=924
PS: if you're asking for help about scripting, you should obviously post in the scripting help section.
Sort of, but I havent got anything done yet (correctly) as all the approaches were completely wrong so I posted in requests.

Making a thunder and those effects isnt really an issue, its all about the command used by the server/admin.
__________________
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-19-2019 , 21:48   Re: Special effects on specific command
Reply With Quote #4

Quote:
Originally Posted by SomewhereLost View Post
Sort of, but I havent got anything done yet (correctly) as all the approaches were completely wrong so I posted in requests.
If you aren't requesting a plugin and you are attempting to write your own code then you should post in the Scripting Help section. Make sure that you post the code that you tried.

Quote:
Originally Posted by SomewhereLost View Post
Making a thunder and those effects isnt really an issue, its all about the command used by the server/admin.
You literally asked for how to make thunder on command and then said that's not really the issue??
__________________
fysiks is offline
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 02-20-2019 , 08:03   Re: Special effects on specific command
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
If you aren't requesting a plugin and you are attempting to write your own code then you should post in the Scripting Help section. Make sure that you post the code that you tried.



You literally asked for how to make thunder on command and then said that's not really the issue??
No offense but I think you lack some logic as everytime I see you post, there is literally 0 help but only "just to post anything" that doesnt even make a slight bit of a sense.

I already mentioned that all my codes were not even close, so if you think about a little, you will get the idea that I am requesting it, if not a full plugin but at least the part of it so I can see how to approach it.

About thunder, I said thunder isnt really an issue because the plugin OciXCrom provided there certainly are those kind of effects I am looking for and I also mentioned that the only problem is the command executed on a player.

Dont get me wrong here, I know you are not obligated to help anyone if you dont want to but you could do me a favor and not post on my threads as long as you do not provide me some help, we already had this kind of a talk last time.
__________________

Last edited by SomewhereLost; 02-20-2019 at 08:04.
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
generalmemer
Member
Join Date: Sep 2017
Old 02-20-2019 , 16:51   Re: Special effects on specific command
Reply With Quote #6

Quote:
Originally Posted by SomewhereLost View Post
Hello,

Im trying to make a special effects when a certain command is used, a thunderclap for example when amx_slay is used on a player, doesnt matter if its used by an admin or a server itself.

Any help appreciated.
Its not hard at all to do. You basically just get player origin and there you go

This will create a small effect when amx_slay is successfully executed to any player, it does not work with amxmodmenu

Note: it has to be above admincmd.amxx in your plugins config (or you can edit this effect inside admincmd.sma)

Tell me if its what you're trying to do or not

Spoiler
generalmemer is offline
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 02-20-2019 , 19:33   Re: Special effects on specific command
Reply With Quote #7

Yes that is exactly what I was trying, now just few additions like thunder with emit_sound instead of a shockwave but I dont think this would work if the command is executed by the server.
__________________
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
generalmemer
Member
Join Date: Sep 2017
Old 02-21-2019 , 02:24   Re: Special effects on specific command
Reply With Quote #8

Quote:
Originally Posted by SomewhereLost View Post
Yes that is exactly what I was trying, now just few additions like thunder with emit_sound instead of a shockwave but I dont think this would work if the command is executed by the server.
It will work

Spoiler
generalmemer is offline
generalmemer
Member
Join Date: Sep 2017
Old 02-21-2019 , 02:44   Re: Special effects on specific command
Reply With Quote #9

Here is another thunder effect

Spoiler
generalmemer is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-21-2019 , 03:19   Re: Special effects on specific command
Reply With Quote #10

PHP Code:
if( ~get_user_flags(id) & ADMIN_SLAY 
        return 
PLUGIN_HANDLED 

PHP Code:
if( !(get_user_flags(id) & ADMIN_SLAY) ) 
        return 
PLUGIN_HANDLED 
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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

Forum Jump


All times are GMT -4. The time now is 08:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode