Help please.
#1

I wanna make a stat command that sets your stat to 100. It has to work like this:

Must work on SetPlayerScore(giveplayerid,100);
SetPlayerHealth(giveplayerid,100);
SetPlayerMoney(playerid,999999);

/makefull [playerid] [statid]

I have this:
Код:
if(strcmp(cmd,"/makefull", true) == 0)
{

    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRIJS, "TIP: Type /makefull [playerid] [stat]");
    giveplayerid = strval(tmp);
    if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid,COLOR_VELROOD,"*This ID is not connected*");
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRIJS, "TIP: Type /makefull [playerid] [stat]");
    new statt = strval(tmp);
    if(adminlevel[playerid] >= 8)
    {
    adminlevel[giveplayerid] = statt;
    }
    else
    {
    SendClientMessage(playerid,COLOR_GRIJS,"You're not allowed to use this command");
    }
    return 1;
	}
but this is not done yet and probaly not good.xD
Please fix and help.

Thanks inr egards
Reply


Messages In This Thread
Help please. - by bartje01 - 09.07.2010, 10:17
Re: Help please. - by CAR - 09.07.2010, 10:22
Re: Help please. - by bartje01 - 09.07.2010, 10:32
Re: Help please. - by Hiddos - 09.07.2010, 10:35
Re: Help please. - by bartje01 - 09.07.2010, 10:40
Re: Help please. - by bartje01 - 09.07.2010, 15:20
Re: Help please. - by bartje01 - 09.07.2010, 15:46
Re: Help please. - by Hiddos - 09.07.2010, 15:48
Re: Help please. - by bartje01 - 09.07.2010, 16:00
Re: Help please. - by bartje01 - 09.07.2010, 16:06

Forum Jump:


Users browsing this thread: 3 Guest(s)