Random text
#1

I would like some randow text to appear with text saying things like Try /tankwar and stuff
hope you can help

may thanks alex
Reply
#2

https://sampwiki.blast.hk/wiki/Random_Messages
follow that tutorial...
Reply
#3

I cant get the hag of it just keep getting errors and i dont no where to put the text.
Reply
#4

ok here is it :
top of script :
Код:
new
  RD[][] =
  {
    "MSG",
    "MSG",
    "MSG",
    "MSG",
    "MSG"
  };
Under OnGameModeInit
Код:
SetTimer("RandomMessage", 60000, true);
bottom of script :
Код:
//----------------[Random Message]------------------------------------------
forward RandomMessage();
public RandomMessage()
{
  	new
    rand = random(sizeof(RD));

  	SendClientMessageToAll(COLOR_RED, RD[rand]);
  	return 1;
}


//------------------------------------------------------------------------------------------------------------
________
Coach handbags
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)