SA-MP Forums Archive
Color problems [Fast help need + REPP] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Color problems [Fast help need + REPP] (/showthread.php?tid=585435)



Color problems [Fast help need + REPP] - Toxik - 13.08.2015

Sup guys i want when someone use [GC] Tag in his name the tag colour Change to Red


Re: Color problems [Fast help need + REPP] - iTakelot - 13.08.2015

I think in maxio give it:


public OnPlayerText(playerid, text[]){

new Cells[144],name[MAX_PLAYER_NAME];
if(strfind(name, "[GC]", true) != -1){
format(Cells, sizeof (Cells), "{ff0000}%s: %s", name, text);
SendPlayerMessageToAll(playerid, Cells);
}else{
format(Cells, sizeof (Cells), "%s: %s", name, text);
SendPlayerMessageToAll(playerid, Cells);
}
return 0;
}