/admins and /me zcmd help
#4

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
pawn Код:
new PlayerName[24];
should be
pawn Код:
new PlayerName[MAX_PLAYER_NAME];
Reply


Messages In This Thread
/admins and /me zcmd help - by ricardo178 - 24.03.2011, 22:33
Re: /admins and /me zcmd help - by austin070 - 24.03.2011, 22:38
Re: /admins and /me zcmd help - by grand.Theft.Otto - 24.03.2011, 22:39
Re: /admins and /me zcmd help - by SchurmanCQC - 24.03.2011, 22:40
Re: /admins and /me zcmd help - by austin070 - 24.03.2011, 22:41
Re: /admins and /me zcmd help - by ricardo178 - 24.03.2011, 22:43
Re: /admins and /me zcmd help - by Skylar Paul - 24.03.2011, 22:48

Forum Jump:


Users browsing this thread: 1 Guest(s)