Please give me an /ask command code ++REP
#3

Try this
pawn Код:
YCMD:ask(playerid, params[])
{
    if(gPlayerLoggedIn[playerid] == 0) return 1;
   
    if(PlayerInfo[playerid][Helper] == 0) {
        new question[128];
        if(sscanf(params, "s[128]", question)) return SendClientMessage(playerid, COLOR_WHITE, "[USAGE]: /ask [Qusetion]");
        if(PlayerInfo[playerid][nMute] == 1) return SendClientMessage(playerid, COLOR_WHITE, "You are muted from using /ask!");
        foreach(Player, i)
        {
            if(PlayerInfo[i][Helper] > 0)
            {
                new string[126];
                format(string, sizeof(string), "[%d] %s asks: %s", playerid, PlayerName(playerid), question);
                SendClientMessage(i, NEWBIE_COLOR, string);
            }
        }
        SendClientMessage(playerid, COLOR_YELLOW, "You have asked a question, please wait for a response.");
    }
    return 1;
}
Since I dont know your admin codes so change something in it to make it work instead of Helper every where put your code.
pawn Код:
if(PlayerInfo[playerid][Helper] == 0) {
Reply


Messages In This Thread
Please give me an /ask command code ++REP - by markjaysonpinoy - 10.08.2012, 09:41
Re: Please give me an /ask command code ++REP - by [jS]Thomas - 10.08.2012, 09:48
Re: Please give me an /ask command code ++REP - by Dare Devil..... - 10.08.2012, 10:02
Re: Please give me an /ask command code ++REP - by [MM]RoXoR[FS] - 10.08.2012, 12:19

Forum Jump:


Users browsing this thread: 1 Guest(s)