/helpme command
#2

Do something like this:

pawn Код:
CMD:helpme(playerid, params[])
{
    if(!IsPlayerConnected(playerid)) return 1;
    new question[128];
    if(sscanf(params, "s[128]", question)) return SendClientMessage(playerid, -1, "Usage: /helpme [question]");
    SendMessageToAdmins(-1, question);
    return 1;
}

stock SendMessageToAdmins(Color, Question[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(AdminVariableHere[i] >= 1)
        {
            SendClientMessage(i, Color, Question);
        }
    }
    return 1;
}
Seriously try to ****** your question, I'm POSITIVE there are probably heaps of questions like this.

This requires sscanf, zcmd, and the custom stock I provided.

Change -1 to the color you want to use.
Reply


Messages In This Thread
/helpme command - by (_AcE_) - 23.07.2012, 01:33
Re: /helpme command - by Kindred - 23.07.2012, 01:39

Forum Jump:


Users browsing this thread: 1 Guest(s)