Please help, will be explained in the text.
#3

Thank you for your reply but I already managed to fix it :P.. I fixed it like this:
pawn Код:
*under includes*
new answer;

// /setadmin command.
CMD:setadmin(playerid, params[])
{
        if (IsPlayerAdmin(playerid) == 1)
        {
        if (isnull(params)) return SendClientMessage(playerid, KLEUR_VOORB, "USAGE: /setadmin [ID] [level]");
            {
            if(!sscanf(params, "dd", targetplayerid, isadmin[answer]))
            if(isadmin[answer] > 6 || isadmin[answer] < 0) return SendClientMessage(playerid, KLEUR_VOORB, "Level: 0-6");
            if(isadmin[answer] == 0)
            {
            isadmin[targetplayerid] = 0;
            new maker[110];
            format(maker, sizeof(maker), "You have just removed %s from the Administration team.", pNaam(targetplayerid));
            SendClientMessage(playerid, KLEUR_BLAUW, maker);
            new krijger[110];
            format(krijger, sizeof(krijger), "Administrator %s has just removed you from the Administration team.", pNaam(playerid));
            SendClientMessage(targetplayerid, KLEUR_BLAUW, krijger);
            }
            if(isadmin[answer] == 1)
            {
            isadmin[targetplayerid] = 1;
            new maker[110];
            format(maker, sizeof(maker), "You have just added %s to the Administration team.", pNaam(targetplayerid));
            SendClientMessage(playerid, KLEUR_BLAUW, maker);
            new krijger[110];
            format(krijger, sizeof(krijger), "Administrator %s has just added you to the Administration team.", pNaam(playerid));
            SendClientMessage(targetplayerid, KLEUR_BLAUW, krijger);
            }
            }
        return 1;
        }
return 1;
}
Best regards,
Jesse
Reply


Messages In This Thread
Please help, will be explained in the text. - by jessejanssen - 24.02.2012, 00:02
Re: Please help, will be explained in the text. - by JhnzRep - 24.02.2012, 00:26
Re: Please help, will be explained in the text. - by jessejanssen - 24.02.2012, 00:36
Re: Please help, will be explained in the text. - by JhnzRep - 24.02.2012, 00:40
Re: Please help, will be explained in the text. - by jessejanssen - 24.02.2012, 01:03
Re: Please help, will be explained in the text. - by emokidx - 24.02.2012, 01:26
Re: Please help, will be explained in the text. - by JhnzRep - 24.02.2012, 01:27
Re: Please help, will be explained in the text. - by JhnzRep - 24.02.2012, 01:30

Forum Jump:


Users browsing this thread: 2 Guest(s)