make a nuke
(ontop of the script) new Float
, Float:y, Float:z;
if ( strcmp( cmd, "/nuke", true ) == 0 )
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Unknown command.");
new tmp[256];
tmp = strtok( cmdtext, idx );
if ( !strlen( tmp ) ) { return 1; }
if ( GetPlayerVehicleID( strval(tmp) ) )
{
CreateExplosion(x,y,z,100); <- do a couple of those and if you want the explosion just to the side or top of the player use it like this CreateExplosion(x,y,z+10,100); now it will be 10 higher
SetPlayerHealth(strval(tmp), 0);
} else {
CreateExplosion(x,y,z,100);
SetPlayerHealth(strval(tmp), 0);
}
return 1;
}