Random messages
#1

Random messages arent working...
Please help me to fix them


pawn Код:
new randomMessages[][] =
    {
        "{F5511B}[HELP] {F5CD1B}Stuck somewhere? Use /helpmeup to move out!",
        "{F5511B}[HELP] {F5CD1B}Need a nice nick color? Try the /color command!",
        "{F5511B}[HELP] {F5CD1B}Saw a rulebreaker? Use /report to notify the staff!",
        "{F5511B}[HELP] {F5CD1B}Need a vehicle? Type /vehicle or /v to get a list of all the vehicles!",
        "{F5511B}[HELP] {F5CD1B}Enjoying our server? Don't forget to visit our website at "SERVER_WEBSITE".tk!",
        "{F5511B}[HELP] {F5CD1B}Are you using the default weaponset? Try out the new weaponsets using /weaponset!",
        "{F5511B}[HELP] {F5CD1B}If your vehicle is upside down, press NUMPAD 4 to flip it!",
        "{F5511B}[HELP] {F5CD1B}Are you bored with your current spawn place? Choose your own spawn place using /spawnplace!",
        "{F5511B}[HELP] {F5CD1B}Don't know all the commands? Check out all using /cmds!",
        "{F5511B}[HELP] {F5CD1B}Losing your health while stunting? Use /god to enable god protection!",
        "{F5511B}[HELP] {F5CD1B}Having problems configuring your preferences? Use your /settings menu!",
        "{F5511B}[HELP] {F5CD1B}Wanna Jump high?? Try /superjump or /sj!",
        "{F5511B}[SERVER] {F5CD1B}Help the server by donating a dollar, You'll receive VIP after donating.",
        "{F5511B}[SERVER] {F5CD1B}Welcome to our newly developed server, Own and scripted by our MaxFranky & Jacob.",
        "{F5511B}[SERVER] {F5CD1B}Report a player and get a reward! If proven they have broke something in the rules and regulations.",
        "{F5511B}[SERVER] {F5CD1B}We are current handpicking administrators and helpers for our server's beta testing.",
        "{F5511B}[SERVER] {F5CD1B}We have a zero tolerancy rule for server advertising and hacking.",
        "{F5511B}[SERVER] {F5CD1B}This is a freeroam server, Free to do whatever you want, as long as it isn't breaking the rules and regulations.",
        "{F5511B}[SERVER] {F5CD1B}Please remember to send all donations if you would like to keep us alive."
    };

forward RandomMessages();
public RandomMessages()
{
    new randomMsg = random(sizeof(randomMessages));
    SendClientMessageToAll(-1, randomMessages[randomMsg]);
}

public OnGameModeInit()
{
    RandMsgTimer = SetTimer("RandomMessages", 300000, true);
    return 1;
}

public OnGameModeExit()
{
    KillTimer(RandMsgTimer);
    return 1;
}
Reply


Messages In This Thread
Random messages - by kesarthakur - 30.12.2014, 09:04
Re: Random messages - by kesarthakur - 30.12.2014, 09:15
Re: Random messages - by iLuXing - 30.12.2014, 09:17
Re: Random messages - by Sawalha - 30.12.2014, 09:22
Re: Random messages - by Facerafter - 30.12.2014, 09:22
Re: Random messages - by Mic_H - 30.12.2014, 09:24
Re: Random messages - by Dignity - 30.12.2014, 09:27
Re: Random messages - by kesarthakur - 30.12.2014, 10:11
Re: Random messages - by Dignity - 30.12.2014, 10:15
Re: Random messages - by kesarthakur - 30.12.2014, 12:57

Forum Jump:


Users browsing this thread: 1 Guest(s)