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

[Orpheu]SV_DropClient did not pass the player index ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 07-02-2012 , 01:30   [Orpheu]SV_DropClient did not pass the player index ?
Reply With Quote #1

SV_DropClient did not pass the player index ?
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-02-2012 , 06:57   Re: [Orpheu]SV_DropClient did not pass the player index ?
Reply With Quote #2

Engine is not made of Pawn, LoL. Such function passes a structure, client_t, if I'm right, and you can probably retrieve a player's index from a member.
__________________
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-02-2012 , 07:14   Re: [Orpheu]SV_DropClient did not pass the player index ?
Reply With Quote #3

In module you can use :

Code:
typedef struct client_s
{
#ifdef __linux__
  int dummy[4769];
#else
  int dummy[4839];
#endif
  edict_t*ePlayer;
  const edict_t*eViewEntity;
  int userid;
}client_t;

With orpheu you can convert to offset.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 07-02-2012 at 07:15.
ConnorMcLeod is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 07-04-2012 , 00:49   Re: [Orpheu]SV_DropClient did not pass the player index ?
Reply With Quote #4

Code:
new id = OrpheuGetStructMember(OrpheuGetEngineFunctionsStruct(), "edict_t");
something like this ?
I don't how to use these function !
better to write a tut, if someone know these !
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-04-2012 , 00:51   Re: [Orpheu]SV_DropClient did not pass the player index ?
Reply With Quote #5

Dunno how you can convert from edict with orpheu, but it doesn't seem you used right way.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 07-04-2012 , 01:22   Re: [Orpheu]SV_DropClient did not pass the player index ?
Reply With Quote #6

Yes , you are right ! I'm reading the header file if orpheu !
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-04-2012 , 03:56   Re: [Orpheu]SV_DropClient did not pass the player index ?
Reply With Quote #7

If you using orpheu, you need a memory file to specify the offset (position) of ePlayer as type edict_s*, then in the plugin using OrpheuMemoryGetAtAddress with the pointer of client_t (first arg) as start address and your identifier from the memory file.
__________________
Arkshine 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 22:21.


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