Help! /commands
#7

Quote:
Originally Posted by Niixie
SendClientMessageToAll works like this.

pawn Код:
new string[64];

format(string, sizeof(string), "The text you want to say here");
SendClientMessageToAll(COLOR_WHITE, string);
You can also add names etc.
ex.


after the command in
OnPlayerCommandText
put this
pawn Код:
new string[64], Playername[24];
   GetPlayerName(playerid, Playername, sizeof(Playername);

   format(string, sizeof(string), "%s has entered a command" Playername);
   SendClientMessageToAll(COLOR_BLUE, string);
This will send a message to all if the player typed a cmd.
if you replace Playername with playerid, the %s should be %d(or %i) and will tell the users ID
So you mean that if someone types wrong, that i've typed in /commands will show, or what?
Reply


Messages In This Thread
Help! /commands - by sXecookie - 07.01.2010, 08:22
Re: Help! /commands - by Deat_Itself - 07.01.2010, 08:26
Re: Help! /commands - by sXecookie - 07.01.2010, 08:29
Re: Help! /commands - by Deat_Itself - 07.01.2010, 08:30
Re: Help! /commands - by sXecookie - 07.01.2010, 08:30
Re: Help! /commands - by Niixie - 07.01.2010, 10:22
Re: Help! /commands - by sXecookie - 07.01.2010, 10:43
Re: Help! /commands - by Niixie - 07.01.2010, 10:57
Re: Help! /commands - by sXecookie - 07.01.2010, 10:59

Forum Jump:


Users browsing this thread: 1 Guest(s)