command to make someone donator?
#4

pawn Код:
command(makedonator, playerid, params[])
{
    new id;
    if( sscanf( params, "u", id) )
    {
        if (IsPlayerAdmin(playerid))
        {
            SendClientMessage( playerid, COLOR_WHITE, "SYNTAX: /makeadonator [id]" );
        }
    }
    else
    {
        if (IsPlayerAdmin(playerid))
        {
            if(IsPlayerConnected(id))
            {
                Donator[playerid] = 1;
            }
            else
            {
                SendClientMessage(playerid, COLOR_RED, "ERROR: Player isn't connected");
            }
        }
    }
    return 1;
}
Make sure you have ZCMD, and SSCANF plugin
Reply


Messages In This Thread
command to make someone donator? - by WillyP - 04.09.2010, 20:17
Re: command to make someone donator? - by Scarface~ - 04.09.2010, 20:22
Re: command to make someone donator? - by WillyP - 04.09.2010, 20:23
Re: command to make someone donator? - by playbox12 - 04.09.2010, 20:40
Re: command to make someone donator? - by WillyP - 04.09.2010, 20:43
Re: command to make someone donator? - by Sergei - 04.09.2010, 20:43
Re: command to make someone donator? - by WillyP - 04.09.2010, 20:48
Re: command to make someone donator? - by playbox12 - 04.09.2010, 20:50
Re: command to make someone donator? - by WillyP - 04.09.2010, 20:51
Re: command to make someone donator? - by playbox12 - 04.09.2010, 20:53

Forum Jump:


Users browsing this thread: 2 Guest(s)