Raised This Month: $ Target: $400
 0% 

Orpheu signture EntSelectSpawnPoint()


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 04-22-2016 , 22:03   Orpheu signture EntSelectSpawnPoint()
Reply With Quote #1

I tried this
Code:
{
	"name" : "EntSelectSpawnPoint",
	"library" : "mod",
	"arguments" :
	{
		"type" : "CBaseEntity *"
	},
	"return" :
	{
		"type" : "edict_s *"
	},
	"identifiers" :
	[
		{
			"os"    : "windows",
			"mod"   : "cstrike",
			"value" : [0x53,0x8B,"*","*","*",0x55,0x56,0x8B,"*","*",0x57,0x8B,"*","*","*","*","*",0x89]
		},
		{
			"os"    : "linux",
			"mod"   : "cstrike",
			"value" : "find later"
		}
	]
}
PHP Code:
#include <amxmodx>
#include <orpheu>

public plugin_init()
{
    
OrpheuRegisterHook(OrpheuGetFunction("EntSelectSpawnPoint"), "OnEntSelectSpawnPoint_Post"OrpheuHookPost);
}

public 
OnEntSelectSpawnPoint_Post(id)
{
    
server_print("EntSelectSpawnPoint(%d) -> return %d;"idOrpheuGetReturn());
    
client_print(0print_chat"EntSelectSpawnPoint(%d) -> return %d;"idOrpheuGetReturn());

But it doesn't seems to work, function not found.
__________________
youtube:
@holla16

Last edited by 11922911; 04-23-2016 at 01:26.
11922911 is offline
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 04-22-2016 , 23:36   Re: Orpheu signture EntSelectSpawnPoint()
Reply With Quote #2

Another question, can OrpheuCall() return value for the function? Thanks.
__________________
youtube:
@holla16
11922911 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-23-2016 , 04:27   Re: Orpheu signture EntSelectSpawnPoint()
Reply With Quote #3

Your file is wrong. Pay attention on the syntax(arguments part).

Code:
{
	"name" : "EntSelectSpawnPoint",
	"library" : "mod",
	"arguments" :
	[
		{
			"type" : "CBaseEntity *"
		}
	],
	"return" :
	{
		"type" : "edict_s *"
	},
	"identifiers" :
	[
		{
			"os"    : "windows",
			"mod"   : "cstrike",
			"value" : [0x53,0x8B,"*","*","*",0x55,0x56,0x8B,"*","*",0x57,0x8B,"*","*","*","*","*",0x89]
		},
		{
			"os"    : "linux",
			"mod"   : "cstrike",
			"value" : "_Z19EntSelectSpawnPointP11CBaseEntity"
		}
	]
}
I don't understand your next question. You are asking what OrpheuCall returns?
__________________

Last edited by HamletEagle; 04-23-2016 at 04:27.
HamletEagle is offline
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 04-23-2016 , 06:51   Re: Orpheu signture EntSelectSpawnPoint()
Reply With Quote #4

Quote:
Originally Posted by 11922911 View Post
Another question, can OrpheuCall() return original value for from the function that called? Thanks.
__________________
youtube:
@holla16

Last edited by 11922911; 04-23-2016 at 07:22.
11922911 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 18:42.


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