dcmd_scan(playerid, params[])
{
#pragma unused params
if(Player[playerid][admin] < 2){
return SendClientMessage(playerid,COLOR_RED,"You must be a Admin or higher for this Command");
}
new idscan;
{
if(sscanf(params, "u", idscan)) return SendClientMessage(playerid, 0xFFFFFF, "/scan [ID]");
}
new Float:boomx, Float:boomy, Float:boomz;
GetPlayerPos(idscan,boomx, boomy, boomz);
CreateExplosion(boomx, boomy , boomz, 7, 10);
GodModeCheck11(idscan);
return 1;
}
stock GodModeCheck11(idscan)
{
new health = GetPlayerHealth(idscan);
GetPlayerHealth(idscan, health);
if(health >= 99)
{
Ban(idscan,"Godmode");
}
else
{
SetPlayerHealth(idscan,100);
}
return 1;
}
Wenn ich InGAme /scan Meine ID mache, dann kackt der Server ab, ich weiß nciht wieso.