[HELP] How to make CMD for Chat System
#5

Quote:
Originally Posted by Mattakil
Посмотреть сообщение
pawn Код:
CMD:report(playerid, params)
    {
    new string[128],
    reportmessage[100];
    if(strlen(reportmessage)>=100)return SCM(pid, COLRED, "[Server]{F0F0F0}: Max report length is 100.");
    else
        {
        format(string, sizeof(string), "[Report %s {%d}]: %s", GetName(playerid), playerid, reportmessage);
        foreach (new i : Player)
            {
            if(PlayerInfo[i] [pAdmin] >=1)
                {
                SCM(i, COLPURPLE, string);
                SCM(pid, COLPURPLE, "Your message has been sent to online admins!");
                return 1;
                }
            }
        }
    return 1;
    }
Something like this?
Yes but different , so if player want to talk about Marketplace items etc , he can talk to admin via CMD:am and admin can reply using CMD:amsg
Can you help me ?
Reply


Messages In This Thread
[HELP] How to make CMD for Chat System - by Ivander - 09.09.2013, 10:06
Re: [HELP] How to make CMD for Chat System - by benjaminjones - 09.09.2013, 10:07
Re: [HELP] How to make CMD for Chat System - by Ivander - 09.09.2013, 10:16
Re: [HELP] How to make CMD for Chat System - by Mattakil - 09.09.2013, 14:20
Re: [HELP] How to make CMD for Chat System - by Ivander - 10.09.2013, 09:20
Re: [HELP] How to make CMD for Chat System - by Dragonsaurus - 10.09.2013, 09:40

Forum Jump:


Users browsing this thread: 1 Guest(s)