03.02.2010, 00:59
i want a random mesage to appear every 10 mins.
how can i do this with
how can i do this with
Код:
SendClientMessage(playerid, COLOR, "Text");
SendClientMessage(playerid, COLOR, "Text");
new
RD[][] =
{
"Type /commands to see me naked",
"This is spartaaa!",
"Type /rules to break them all!"
};
// these are the messages
public OnGameModeInit()
{
SetTimer("RandomMessage", 1000 * 60 * 10, true); // this is gonna call the message function every 10 mins
return 1;
}
forward RandomMessage();
public RandomMessage() // this is called 10 mins (random message from RD)
{
new
rand = random(sizeof(RD));
SendClientMessageToAll(COLOR, RD[rand]);
return 1;
}
Originally Posted by [SU
Chris ]
This dosent work |
Originally Posted by Boozmang
Here try this:
https://sampwiki.blast.hk/wiki/Random_Messages |
Originally Posted by [SU
Chris ]
Quote:
|
Originally Posted by Joe Staff
Quote:
|
Originally Posted by [SU
Chris ]
Quote:
|