Hello system(need real help)
#1

I have cmds like:
Код:
if (strcmp("/hello", cmdtext, true, 10) == 0)
{
	new pName[MAX_PLAYER_NAME];
  new string[48];
  GetPlayerName(playerid, pName, sizeof(pName));
  format(string, sizeof(string), "%s Said hi to all", pName);
  SendClientMessageToAll(0x3CFF00AA, string);
	return 1;
  }
if (strcmp("/bb", cmdtext, true, 10) == 0)
 {
	new pName[MAX_PLAYER_NAME];
	new string[48];
	GetPlayerName(playerid, pName, sizeof(pName));
	format(string, sizeof(string), "%s said bye", pName);
	SendClientMessageToAll(0x3CFF00AA, string);
	return 1;
  }
But if you can help me? show how to make his command to hello or to say bye to certain player
like: /hello(/bb)[playerid]
Reply


Messages In This Thread
Hello system(need real help) - by Nexotronix - 02.03.2010, 16:06
Re: Hello system(need real help) - by VonLeeuwen - 02.03.2010, 16:23
Re: Hello system(need real help) - by Nexotronix - 02.03.2010, 16:34
Re: Hello system(need real help) - by bajskorv123 - 02.03.2010, 17:19
Re: Hello system(need real help) - by Nexotronix - 03.03.2010, 12:13

Forum Jump:


Users browsing this thread: 1 Guest(s)