27.11.2010, 01:14
Код:
CMD:me(playerid, params[])
{
new pName[MAX_PLAYER_NAME]; // Get the players name
new str[128]; // holds a string
if (sscanf(params, "z", str)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /me <action>"); // Shows how to use the command
else
{
GetPlayerName(playerid, pName, sizeof(pName)); // Gets the player name
format(str, sizeof(str), "*%s %s", pName, str); // formats it for us, so we can see what it looks like
SendClientMessageToAll(COLOR_PINK, str); // Just like in mIRC :P
}
return 1;
}

