09.07.2010, 10:17
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:
but this is not done yet and probaly not good.xD
Please fix and help.
Thanks inr egards
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; }
Please fix and help.
Thanks inr egards