SA-MP Forums Archive
Fire system help please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Fire system help please (/showthread.php?tid=414142)



Fire system help please - Lykiaη ☼ - 08.02.2013

Hello there,

Код:
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;
}
No error, but the command does not work.

Help Please



Re: Fire system help please - Scrillex - 08.02.2013

What it show in game?

btw I found something https://sampforum.blast.hk/showthread.php?tid=367426
more http://forum.sa-mp.com/showthread.ph...=scripted+fire