Special Tag [TAG]
#8

Set a recurring timer.

https://sampwiki.blast.hk/wiki/SetTimerEx

Inside your function, have a list of random messages.

Here's an example script (untested):

pawn Code:
new RandomMessages[5][128];
new MsgIDX;

forward DisplayRandomMessage();

public OnGameModeInit()
{
    SetTimer("DisplayRandomMessage", 60000, 1);
    RandomMessages[0] = "Add to favorites!";
    RandomMessages[1] = "sdf";
    RandomMessages[2] = "sd";
    RandomMessages[3] = "fdsf";
    RandomMessages[4] = "sdfdsf";
    MsgIDX = 0;
    return 1;
}

public DisplayRandomMessage()
{
    SendClientMessageToAll(0xFFFF00FF, RandomMessages[MsgIDX]);
    MsgIDX++;
    if(MsgIDX >= 5) MsgIDX = 0;
    return 1;
}
Reply


Messages In This Thread
Special Tag [TAG] - by iOmar - 07.04.2012, 04:15
Re: Special Tag [TAG] - by Rob_Maate - 07.04.2012, 04:25
Re: Special Tag [TAG] - by iOmar - 07.04.2012, 04:39
Re: Special Tag [TAG] - by Ballu Miaa - 07.04.2012, 05:04
Re: Special Tag [TAG] - by Rob_Maate - 07.04.2012, 05:37
Re: Special Tag [TAG] - by Ballu Miaa - 07.04.2012, 07:41
Re: Special Tag [TAG] - by iOmar - 07.04.2012, 08:07
Re: Special Tag [TAG] - by Rob_Maate - 07.04.2012, 08:18

Forum Jump:


Users browsing this thread: 1 Guest(s)