04.08.2013, 23:43
Quote:
Most RP servers use a proximity detector or something similar. If you don't know what that means, it basically makes the colour of the text darker or lighter depending on how close you're to the player doing the command.
So pinpointing a colour would be hard. |
PHP код:
CMD:me(playerid, params[])
{
new name[MAX_PLAYER_NAME], str[128];
GetPlayerName(playerid, name, sizeof(name));
if(isnull(params))
return SendClientMessage(playerid,COLOR_SYNTAX -1,"[SYNTAX]: /me [Action]");
format(str,sizeof(str),"*%s %s",name, params);
ProxDetector(30.0, playerid, str, COLOR_ME, COLOR_ME, COLOR_ME, COLOR_ME, COLOR_ME);
return 1;
}