Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [Code] Sending WOL pages without the PAGE console command
[Code] Sending WOL pages without the PAGE console command [message #466643] Wed, 25 April 2012 09:43 Go to previous message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma:
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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [MODEL] Mario Kart Item Box
Next Topic: [SSGM 4.0 Plugin] Custom Flip Kill
Goto Forum:
  


Current Time: Sat Apr 27 01:38:00 MST 2024

Total time taken to generate the page: 0.00710 seconds