random fires - 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: random fires (
/showthread.php?tid=300545)
random fires -
Jordiee - 30.11.2011
Hey, does anyone know how to script random fires on houses, or buildings? Also is it even possible?
Re: random fires -
Joe Staff - 30.11.2011
yes
pawn Код:
#define MAX_FIRES 2
new Float:FireLocations[MAX_FIRES][3]=
{
{0,0,0},
{0,0,0}
}
public Function()
{
new fire=random(MAX_FIRES);
CreateObject(fire_model,FireLocations[fire][0],FireLocations[fire][1],FireLocations[fire][2],...);
}
Re: random fires -
Jordiee - 30.11.2011
where would the coords go?
Re: random fires -
nmader - 30.11.2011
pawn Код:
new Float:FireLocations[MAX_FIRES][3]= // Possibly here, not sure...
{
{0,0,0}, // They would go here if I am not mistaken
{0,0,0} // And here!
}
Re: random fires -
Jordiee - 30.11.2011
Hmm, I'm thinking of making a new GM and this is why I want this so that it gives the FD a job when people dont act out their injuries