18.07.2012, 20:00
If you want it to show the name before the text, you have to actually make a string and get the name.
pawn Код:
CMD:me(playerid, params[])
{
new
string[128],
action[100];
if(sscanf(params, "s[100]", action))
{
SendClientMessage(playerid, -1, "USAGE: /me [action]");
return 1;
}
else
{
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "* %s %s.",playername, action);
ProxDetector(30, playerid, string, COLOR_PURPLE);
}
return 1;
}