Big Timer Not Working...
#1

Hi all,

I am making a ferry, and I allready made one. but this distance is a bit longer, and do also have big timers. Now my timer is not working. Maybe there's a max of seconds? Im talking about the first timer called: "FerryGo", that should send a clientmessagetoall, and start a new timer every 314 secs...

plz help me it cost me so much time to make this

My code:
pawn Код:
//Ferry BAYSIDE MoveObject's
new Fobj1;
new Fobj2;
new Fobj3;
new Fobj4;
new Fobj5;
new Fobj6;
new Fobj7;
new Fobj8;
new Fobj9;
forward FerryGo();
forward FerryBack();
forward FerryMoveGo();
forward FerryMoveBack();
forward FerryFenceOpen();
// End of Ferry BAYSIDE

public OnGameModeInit()
{
    //BoatTimers
    SetTimer("FerryGo",314000,true); //2min 27 sec == 147 sec| 147 + 20 + 147 + 20 =334 sec -20 sec
    //EndOfBoatTimers

    FerryFence11 = CreateObject(0,0,0,0,0,0,100.0); //coordinats removed for copying
    FerryFence12 = CreateObj(0,0,0,0,0,0,100.0); //coordinats removed for copyingect(0,0,0,0,0,0,100.0); //coordinats removed for copying

    //Ferry1 MoveObjects
    Fobj1 = CreateObject(0,0,0,0,0,0,100.0); //coordinats removed for copying
    Fobj2 = CreateObject(0,0,0,0,0,0,100.0); //coordinats removed for copying
    Fobj3 = CreateObject(0,0,0,0,0,0,100.0); //coordinats removed for copying
    Fobj4 = CreateObject(0,0,0,0,0,0,100.0); //coordinats removed for copying
    Fobj5 = CreateObject(0,0,0,0,0,0,100.0); //coordinats removed for copying
    Fobj6 = CreateObject(0,0,0,0,0,0,100.0); //coordinats removed for copying
    Fobj7 = CreateObject(0,0,0,0,0,0,100.0); //coordinats removed for copying
    Fobj8 = CreateObject(0,0,0,0,0,0,100.0); //coordinats removed for copying
    Fobj9 = CreateObject(0,0,0,0,0,0,100.0); //coordinats removed for copying
    return 1;
}

public FerryGo() // this one is NOT sending the message...
{
    SendClientMessageToAll(COL_ORANGE,"[FERRY]Bayside-ferry is going to leave in 20 seconds!");
    SetTimer("FerryMoveGo", 20000,false);
    return 1;
}

public FerryMoveGo()
{
    print("Ferry going to Island");
    SetTimer("FerryBack", 147000, false); // 147sec
    SendClientMessageToAll(COL_ORANGE,"[FERRY]: Bayside-Ferry is started moving to the island!");
    //close fence
    MoveObject(FerryFence11,-1284.90002441,1604.09997559,15.00000000,2.5,0.00000000,0.00000000,354.00000000);
    MoveObject(FerryFence12,-1293.80004883,1604.90002441,15.00000000,2.5,0.00000000,0.00000000,175.99597168);

    MoveObject(Fobj1,   0,0,017.5,   0.00000000,0.00000000,354.74584961);
    MoveObject(Fobj2,   0,0,017.5,   0.00000000,0.00000000,354.75000000);
    MoveObject(Fobj3,   0,0,017.5,   0.00000000,0.00000000,353.99865723);
    MoveObject(Fobj4,   0,0,017.5,   0.00000000,0.00000000,354.74035645);
    MoveObject(Fobj5,   0,0,017.5,   276.00402832,357.60498047,351.85913086);
    MoveObject(Fobj6,   0,0,017.5,   0.00000000,0.00000000,354.49035645);
    MoveObject(Fobj7,   0,0,017.5,   0.00000000,0.00000000,264.74853516);
    MoveObject(Fobj8,   0,0,017.5,   0.00000000,0.00000000,264.74853516);
    MoveObject(Fobj9,   0,0,017.5,   0.00000000,0.00000000,354.49035645);
}

public FerryBack()
{
    SendClientMessageToAll(COL_ORANGE,"[FERRY]: Bayside-Ferry arrived at the island, moving back within 20 seconds!");
    SetTimer("FerryMoveBack", 20000, false);
    return 1;
}

public FerryMoveBack()
{
    print("Ferry going back");
    SendClientMessageToAll(COL_ORANGE,"[FERRY]: Bayside-Ferry is started moving back to the map!");
    MoveObject(Fobj1,   0,0,0   17.5,   0.00000000,0.00000000,354.49584961); //object(carrier_hull_sfse) (5)
    MoveObject(Fobj2,   0,0,017.5,   0.00000000,0.00000000,354.49584961); //object(carrier_bridge_sfse) (2)
    MoveObject(Fobj3,   0,0,017.5,   0.00000000,0.00000000,354.25000000); //object(accorridors_sfs) (1)
    MoveObject(Fobj4,   0,0,017.5,   0.00000000,0.00000000,354.49584961); //object(gnhtelgrnd_lvs) (27)
    MoveObject(Fobj5,   0,0,017.5,   276.00512695,357.60964966,351.61318970); //object(gnhtelgrnd_lvs) (28)
    MoveObject(Fobj6,   0,0,017.5,   0.00000000,0.00000000,264.75000000); //object(dockbarr1_la) (1)
    MoveObject(Fobj7,   0,0,017.5,   0.00000000,0.00000000,264.74853516); //object(dockbarr1_la) (42)
    MoveObject(Fobj8,   0,0,017.5,   0.00000000,0.00000000,264.74853516); //object(dockbarr1_la) (45)
    MoveObject(Fobj9,   0,0,017.5,   0.00000000,0.00000000,354.49584961); //object(gnhtelgrnd_lvs) (9)
    SetTimer("FerryFenceOpen", 147000,false); //open fence
}

public FerryFenceOpen()
{
    //open fence
    MoveObject(FerryFence11,-1279.30004883,1603.50000000,15.00000000,2.5,0.00000000,0.00000000,353.99597168);
    MoveObject(FerryFence12,-1301.50000000,1605.40002441,15.00000000,2.5,0.00000000,0.00000000,175.99548340);

}
Reply
#2

No one?
Reply
#3

try settimerEX in ferry go
Reply
#4

u set the object to do nothing but rotate :!
Reply
#5

?? Nobi removes data and set it to: 0 for copying people
Reply
#6

this should give an idea

pawn Код:
new NB[9];

 for(new i=0; i<9; i++)
 {
  new Float:x, Float:y, Float:z;
  new Float:RotX,Float:RotY,Float:RotZ;
  GetObjectRot(NB[i], RotX, RotY, RotZ);
  GetObjectPos(NB[i], x, y, z);
  MoveObject(NB[i],x+231,y,z,2.0,0,0,20,300 );
  SetTimer("w/e", tfalse);
Reply
#7

Yo Jer. The ferry use to work before when i saw it In-Game.

Fuck all that. Give me the old ferry functions for the W.E.T Game mode and i will do as you want it to be. Wont take lot of time as i have working internet.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)