09.05.2011, 14:31
ex usage: /gt b 1337
GameText out put: 1337
GameText out put: 1337
pawn Код:
COMMAND:gt(playerid, params[])
{
new color[2], messageNumber;
if(sscanf(params, "s[2]d", color, messageNumber)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /gt (color) (number message)");
{
new string[128];
format(string, sizeof(string), "~%s~ %d", color, messageNumber);
GameTextForAll(string, 1000, 4);
}
return 1;
}