Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Snippet Showroom => Topic started by: [NYB]fast:p on August 08, 2014, 05:54:26 pm

Title: Random Messages By Fast
Post by: [NYB]fast:p on August 08, 2014, 05:54:26 pm
[pawn]
new RandomMessagesList[][] =
{
"Welcome Use !rules Before Playing",
"Want a weapon use !wep <name/id> Now!",
"New System by Fast",
};[/pawn]

Msg Timer
[pawn] SetTimer("RandomMessages", 50000, true);[/pawn]

Fuction On public
[pawn]forward RandomMessages();
public RandomMessages()//Public what sends the messages
{
SendClientMessageToAll(0xF6A113FF, RandomMessagesList[random(sizeof(RandomMessagesList))]);
}[/pawn]
My Server Showroom: www.nybsr.createaforum.com