Help with making a timer for /ame
#3

Quote:
Originally Posted by Tessa
Посмотреть сообщение
Hello! You don't actaully need to use a text label to achieve this; You can use the default chatbubble option already provided by SA-MP.

Here's an edit of your code that *should* work, however I haven't actually tested it ingame.

Код:
CMD:ame(playerid, params[])
{
    new activewep = GetPVarInt(playerid, "activesling");
	new message[100], string[128];
	if(sscanf(params, "s[100]", message))
		return SendClientMessageEx(playerid, COLOR_GRAD2, "USAGE: /ame [action]");

	if(activewep > 0)
	    return SendClientMessageEx(playerid, COLOR_GRAD2, "  You have a weapon slung around your back, you can't use /ame.");

	if(strlen(message) > 100) return SendClientMessageEx(playerid, COLOR_GRAD2, "  The action is too long, please reduce the length.");
	if(strlen(message) < 3) return SendClientMessageEx(playerid, COLOR_GRAD2, "  The action is too short, please increase the length.");
	
	format(string, sizeof(string), "* %s *", message);
 	SetPlayerChatBubble(playerid, string, COLOR_PURPLE, 7.0, 10000);
  	format(string, sizeof(string), "Annotated Message: %s", message);
   	SendClientMessageEx(playerid, COLOR_PURPLE, string);
   	return 1;
}
Kind Regards.
Thank you for the reply Tessa, I will try this right now, and get back to you ASAP!
Reply


Messages In This Thread
Help with making a timer for /ame - by NickMirra - 21.05.2015, 19:46
Re: Help with making a timer for /ame - by Tessa - 21.05.2015, 20:11
Re: Help with making a timer for /ame - by NickMirra - 21.05.2015, 20:15
Re: Help with making a timer for /ame - by NickMirra - 21.05.2015, 20:36
Re: Help with making a timer for /ame - by Tessa - 21.05.2015, 21:09

Forum Jump:


Users browsing this thread: 1 Guest(s)