Getting the color
#9

Код:
CMD:setmessage(playerid,params[])
{
	new SetMessage[128], string[128];
        if(sscanf(params,"s[128]",SetMessage)) return SendClientMessage(playerid, -1, "Usage: /setmessage [custom message]");

        format(PlayerInfo[playerid][SetMessage], 128, SetMessage);
   	format(string, sizeof(string), "You have set your message as: {%06x}",PlayerInfo[playerid][SetMessage] >>> 8);
	SendClientMessage(playerid, -1, string);
	

	return 1;
}
Reply


Messages In This Thread
Getting the color - by Ryan50 - 28.12.2015, 14:21
Re: Getting the color - by SmoW - 28.12.2015, 14:36
Re: Getting the color - by Ryan50 - 28.12.2015, 14:40
Re: Getting the color - by SmoW - 28.12.2015, 14:43
Re: Getting the color - by Ryan50 - 28.12.2015, 14:46
Re: Getting the color - by SmoW - 28.12.2015, 14:52
Re: Getting the color - by SmoW - 28.12.2015, 15:04
Re: Getting the color - by Ryan50 - 28.12.2015, 15:05
Re: Getting the color - by SmoW - 28.12.2015, 15:14
Re: Getting the color - by Ryan50 - 28.12.2015, 15:21

Forum Jump:


Users browsing this thread: 1 Guest(s)