Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » delay on pm script on join
delay on pm script on join [message #206937] Fri, 07 July 2006 04:20 Go to next message
sycar is currently offline  sycar
Messages: 144
Registered: February 2006
Location: Reading, UK
Karma: 0
Recruit
ok so ive coded a welcome message to be pm'd to the users whey they join, by using the join hook. The script runs fine and the pm shows up in the clients logs but is not actually displayed in game. Is there a way of delaying this script so the client is fully loaded before it oms.

thanks buffymaniack
Re: delay on pm script on join [message #207021 is a reply to message #206937] Fri, 07 July 2006 16:06 Go to previous message
sycar is currently offline  sycar
Messages: 144
Registered: February 2006
Location: Reading, UK
Karma: 0
Recruit
ok tried a different approach... on join the client gets sent a pm with the word !join. Of course this doesnt show up on the clients screen.

ive then used the hosthook to send a welcome message to the user when it detects that !join has been said but the hosthook isnt working.

Any ideas why

buffymaniack

void Host_Hook(int PlayerID,int Type,const char *Message) {
	if (Type == 2)
	{
		if (stricmp(Message,"!join") == 0)
		{
			char message[1000];
			sprintf(message,"ppage %d %s",PlayerID,"Welcome Message");
			Console_Input(message);
		}
			
	}
}
Previous Topic: Cinematic Eye candy
Next Topic: I can now do custom dialogs!!!!!
Goto Forum:
  


Current Time: Sat Jul 20 23:13:31 MST 2024

Total time taken to generate the page: 0.00518 seconds