/setmember command
#1

pawn Код:
CMD:setmember(playerid, params[])
{
    new id;
    if(gsfmember[playerid] < 2) return SendClientMessage(playerid, 0xFF000000, "You cannot use this command");
    if(sscanf(params,"u", id)) return SendClientMessage(playerid, 0xFFFFFF00, "USAGE:/setmember [id]");
    if(request[id] == 1) return SendClientMessage(playerid, 0xFF000000, "This player is not requesting to join your organization!");
    {
        format(outp,sizeof(outp),"%s sat you as member of Grove Street Families!",PlayerName(playerid));
        SendClientMessage(id, 0xd0d18100,outp);
        format(outp,sizeof(outp),"You made %s a member of Grove Street Families!",PlayerName(id));
        SendClientMessage(playerid, 0xd0d18100,outp);
        gsfmember[id] = 1;
        request[id] = 0;
    }
    return 1;
}
well, this command sends all the messages to myself, and sets my 'gsfmember' to 1.

Whats wrong?
And how can i add so another player can use this if request[id] == 2?
Reply


Messages In This Thread
/setmember command - by Qaiis - 12.03.2013, 16:08
Re: /setmember command - by Denying - 12.03.2013, 16:18
Re: /setmember command - by Qaiis - 12.03.2013, 18:21
Re: /setmember command - by Qaiis - 13.03.2013, 14:16
Re: /setmember command - by zxc1 - 13.03.2013, 14:30
Re: /setmember command - by HimSelf - 13.03.2013, 14:33
Re: /setmember command - by Qaiis - 13.03.2013, 14:35
Re: /setmember command - by HimSelf - 13.03.2013, 14:37
Re: /setmember command - by Qaiis - 13.03.2013, 14:38
Re: /setmember command - by Qaiis - 13.03.2013, 14:51

Forum Jump:


Users browsing this thread: 4 Guest(s)