Donator
#8

Quote:
Originally Posted by Sky4D
View Post
Haven't done anything with strcmp for a while, but here's my go at it.

pawn Code:
if(strcmp(cmd, "/makedonator", true) == 0) {
    new newDonator;
    tmp = strtok(cmdtext, idx);
    newDonator = ReturnUser(tmp);
    if(IsPlayerConnected(newDonator))
    {
        if(IsPlayerAdmin(playerid))
        {
            Donator[newDonator] = 1;
        }
        else return SendClientMessage(playerid, COLOR_RED, "ERROR: You are not an Administrator!");
    }
    return 1;
}
EDITED - Added the part where you have to be an Administrator.
gives errors...

anyway, that was 2 days ago.. dont see why i got a infraction, cause to me 12hrs < 2days...
Reply


Messages In This Thread
Donator - by thomas.. - 12.09.2010, 21:32
Re: Donator - by Vince - 12.09.2010, 21:42
Re: Donator - by thomas.. - 12.09.2010, 21:44
Re: Donator - by Sky4D - 12.09.2010, 21:49
Re: Donator - by thomas.. - 12.09.2010, 21:54
Re: Donator - by Cameltoe - 12.09.2010, 22:04
Re: Donator - by Sky4D - 12.09.2010, 22:08
Re: Donator - by thomas.. - 13.09.2010, 14:48

Forum Jump:


Users browsing this thread: 1 Guest(s)