Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include a_samp
- #include streamer
- new balloon, bvar, ballonchecker;
- public OnFilterScriptInit()
- {
- balloon = CreateObject(19337, -1605.94800, -177.69073, 13.53112, 0.00000, 0.00000, 0.00000);
- CreateObject(5820, -273.39679, 1510.28894, 78.00000, 0.00000, 0.00000, 0.00000);
- CreateObject(5820, -270.97198, 1519.51123, 85.25000, 0.00000, 0.50000, 88.24000);
- SetTimerEx("BallonChck", 5000, 0, "i", bvar);
- return 1;
- }
- forward public Checker(ballonid, WHAT);
- public Checker(ballonid, WHAT) {
- switch(WHAT) {
- case 1: {
- new Float:X,Float:Y,Float:Z;
- GetObjectPos(ballonid, X, Y, Z);
- if(X == -274.623687 && Y == 1522.535522 && Z == 88.199996)
- {
- SendClientMessageToAll( 0xFFFFFFFF, "{FF0000}[INFO]{0066ff} Balloon started it's trip to Next station in 20 seconds! /Balloon!");
- bvar = 2;
- KillTimer(ballonchecker);
- SetTimerEx("BallonChck", 20 * 1000, 0, "i", bvar);
- }
- }
- case 2: {
- new Float:X,Float:Y,Float:Z;
- GetObjectPos(balloon,X,Y,Z);
- printf("area 2 | %f %f %f",X, Y, Z);
- if(X == 1440.15308 && Y == 1768.91309 && Z == 9.81221)
- {
- SendClientMessageToAll( 0xFFFFFFFF, "{FF0000}[INFO]{0066ff} Balloon started it's trip to Next station in 20 seconds! /Balloon!");
- bvar = 3;
- KillTimer(ballonchecker);
- SetTimerEx("BallonChck", 20 * 1000, 0, "i", bvar);
- }
- }
- case 3: {
- new Float:X,Float:Y,Float:Z;
- GetObjectPos(balloon,X,Y,Z);
- printf("area 3 | %f %f %f",X, Y, Z);
- if(X == 1964.4941 && Y == 1916.7698 && Z == 129.9168)
- {
- SendClientMessageToAll( 0xFFFFFFFF, "{FF0000}[INFO]{0066ff} Balloon started it's trip to Next station in 20 seconds! /Balloon!");
- bvar = 4;
- KillTimer(ballonchecker);
- SetTimerEx("BallonChck", 20 * 1000, 0, "i", bvar);
- }
- }
- case 4: {
- new Float:X,Float:Y,Float:Z;
- GetObjectPos(balloon,X,Y,Z);
- printf("area 4 | %f %f %f",X, Y, Z);
- if(X == 2004.5236 && Y == 1006.7667 && Z == 38.0707)
- {
- SendClientMessageToAll( 0xFFFFFFFF, "{FF0000}[INFO]{0066ff} Balloon started it's trip to Next station in 20 seconds! /Balloon!");
- bvar = 5;
- KillTimer(ballonchecker);
- SetTimerEx("BallonChck", 20 * 1000, 0, "i", bvar);
- }
- }
- case 5: {
- new Float:X,Float:Y,Float:Z;
- GetObjectPos(balloon,X,Y,Z);
- printf("area 5 | %f %f %f",X, Y, Z);
- if(X == -1605.94800 && Y == -177.69073 && Z == 13.53112)
- {
- SendClientMessageToAll( 0xFFFFFFFF, "{FF0000}[INFO]{0066ff} Balloon started it's trip to Next station in 20 seconds! /Balloon!");
- bvar = 1;
- KillTimer(ballonchecker);
- SetTimerEx("BallonChck", 20 * 1000, 0, "i", bvar);
- }
- }
- }
- }
- forward public BallonChck(WHAT);
- public BallonChck(WHAT) {
- switch(WHAT) {
- case 0: {
- SendClientMessageToAll( 0xFFFFFFFF, "{FF0000}[INFO]{0066ff} Balloon started it's trip to Next station in 20 seconds! /Balloon!");
- bvar = 1;
- SetTimerEx("BallonChck", 20 * 1000, 0, "i", bvar);
- }
- case 1: {
- MoveObject( balloon, -274.62369, 1522.53552, 88.20000, 10.0);//10.0
- ballonchecker = SetTimerEx("Checker", 2500, 1, "id", balloon,bvar);
- }
- case 2: {
- MoveObject( balloon, 1440.15308, 1768.91309, 9.81221, 12.0);
- ballonchecker = SetTimerEx("Checker", 2500, 1, "id", balloon,bvar);
- }
- case 3: {
- MoveObject(balloon, 1964.4941, 1916.7698, 129.9168, 12.0);
- ballonchecker = SetTimerEx("Checker", 2500, 1, "id", balloon,bvar);
- }
- case 4: {
- MoveObject(balloon,2004.5236, 1006.7667, 38.0707, 12.0);
- ballonchecker = SetTimerEx("Checker", 2500, 1, "id", balloon,bvar);
- }
- case 5: {
- MoveObject(balloon,-1605.94800, -177.69073, 13.53112, 12.0);//12.0
- ballonchecker = SetTimerEx("Checker", 2500, 1, "id", balloon,bvar);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment