SA-MP Forums Archive
/ame and /ado with "strcmp()" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /ame and /ado with "strcmp()" (/showthread.php?tid=617169)



/ame and /ado with "strcmp()" - BadScripter - 16.09.2016

I've seen alot of tutorials about creating /ame and /ado with "zcmd" ,but i want to edit a gamemode which is working with strcmp() function can someone help me to create /ame and /ado ,Or at least direct me to the start point


Re: /ame and /ado with "strcmp()" - ranme15 - 16.09.2016

Use strrest().
Код:
if(!strcmp(cmdtext, "/ame", true))
{
	new string[128];
	string = strrest(cmdtext, idx);
	if(!strlen(string)) return SendClientMessae(playerid, -1, "USAGE: /ame [text]");
	SetPlayerChatBubble(playerid, string, 0xFF0000FF, 100.00, 3000);
	return 1;
}



Re: /ame and /ado with "strcmp()" - BadScripter - 24.09.2016

Quote:
Originally Posted by ranme15
Посмотреть сообщение
Use strrest().
Код:
if(!strcmp(cmdtext, "/ame", true))
{
	new string[128];
	string = strrest(cmdtext, idx);
	if(!strlen(string)) return SendClientMessae(playerid, -1, "USAGE: /ame [text]");
	SetPlayerChatBubble(playerid, string, 0xFF0000FF, 100.00, 3000);
	return 1;
}
Thanks ,What about /ado ?


Re: /ame and /ado with "strcmp()" - Shinja - 24.09.2016

Explain what are these command lol


Re: /ame and /ado with "strcmp()" - BadScripter - 25.09.2016

Quote:
Originally Posted by Shinja
Посмотреть сообщение
Explain what are these command lol
It's supposed to do the same usage of /do but it will appears above the character head and won't go until u do "/ado off"

It's used to RP having attachments like "/ado I would have M4 attached to my back" or "/ado I would be sitting in the car trunk" and so on .