Switching Textdraws with Timer
#4

I guess you want random tips or messages??

PHP код:
#include <a_samp>
static Text:TD;
static 
timer;
static const 
RandM[][] =
{
    
"Message 1",
    
"Message 2",
    
"Message 3"
};
public 
OnFilterScriptInit()
{
    
TD TextDrawCreate(315.05.0" ");
    
timer SetTimer("RandMSG"1000*60*3true);
    return 
1;
}
public 
OnFilterScriptExit()
{
    
TextDrawDestroy(TD);
    
KillTimer(timer);
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    
TextDrawShowForPlayer(playeridTD);
    return 
1;
}
forward RandMSG();
public 
RandMSG()
{
    
TextDrawSetString(TDRandM[random(sizeof(RandM))]);
    return 
1;

Reply


Messages In This Thread
Switching Textdraws with Timer - by Dancsika - 08.05.2018, 05:17
Re: Switching Textdraws with Timer - by FaLLenGirL - 08.05.2018, 15:11
Re: Switching Textdraws with Timer - by TadePoleMG - 08.05.2018, 15:14
Re: Switching Textdraws with Timer - by Lokii - 08.05.2018, 15:27
Re: Switching Textdraws with Timer - by ItsRobinson - 08.05.2018, 15:40
Re: Switching Textdraws with Timer - by CrystalGamer - 08.05.2018, 15:42
Re: Switching Textdraws with Timer - by Dancsika - 08.05.2018, 19:00

Forum Jump:


Users browsing this thread: 1 Guest(s)