RANDOM FIRE.
#7

Quote:
Originally Posted by [MM]RoXoR[FS]
View Post
I think you should create an array of position's you want like

pawn Code:
new Float:pos[15][3] = {
{0,0,0},   //Replace 0,0,0 and 1,1,1 with position's
{1,1,1},   //Do for all 15 positions
.
.
.
};
Now create a timer when game start's
pawn Code:
forward StartFire();

public OnGameModeInit()
{
    SetTimer("StartFire", 15*60000, 0)
}
Now the function to create object

pawn Code:
public StartFire()
{

    for(new i=0;i<3;++i){
    new rand = random(sizeof(pos));
    CreateObject(18689,pos[rand][0],pos[rand][1],pos[rand][2],0,0,0);}
}
22 Errors... There is a missing barracks or something..
Can I get another code guys ?
Reply


Messages In This Thread
RANDOM FIRE. - by dorperez - 16.08.2013, 09:09
Re: RANDOM FIRE. - by Kells - 16.08.2013, 09:11
Re: RANDOM FIRE. - by dorperez - 16.08.2013, 09:34
Re : RANDOM FIRE. - by Garwan50 - 16.08.2013, 09:44
Re: Re : RANDOM FIRE. - by dorperez - 16.08.2013, 10:03
Re: RANDOM FIRE. - by [MM]RoXoR[FS] - 16.08.2013, 10:03
Re: RANDOM FIRE. - by dorperez - 16.08.2013, 11:50
Re: RANDOM FIRE. - by RedJohn - 16.08.2013, 12:35

Forum Jump:


Users browsing this thread: 2 Guest(s)