28.11.2014, 20:05
pawn Код:
SendClientMessage(playerid, RED,"Admin Name: %s", GetName(playerid));
- playerid
- colour
- string
The string can first be formatted with:
pawn Код:
new string[218], astring[218], anumber;
// imagine astring is "Hello!" and anumber is 5
format(string, sizeof(string), "My text with a string %s and a number: %d", astring, anumber);
SendClientMessage(playerid, COLOUR_WHATEVER, string);
// text now comes out in COLOUR_WHATEVER and the text is: My text with a string Hello! and a number: 5