Quote:
Originally Posted by austin070
Here is the /me:
pawn Код:
CMD:me(playerid, params[]) { if(sscanf(params, "s[50]", str)== 0) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /me [action]"); new PlayerName[24]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); format(str, sizeof(str), "* %s %s", PlayerName, params); ProxDetector(45.0,playerid,str,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); //Change this to SendClientMessageToAll if you want it as a global me. return 1; }
|
Your
should be
pawn Код:
new PlayerName[MAX_PLAYER_NAME];