Public feed
#378857
dcmd(givehealth, 10, cmdtext);// OTHER CODEdcmd_givehealth(playerid, text[]){ new pos; if (!text[0] || (pos = strfind(text, " ", .pos = 1)) == -1) { SendClientMessage(playerid, 0xFF0000AA, "Useage: /givehealth <playerid> <health>"); } else { new val = strval(text[1]); if (val >= MAX_PLAYERS || val < 0) { SendClientMessage(playerid, 0xFF0000AA, "Please enter a valid playerid"); } else { new Float:health; GetPlayerHealth(val, health); health += floatstr(cmdtext[pos]); SetPlayerHealth(val, health); } } return 1;}