VC:MP 0.3 > Snippet Showroom
Simple news system
(1/1)
[NYB]fast:p:
--- Code: ---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");
}
--- End code ---
--- Code: ---SetTimer("RandomTalknews1", 40000 , true);
SetTimer("RandomTalknews2", 80000 , true);
SetTimer("RandomTalknews3", 120000 , true);
SetTimer("RandomTalknews4", 160000 , true);
SetTimer("RandomTalknews5", 200000 , true);
SetTimer("RandomTalknews6", 240000 , true);
--- End code ---
100% worked
NE.Restricted:
Try this
--- Code: ---//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;
}
}
--- End code ---
[NYB]fast:p:
Nice but no thakns :p
NE.Restricted:
--- Quote from: [NYB]fast:p on August 24, 2014, 03:06:18 pm ---Nice but no thakns :p
--- End quote ---
This Bugged!
It can show many newz at a time! You want 1 newz at a time!!!
Navigation
[0] Message Index
Go to full version