12.08.2012, 12:58
I'd like to make my own stock like this, how is this possible?
Please dont ask me why i want it like this, because this is just a quick example of how i want to make my other stock.
PS. Is it possible to make it formated, like this: SendMessage(playerid, yellow, "%s", Name(playerid)); ?
pawn Код:
stock SendMessage(playerid, case,string[]) // something like 'case' or something ?
{
if(case = yellow) SendClientMessage(playerid, COLOR_YELLOW, string);
if(case = red) SendClientMessage(playerid, COLOR_RED, string);
if(case = blue) SendClientMessage(playerid, COLOR_BLUE, string);
else return 0;
}
PS. Is it possible to make it formated, like this: SendMessage(playerid, yellow, "%s", Name(playerid)); ?