/me command need help
#1

I need help on how to script the /me command
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/me", true, 3)) // 3 is the length of /me
{
if(cmdtext[3] == 0) {
SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
return 1;
}
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
SendClientMessageToAll(0xFFFF00AA, str);
return 1;
}
return 0;
}

I want this command but i don't know where to put it and how. Can some one tell me how?

Step by step please.
Reply


Messages In This Thread
/me command need help - by Guardian - 06.06.2009, 03:40
Re: /me command need help - by lavamike - 06.06.2009, 04:22
Re: /me command need help - by russiany - 06.06.2009, 06:54
Re: /me command need help - by Abernethy - 06.06.2009, 07:05

Forum Jump:


Users browsing this thread: 1 Guest(s)