[HELP] witch NPC chatbubble - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] witch NPC chatbubble (
/showthread.php?tid=118899)
[HELP] witch NPC chatbubble -
jordylol6 - 05.01.2010
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
Re: [HELP] witch NPC chatbubble -
Fre$hKidd - 20.06.2010
Well try to put:
SetPlayerChatBubble in OnPlayerSpawn or someever Else
Re: [HELP] witch NPC chatbubble -
Flashy - 20.06.2010
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.