[Code] Sending WOL pages without the PAGE console command [message #466643] |
Wed, 25 April 2012 09:43 |
iRANian
Messages: 4308 Registered: April 2011
Karma: 0
|
General (4 Stars) |
|
|
Something simple I figured out while trying to find a way to check if a player is on WOL with the FDS. This does the same thing that the PAGE console command does internally. Not sure about any issues. Guess this could be useful to someone..
RENEGADE_FUNCTION
void Page_WOL_User(WideStringClass Name, WideStringClass Message)
AT2(0x004D5100, 0x004D5100);
REF_DEF2(WWOnlineInstance, int, 0x0082EEBC, 0x0082EEBC);
void Page_WOL_User_Wrapper(WideStringClass Name, WideStringClass Message)
{
int pointer = WWOnlineInstance;
_asm
{
push Message
push Name
mov ecx, pointer
call Page_WOL_User
}
// Page_WOL_User(Name, Message);
}
Use it like:
Page_WOL_User_Wrapper("Iran", "sup bro");
Long time and well respected Renegade community member, programmer, modder and tester.
Scripts 4.0 private beta tester since May 2011.
My Renegade server plugins releases
[Updated on: Wed, 25 April 2012 09:44] Report message to a moderator
|
|
|
|
|
|
|