Wie kann ich das machen das man mit dem Befehl /sethp mehr heal bekommt als 100?
if(strcmp(cmd, "/sethp", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Benutze: /sethp [SpielerID] [Health]");
return 1;
}
new playa;
new health;
GetPlayerName(playa, sendername, sizeof(sendername));
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
health = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 7)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
SetPlayerHealth(playa, health);
// GetPlayerName(playa, giveplayer, sizeof(giveplayer));
// GetPlayerName(playerid, sendername, sizeof(sendername));
// format(string, 256, "[ADMIN]: %s(%d) hat %s(%d) HP auf %d gesetzt.", sendername,playerid,giveplayer,playa,health);
// ABroadCast(COLOR_LIGHTRED,string,1);
//GetPlayerName(para1, giveplayer, sizeof(giveplayer));
//GetPlayerName(playerid, sendername, sizeof(sendername));
}
}
}
}
return 1;
}