[How To] /Do command
#1

Code:

if(!strcmp(cmdtext, "/do", true, 3))
{
if(!cmdtext[3])return SendClientMessage(playerid, COLOR_GREY, "USAGE: /do [description]");
new str[128];
GetPlayerName(playerid,str, sizeof(str));
format(str, sizeof(str), "(( %s ))%s", str, cmdtext [3]);
SendClientMessageToAll (COLOR_PURPLE, str);
return 1;
}

Everything works as is. The players name wraps up in brackets as I like.

Question:

How can I make the player name to appear at the back of the sentence.

Example:

/do Big Muscular Man

Comes out as:

Big Muscular Man ((User_Name))

Thanks for help
Reply


Messages In This Thread
[How To] /Do command - by Crayon - 04.10.2010, 01:28
Re: [How To] /Do command - by CaptainOwen - 04.10.2010, 01:39
Re: [How To] /Do command - by Crayon - 04.10.2010, 02:12
Re: [How To] /Do command - by Crayon - 04.10.2010, 02:39
Re: [How To] /Do command - by Retardedwolf - 04.10.2010, 02:41
Re: [How To] /Do command - by Crayon - 04.10.2010, 02:46

Forum Jump:


Users browsing this thread: 1 Guest(s)