delay on pm script on join [message #206937] |
Fri, 07 July 2006 04:20 |
|
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 |
|
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);
}
}
}
|
|
|