Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Snippet Showroom => Topic started by: [NYB]fast:p on August 23, 2014, 02:47:50 pm

Title: Simple news system
Post by: [NYB]fast:p on August 23, 2014, 02:47:50 pm
Code: [Select]
public RandomTalknews1()
{
SendClientMessageToAll( ORANGE, ">> News 1");
}
public RandomTalknews2()
{
SendClientMessageToAll( ORANGE, ">> News 2");
}
public RandomTalknews3()
{
SendClientMessageToAll( ORANGE, ">> News 3");
}
public RandomTalknews4()
{
SendClientMessageToAll( ORANGE, ">> News 4");
}
public RandomTalknews5()
{
SendClientMessageToAll( ORANGE, ">> News 5");
}
public RandomTalknews6()
{
SendClientMessageToAll( ORANGE, ">> News 6");
}


Code: [Select]
SetTimer("RandomTalknews1", 40000 , true);
SetTimer("RandomTalknews2", 80000 , true);
SetTimer("RandomTalknews3", 120000 , true);
SetTimer("RandomTalknews4", 160000 , true);
SetTimer("RandomTalknews5", 200000 , true);
SetTimer("RandomTalknews6", 240000 , true);


100% worked
Title: Re: Simple news system
Post by: NE.Restricted on August 23, 2014, 05:32:32 pm
Try this
Code: [Select]
//on top
new eNews;
//on OnGameModeInit
public eNewsSystem()
public OnGameModeInit()
{
CreateTimer("eNewsSystem", 60000, 1);//1 newzz every minute
}
//New function
public eNewsSystem()
{
if(eNewz==0)
{
SendClientMessageToAll("Welcome to the news");
eNews++;
}
else if(eNews==1){
{
SendClientMessageToAll("News 1");
eNews++;
}
else if(eNews==2){
{
SendClientMessageToAll("Ennnnnd of the news!");
eNews=0;
}
}
Title: Re: Simple news system
Post by: [NYB]fast:p on August 24, 2014, 03:06:18 pm
Nice but no thakns :p
Title: Re: Simple news system
Post by: NE.Restricted on August 24, 2014, 09:12:44 pm
Nice but no thakns :p
This Bugged!
It can show many newz at a time! You want 1 newz at a time!!!