Fire system help please
#1

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
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)