[HELP] witch NPC chatbubble
#1

hello, I've created a code for an NPC bubble but he does not. what's wrong?

Код:
forward spawnnpc();

//OnGameModeInit
SetTimer("spawnnpc",1,false);

//under OnGameModeInit
public spawnnpc()
{
	SetPlayerChatBubble(0, "Welcome To me server!", 0xFF0000FF, 100.0, 10000);
  return 1;
}
Thanks
greetz jordy
Reply
#2

Well try to put:
SetPlayerChatBubble in OnPlayerSpawn or someever Else
Reply
#3

Put the timer and the other part of the script under "OnPlayerConnect". If you start the gamemode it will say just one time when the gamemode load.
Itґs better to put it on OnPlayerConnect then it says the message every time when a player connects.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)