help - auto change color message...
#1

this is not work , help please :


PHP код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
new KillColorChange;
new 
Color[]={
    
"FF0000",
    
"FFFF00",
    
"FF8800",
    
"9F785A",
    
"8A7EA1"
};
public 
OnPlayerConnect(playerid)
{
    
KillColorChange SetTimerEx("ColorChange"1000true"d"playerid);
    return 
1;
}
forward ColorChange(playerid);
public 
ColorChange(playerid)
{
    new 
string[128];
    
format(stringsizeof(string), "{%s}•••••••••{%s}•••••••••{%s}•••••••••"random(sizeof(Color)), random(sizeof(Color)), random(sizeof(Color)));
    
SendClientMessage(playerid, -1string);
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    
KillTimer(KillColorChange);
    return 
1;

I want it to be always different color, example:

{red}•••••••••{blue}•••••••••{yellow}•••••••••

{yellow}•••••••••{red}•••••••••{blue}•••••••••

{blue}•••••••••{yellow}•••••••••{red}•••••••••

Hope you understand me, thanks in advance
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)