Author Topic: Simple news system  (Read 1130 times)

0 Members and 1 Guest are viewing this topic.

Offline [NYB]fast:p

  • Street Thug
  • *
  • Posts: 28
    • View Profile
Simple news system
« 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

Offline NE.Restricted

  • Wiseguy
  • **
  • Posts: 97
    • View Profile
Re: Simple news system
« Reply #1 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;
}
}
I am NE.CrystalBlue!!!
Quote
i cant able to understand

Offline [NYB]fast:p

  • Street Thug
  • *
  • Posts: 28
    • View Profile
Re: Simple news system
« Reply #2 on: August 24, 2014, 03:06:18 pm »
Nice but no thakns :p

Offline NE.Restricted

  • Wiseguy
  • **
  • Posts: 97
    • View Profile
Re: Simple news system
« Reply #3 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!!!
I am NE.CrystalBlue!!!
Quote
i cant able to understand