help - auto change color message...
#2

test it

pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

new KillColorChange[MAX_PLAYERS]; // <-----------------

new Color[]={
    "FF0000",
    "FFFF00",
    "FF8800",
    "9F785A",
    "8A7EA1"
};

public OnPlayerConnect(playerid)
{
    KillColorChange[playerid] = SetTimerEx("ColorChange", 1000, true, "d", playerid);
    return 1;
}

forward ColorChange(playerid);
public ColorChange(playerid)
{
    new string[128];
    format(string, sizeof(string), "{%s}•••••••••{%s}•••••••••{%s}•••••••••", random(sizeof(Color)), random(sizeof(Color)), random(sizeof(Color)));
    SendClientMessage(playerid, -1, string);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    KillTimer(KillColorChange[playerid]);
    return 1;
}
Reply


Messages In This Thread
help - auto change color message... - by _Application_ - 12.12.2014, 12:20
Re: help - auto change color message... - by M4D - 12.12.2014, 12:31
Re: help - auto change color message... - by PowerPC603 - 12.12.2014, 12:35
Re: help - auto change color message... - by _Application_ - 12.12.2014, 12:46
Re: help - auto change color message... - by Raweresh - 12.12.2014, 13:06
Re: help - auto change color message... - by _Application_ - 12.12.2014, 13:20
Re: help - auto change color message... - by Vince - 12.12.2014, 13:31
Re: help - auto change color message... - by _Application_ - 12.12.2014, 14:04
Re: help - auto change color message... - by PowerPC603 - 12.12.2014, 18:55

Forum Jump:


Users browsing this thread: 1 Guest(s)