12.08.2012, 13:18
here goes.
pawn Код:
stock SendMessage(playerid,color[],string[])
{
if(strcmp(color,#yellow)) return SendClientMessage(playerid, COLOR_YELLOW, string);
else if(strcmp(color,#red)) return SendClientMessage(playerid, COLOR_RED, string);
else if(strcmp(color,#blue)) return SendClientMessage(playerid, COLOR_BLUE, string);
return 0;
}
//usage
SendMessage(playerid,#yellow,#Fuck Yeah);