08.05.2018, 15:27
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.0, 5.0, " ");
timer = SetTimer("RandMSG", 1000*60*3, true);
return 1;
}
public OnFilterScriptExit()
{
TextDrawDestroy(TD);
KillTimer(timer);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, TD);
return 1;
}
forward RandMSG();
public RandMSG()
{
TextDrawSetString(TD, RandM[random(sizeof(RandM))]);
return 1;
}