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


Messages In This Thread
Fire system help please - by Lykiaη ☼ - 08.02.2013, 11:09
Re: Fire system help please - by Scrillex - 08.02.2013, 11:13

Forum Jump:


Users browsing this thread: 2 Guest(s)