Announceing help
#5

pawn Код:
#include <a_samp>

new MessageTimer;
new Messages[][] =
{
    {"Message Here"},
    {"Message Here"},
    {"Message Here"},
    {"Message Here"},
    {"Message Here"},
    {"Message Here"}
};

forward SendMessagesToAll();
public SendMessagesToAll()
{
    GameTextForAll(Messages[random(sizeof(Messages))], 4000, 0);
    return 1;
}

//OnFilterScriptInit
public OnFilterScriptInit()
{
    MessageTimer = SetTimer("SendMessagesToAll",60000, 1);
    return 1;
}
//OnFilterScriptExit
public OnFilterScriptExit()
{
    KillTimer(MessageTimer);
    return 1;
}
Give that a go. I just did it quickly

**Edit, I just seen the picture, you might not want this.
Reply


Messages In This Thread
Announceing help - by ServerRestart - 02.08.2011, 21:55
Re: Announceing help - by sleepysnowflake - 02.08.2011, 22:00
Re: Announceing help - by ServerRestart - 02.08.2011, 22:01
Re: Announceing help - by ServerRestart - 02.08.2011, 22:04
Re: Announceing help - by Odyssey - 02.08.2011, 22:08
Re: Announceing help - by sleepysnowflake - 02.08.2011, 22:09
[No subject] - by ServerRestart - 02.08.2011, 22:10
Re: Announceing help - by Sil3nc3d Gh0st - 02.08.2011, 22:12
Re: Announceing help - by ServerRestart - 02.08.2011, 22:14
Re: Announceing help - by sleepysnowflake - 02.08.2011, 22:16
Re: Announceing help - by ServerRestart - 02.08.2011, 22:25
Re: Announceing help - by sleepysnowflake - 02.08.2011, 22:28
Re: Announceing help - by ServerRestart - 02.08.2011, 22:35

Forum Jump:


Users browsing this thread: 1 Guest(s)