zum ersten das zweite hab ich nich ganz verstanden
if(strcmp(cmd, "/nuke", true) == 0)
{
new boom[128];
bom = strtok(cmdtext, idx);
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
if(!strlen(boom) || !isNumeric(boom))
{
return SendClientMessage(playerid,COLOR_GRAD2,"Verwendung: /nuke [playerID]");
}
else
{
new playa;
new health;
playa = ReturnUser(tmp);
health = 0;
if(IsPlayerConnected(playa))
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playa,Float:x,Float:y,Float:z);
CreateExplosion(Float:x,Float:y,Float:z,0,50);
ConsumingHP[playa] = 1; SetPlayerHealth(playa, health);
SetPlayerHealth(playerid,0);
}
else
{
return SendClientMessage(playerid,COLOR_RED,"Diesen Spieler gibt es nicht!");
}
}
}
else
{
SendClientMessage(playerid,COLOR_LIGHTRED, "Dir ist es nicht erlaubt, diesen Befehl zu benutzen!");
}
return 1;
}