forward Fire(); public Fire() { new rand = random(MAX_HOUSES - 1); while(!(HouseInfo[rand][hExteriorZ] <= 100 && HouseInfo[rand][hExteriorX] > -2802.389648 && HouseInfo[rand][hExteriorX] < -1523.710327 && HouseInfo[rand][hExteriorY] < 1334.343750 && HouseInfo[rand][hExteriorY] > -216.298019)) { rand++; if(rand == 10) { rand = 1; } } CreateExplosion(HouseInfo[rand][hExteriorX], HouseInfo[rand][hExteriorY], HouseInfo[rand][hExteriorZ], 10, 10.0); return 1; }
CMD:fire(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 1337) { Fire(); } return 1; }