/ame and /ado with "strcmp()"
#1

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
Reply
#2

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;
}
Reply
#3

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 ?
Reply
#4

Explain what are these command lol
Reply
#5

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 .
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)