Commands
#8

Quote:
Originally Posted by Russell_
Посмотреть сообщение
OnPlayerCommandText:
pawn Код:
new str[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(str, sizeof(str), "%s (%d) just typed: %s", pName,playerid,cmdtext);
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
        SendClientMessage(i, -1, str);
    }
}
Gave you +1 Reputation.
Btw, How do I do like a variable like this:
/messageson
You will now be able to see the commands that the players type.

/messagesoff
You wont be longer able to see the commands.
Reply


Messages In This Thread
Commands - by Alex_Obando - 08.08.2011, 18:54
Re: Commands - by Unknown_Killer - 08.08.2011, 19:01
Re: Commands - by UnknownKilla2 - 08.08.2011, 19:03
Respuesta: Commands - by Alex_Obando - 08.08.2011, 19:04
Re: Commands - by HyperZ - 08.08.2011, 19:06
Re: Respuesta: Commands - by UnknownKilla2 - 08.08.2011, 19:13
Re: Respuesta: Commands - by Jay. - 08.08.2011, 19:14
Respuesta: Re: Commands - by Alex_Obando - 08.08.2011, 19:16
Re: Commands - by iPLEOMAX - 08.08.2011, 19:37
Re: Commands - by Unknown_Killer - 08.08.2011, 19:40
Respuesta: Commands - by Alex_Obando - 08.08.2011, 19:49

Forum Jump:


Users browsing this thread: 1 Guest(s)