AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Orpheu]SV_DropClient did not pass the player index ? (https://forums.alliedmods.net/showthread.php?t=188945)

K.K.Lv 07-02-2012 01:30

[Orpheu]SV_DropClient did not pass the player index ?
 
SV_DropClient did not pass the player index ?

Arkshine 07-02-2012 06:57

Re: [Orpheu]SV_DropClient did not pass the player index ?
 
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.

ConnorMcLeod 07-02-2012 07:14

Re: [Orpheu]SV_DropClient did not pass the player index ?
 
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.

K.K.Lv 07-04-2012 00:49

Re: [Orpheu]SV_DropClient did not pass the player index ?
 
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 !

ConnorMcLeod 07-04-2012 00:51

Re: [Orpheu]SV_DropClient did not pass the player index ?
 
Dunno how you can convert from edict with orpheu, but it doesn't seem you used right way.

K.K.Lv 07-04-2012 01:22

Re: [Orpheu]SV_DropClient did not pass the player index ?
 
Yes , you are right ! I'm reading the header file if orpheu !:mrgreen:

Arkshine 07-04-2012 03:56

Re: [Orpheu]SV_DropClient did not pass the player index ?
 
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.


All times are GMT -4. The time now is 15:02.

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