Raised This Month: $ Target: $400
 0% 

Function call from another plugin [Just close]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
X3.
Junior Member
Join Date: Sep 2018
Old 02-04-2019 , 13:28   Function call from another plugin [Just close]
Reply With Quote #1

Hey.

How I can call a function from other plugin and stop it, disable it? The function is round start.

Last edited by X3.; 02-05-2019 at 13:44. Reason: no way to make it (for myself)..
X3. is offline
Oops9499
Junior Member
Join Date: Dec 2017
Old 02-04-2019 , 13:41   Re: Function call from another plugin
Reply With Quote #2

What exactly do you want to do?

You can call custom functions only according to this: https://forums.alliedmods.net/showthread.php?t=195076
Oops9499 is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 02-04-2019 , 14:37   Re: Function call from another plugin
Reply With Quote #3

I know, that you can do it via orpheu, or using reapi (if ur running rehlds). Would there be a difference for you if you were to stop the round from ending instead? because there are lots of pre made plugins for that. You might just revive the players and teleport them to spawn if necessary and etc.
DjSoftero is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 02-04-2019 , 15:22   Re: Function call from another plugin
Reply With Quote #4

Don't you think that removing the original function from the first plugin would be the simplest and best solution?
__________________


Last edited by Mordekay; 02-04-2019 at 15:22.
Mordekay is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 02-04-2019 , 15:30   Re: Function call from another plugin
Reply With Quote #5

wait, I missunderstood, I thought u want to stop in-game round start event.
DjSoftero is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 02-04-2019 , 15:55   Re: Function call from another plugin
Reply With Quote #6

Look into callfuncs/natives.
__________________
HamletEagle is offline
X3.
Junior Member
Join Date: Sep 2018
Old 02-05-2019 , 05:53   Re: Function call from another plugin
Reply With Quote #7

@Oops9499 Yes, I think like that, but how I can stop the whole function? Messages, health, armor..etc

@Mordekay No because I dont have the sma

@HamletEagle I understood now, but how I can stop it?
X3. is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 02-05-2019 , 06:50   Re: Function call from another plugin
Reply With Quote #8

So you have a plugin without source and you try to stop a function from that plugin? Then it's not easy. You could disassemble the amxx file and nop the bytes for the function call, if you have knowledge about what code the compiler will generate.
__________________
HamletEagle is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 02-05-2019 , 07:36   Re: Function call from another plugin
Reply With Quote #9

This is so hilarious. I wonder where these guys always get the amxx files only. I would never run a plugin on my servers without the sma as you cannot know what "extras" are inside of it.
__________________

Mordekay is offline
X3.
Junior Member
Join Date: Sep 2018
Old 02-05-2019 , 08:46   Re: Function call from another plugin
Reply With Quote #10

Quote:
Originally Posted by Mordekay View Post
This is so hilarious. I wonder where these guys always get the amxx files only. I would never run a plugin on my servers without the sma as you cannot know what "extras" are inside of it.
None of your posts are useful, if you know how to help me then post it.

I know what extras are inside, keep your opinion for yourself.
X3. is offline
Reply



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 07:04.


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