13.08.2015, 20:13
pawn Код:
CheckTAG(playerid)
{
new Nick[MAX_PLAYER_NAME + 1],string[55];
GetPlayerName(playerid,Nick,sizeof(Nick));
if(!strcmp(Nick,"[GC]",true,4))
{
string = "{FF0000}[G{FFFF00}C]{33CCFF}";
strcat(string, Nick[4]);
return string;
}
strcat(string,Name);
return string;
}
pawn Код:
format(string,sizeof(string),"%s@: %s",CheckTAG(playerid),text[1]);