Help with these commands?
#4

Not tested!
pawn Код:
// top of script
new
    bool: Requested[ MAX_PLAYERS ] = false
;

CMD:request( playerid )
{
    if( Requested[ playerid ] == true )
    {
        SendClientMessage( playerid, -1, "You already requested" );
    }
    else
    {
        Requested[ playerid ] = false;
    }
    return 1;
}

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(Requested[ id ] == false)
    {
        SendClientMessage(id, 0x99FF0000, "~You have been made a member of Grove Street Families~");
        SendClientMessage(playerid, 0x99FF0000, "Member have been set!");
        gsfmember[id] = 1;
    }
    return 1;
}
Reply


Messages In This Thread
Help with these commands? - by Qaiis - 09.03.2013, 21:38
Re: Help with these commands? - by Rock - 09.03.2013, 21:42
Re: Help with these commands? - by Qaiis - 09.03.2013, 21:46
Re: Help with these commands? - by Rock - 09.03.2013, 22:07
Re: Help with these commands? - by Qaiis - 09.03.2013, 22:17
Re: Help with these commands? - by Rock - 09.03.2013, 22:29
AW: Help with these commands? - by morocco - 09.03.2013, 23:54
Re: Help with these commands? - by Qaiis - 10.03.2013, 10:31
Re: Help with these commands? - by Sandiel - 10.03.2013, 10:34

Forum Jump:


Users browsing this thread: 3 Guest(s)