How to make each NPC say random stuff?
#6

pawn Код:
//TOP of script, below #includes
forward bottalk(id);
new messages[][X]=
{
"lolololololol",
"messaaaaaaaaage"
};

// END of ongamemodeinit
for(new bot; bot<MAX_PLAYERS;bot++)
{
if(IsPlayerNPC(bot))bottalk(bot);
}

//BOTTOM of script
public bottalk(id)
{
//chatfunction(id,messages[random(sizeof(messages))]);
SetTimetEx("bottalk",5000+random(5000),0,"i",id);
}
Reply


Messages In This Thread
How to make each NPC say random stuff? - by grand.Theft.Otto - 19.03.2011, 20:16
Re: How to make each NPC say random stuff? - by Jochemd - 19.03.2011, 20:20
Re: How to make each NPC say random stuff? - by xDeadlyBoy - 19.03.2011, 20:21
Re: How to make each NPC say random stuff? - by grand.Theft.Otto - 19.03.2011, 20:39
Re: How to make each NPC say random stuff? - by xDeadlyBoy - 19.03.2011, 21:02
Re: How to make each NPC say random stuff? - by Joe Staff - 19.03.2011, 21:21
Re: How to make each NPC say random stuff? - by grand.Theft.Otto - 19.03.2011, 23:33

Forum Jump:


Users browsing this thread: 4 Guest(s)