/me command
#6

Quote:
Originally Posted by WSD
How about this:
Код:
if(strcmp(cmd, "/me", true) == 0)
{
	new name[MAX_PLAYER_NAME], string[44];
  	GetPlayerName(playerid, name, sizeof(name));
  	format(string, sizeof(string), "%s watches.",name);
  	SendClientMessageToAll(YOUR_COLOR, string); 
    return 1;
}
Donґt use this. This will show only XYNAME watches.

My /me command is this ( I hope you donґt ask again for a whole command and you learn to script -.-*

Quote:

dcmd_me(playerid,params[])
{
new ReturnPlayer;
if(PlayerIsMuted[ReturnPlayer] == 1) return SendClientMessage(playerid, COLOR_BRIGHTRED, "You canґt speak. You are muted!");
new string[128];
if(!strlen(params)) return SendClientMessage(playerid, COLOR_BRIGHTRED, "Usage: /me <action>.");
format(string, sizeof(string), "* %s %s", pNick(playerid), params);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
return 1;
}
stock pNick(playerid)
{
new nick[MAX_PLAYER_NAME];
GetPlayerName(playerid, nick, MAX_PLAYER_NAME);
return nick;
}

Reply


Messages In This Thread
/me command - by Crezy-Boy - 16.06.2010, 14:17
Re: /me command - by Lajko1 - 16.06.2010, 14:22
Re: /me command - by Crezy-Boy - 16.06.2010, 14:26
Re: /me command - by MadeMan - 16.06.2010, 14:27
Re: /me command - by WSD - 16.06.2010, 16:22
Re: /me command - by Flashy - 16.06.2010, 16:30
Re: /me command - by hab2ever - 16.06.2010, 16:49

Forum Jump:


Users browsing this thread: 1 Guest(s)