Fire Mission Is this Right?
#5

NeverMind i got it had the timer in another timr recalling hehe made the explosions double there number hahah

Код:
public FireMissions(playerid)
{
	if(PlayerInfo[playerid][pJob] >= 1)
	{
		SendClientMessage(playerid, RED, "Calling All Emergency Vehicles");
        //PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
	}
	Fire1 = CreateDynamicObject(3461,1682.5397,-2289.2920,11.5124,0,0,0); //object(tikitorch01_lvs) (1)
	Firetimer1 = SetTimer("MEXP1",5000,true);
    return 1;
}
public MEXP1(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid,5.0 ,1682.5397,-2289.2920,11.5124))
    {
	//do nothing
    }
    else
    {
        CreateExplosion(1682.5397,-2289.2920,11.5124,2,10.0);
        StartFireCheck = SetTimer("FireMissionExp", 5000, true);
    }
    return 1;
}
public FireMissionExp(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid,5.0 ,1682.5397,-2289.2920,11.5124))
    {
	    SendClientMessage(playerid, BLUE, "Keep Spraying you're Killing the source");
	    KillFire1 = SetTimer("KillFire", 30000, false);
	    KillTimer(StartFireCheck);
    }
	else
	{
		KillTimer(KillFire1);
	}
	return 1;
}
public KillFire(playerid)
{
    SendClientMessage(playerid, BLUE, "Good Job you killed the source");
	DestroyDynamicObject(Fire1);
	KillTimer(Firetimer1);
	return 1;
}
So you know if anyone uses this this fire located by Los santos enterance in the middle cant miss it.. its in the middle walk way and i upped the time on the Firemission to 1000000 = 10mins i think and made a command to start it.. but works good but to kill the fire just stand there lol


But .. Does anyone have and ideal how i can go about making a few more fire and explosions god i hate to do more timers and other things never done this before so my first firemission yay me..
Reply


Messages In This Thread
Fire Mission Is this Right? - by Buzzbomb - 27.11.2010, 20:38
Re: Fire Mission Is this Right? - by Buzzbomb - 27.11.2010, 20:47
Re: Fire Mission Is this Right? - by WillyP - 27.11.2010, 20:54
Re: Fire Mission Is this Right? - by Buzzbomb - 27.11.2010, 21:24
Re: Fire Mission Is this Right? - by Buzzbomb - 27.11.2010, 21:40

Forum Jump:


Users browsing this thread: 1 Guest(s)