Advertisement
kerts93

SA-MP 3DTexts

Jul 22nd, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 6.05 KB | None | 0 0
  1. PUBLIC tablooKontroll(){
  2.     new Hour, Minute, Second;
  3.     gettime(Hour, Minute, Second);
  4.     Hour = Hour + ajaNihe;
  5.  
  6.     if (TablooX1){
  7.         if (day) {
  8.             if (Minute == 00){
  9.                 Delete3DTextLabel(TablooX1);
  10.                 TablooX1 = Create3DTextLabel("[BOT] X1 La Habra",0x66CC00FF,0,0,0,30.0,0,0);
  11.                 Attach3DTextLabelToVehicle( TablooX1, CPTbotX1bus, 0.0, 0.0, 2.0);
  12.             } else if (Minute == 30){
  13.                 Delete3DTextLabel(TablooX1);
  14.                 TablooX1 = Create3DTextLabel("[BOT] X1 Santa Monica Beach",0x66CC00FF,0,0,0,30.0,0,0);
  15.                 Attach3DTextLabelToVehicle( TablooX1, CPTbotX1bus, 0.0, 0.0, 2.0);
  16.             }
  17.         } else {
  18.             if (Minute == 00){
  19.                 Delete3DTextLabel(TablooX1);
  20.                 TablooX1 = Create3DTextLabel("[BOT] N1 La Habra",0x66CC00FF,0,0,0,30.0,0,0);
  21.                 Attach3DTextLabelToVehicle( TablooX1, CPTbotX1bus, 0.0, 0.0, 2.0);
  22.             } else if (Minute == 30){
  23.                 Delete3DTextLabel(TablooX1);
  24.                 TablooX1 = Create3DTextLabel("[BOT] N1 Santa Monica Beach",0x66CC00FF,0,0,0,30.0,0,0);
  25.                 Attach3DTextLabelToVehicle( TablooX1, CPTbotX1bus, 0.0, 0.0, 2.0);
  26.             }
  27.         }
  28.     }
  29.     if (TablooX1v2){
  30.         if (day) {
  31.             if (Minute == 30){
  32.                 Delete3DTextLabel(TablooX1v2);
  33.                 TablooX1v2 = Create3DTextLabel("[BOT] X1 La Habra",0x66CC00FF,0,0,0,30.0,0,0);
  34.                 Attach3DTextLabelToVehicle( TablooX1v2, CPTbotX1bus2, 0.0, 0.0, 2.0);
  35.             } else if (Minute == 00){
  36.                 Delete3DTextLabel(TablooX1v2);
  37.                 TablooX1v2 = Create3DTextLabel("[BOT] X1 Santa Monica Beach",0x66CC00FF,0,0,0,30.0,0,0);
  38.                 Attach3DTextLabelToVehicle( TablooX1v2, CPTbotX1bus2, 0.0, 0.0, 2.0);
  39.             }
  40.         } else {
  41.             if (Minute == 30){
  42.                 Delete3DTextLabel(TablooX1v2);
  43.                 TablooX1v2 = Create3DTextLabel("[BOT] N1 La Habra",0x66CC00FF,0,0,0,30.0,0,0);
  44.                 Attach3DTextLabelToVehicle( TablooX1v2, CPTbotX1bus2, 0.0, 0.0, 2.0);
  45.             } else if (Minute == 00){
  46.                 Delete3DTextLabel(TablooX1v2);
  47.                 TablooX1v2 = Create3DTextLabel("[BOT] N1 Santa Monica Beach",0x66CC00FF,0,0,0,30.0,0,0);
  48.                 Attach3DTextLabelToVehicle( TablooX1v2, CPTbotX1bus2, 0.0, 0.0, 2.0);
  49.             }
  50.         }
  51.     }
  52.     if (TablooX1v3){
  53.         if (day) {
  54.             if (Minute == 15){
  55.                 Delete3DTextLabel(TablooX1v3);
  56.                 TablooX1v3 = Create3DTextLabel("[BOT] X1 La Habra",0x66CC00FF,0,0,0,30.0,0,0);
  57.                 Attach3DTextLabelToVehicle( TablooX1v3, CPTbotX1bus3, 0.0, 0.0, 2.0);
  58.             } else if (Minute == 45){
  59.                 Delete3DTextLabel(TablooX1v3);
  60.                 TablooX1v3 = Create3DTextLabel("[BOT] X1 Santa Monica Beach",0x66CC00FF,0,0,0,30.0,0,0);
  61.                 Attach3DTextLabelToVehicle( TablooX1v3, CPTbotX1bus3, 0.0, 0.0, 2.0);
  62.             }
  63.         } else {
  64.             if (Minute == 15){
  65.                 Delete3DTextLabel(TablooX1v3);
  66.                 TablooX1v3 = Create3DTextLabel("[BOT] N1 La Habra",0x66CC00FF,0,0,0,30.0,0,0);
  67.                 Attach3DTextLabelToVehicle( TablooX1v3, CPTbotX1bus3, 0.0, 0.0, 2.0);
  68.             } else if (Minute == 45){
  69.                 Delete3DTextLabel(TablooX1v3);
  70.                 TablooX1v3 = Create3DTextLabel("[BOT] N1 Santa Monica Beach",0x66CC00FF,0,0,0,30.0,0,0);
  71.                 Attach3DTextLabelToVehicle( TablooX1v3, CPTbotX1bus3, 0.0, 0.0, 2.0);
  72.             }
  73.         }
  74.     }
  75.     if (TablooX1v4){
  76.         if (day) {
  77.             if (Minute == 45){
  78.                 Delete3DTextLabel(TablooX1v4);
  79.                 TablooX1v4 = Create3DTextLabel("[BOT] X1 La Habra",0x66CC00FF,0,0,0,30.0,0,0);
  80.                 Attach3DTextLabelToVehicle( TablooX1v4, CPTbotX1bus4, 0.0, 0.0, 2.0);
  81.             } else if (Minute == 15){
  82.                 Delete3DTextLabel(TablooX1v4);
  83.                 TablooX1v4 = Create3DTextLabel("[BOT] X1 Santa Monica Beach",0x66CC00FF,0,0,0,30.0,0,0);
  84.                 Attach3DTextLabelToVehicle( TablooX1v4, CPTbotX1bus4, 0.0, 0.0, 2.0);
  85.             }
  86.         } else {
  87.             if (Minute == 45){
  88.                 Delete3DTextLabel(TablooX1v4);
  89.                 TablooX1v4 = Create3DTextLabel("[BOT] N1 La Habra",0x66CC00FF,0,0,0,30.0,0,0);
  90.                 Attach3DTextLabelToVehicle( TablooX1v4, CPTbotX1bus4, 0.0, 0.0, 2.0);
  91.             } else if (Minute == 15){
  92.                 Delete3DTextLabel(TablooX1v4);
  93.                 TablooX1v4 = Create3DTextLabel("[BOT] N1 Santa Monica Beach",0x66CC00FF,0,0,0,30.0,0,0);
  94.                 Attach3DTextLabelToVehicle( TablooX1v4, CPTbotX1bus4, 0.0, 0.0, 2.0);
  95.             }
  96.         }
  97.     }
  98.     if (TablooX2){
  99.         if (day) {
  100.             if (Minute == 00 || Minute == 20 || Minute == 40){
  101.                 Delete3DTextLabel(TablooX2);
  102.                 TablooX2 = Create3DTextLabel("[BOT] X2 Los Angeles Airport",0x66CC00FF,0,0,0,30.0,0,0);
  103.                 Attach3DTextLabelToVehicle( TablooX2, CPTbotX2bus, 0.0, 0.0, 2.0);
  104.             } else if (Minute == 10 || Minute == 30 || Minute == 50){
  105.                 Delete3DTextLabel(TablooX2);
  106.                 TablooX2 = Create3DTextLabel("[BOT] X2 Bussijaam",0x66CC00FF,0,0,0,30.0,0,0);
  107.                 Attach3DTextLabelToVehicle( TablooX2, CPTbotX2bus, 0.0, 0.0, 2.0);
  108.             }
  109.         } else {
  110.             if (Minute == 00 || Minute == 20 || Minute == 40){
  111.                 Delete3DTextLabel(TablooX2);
  112.                 TablooX2 = Create3DTextLabel("[BOT] N2 Los Angeles Airport",0x66CC00FF,0,0,0,30.0,0,0);
  113.                 Attach3DTextLabelToVehicle( TablooX2, CPTbotX2bus, 0.0, 0.0, 2.0);
  114.             } else if (Minute == 10 || Minute == 30 || Minute == 50){
  115.                 Delete3DTextLabel(TablooX2);
  116.                 TablooX2 = Create3DTextLabel("[BOT] N2 Bussijaam",0x66CC00FF,0,0,0,30.0,0,0);
  117.                 Attach3DTextLabelToVehicle( TablooX2, CPTbotX2bus, 0.0, 0.0, 2.0);
  118.             }
  119.         }
  120.     }
  121.     if (TablooX2v2){
  122.         if (day) {
  123.             if (Minute == 10 || Minute == 30 || Minute == 50){
  124.                 Delete3DTextLabel(TablooX2v2);
  125.                 TablooX2v2 = Create3DTextLabel("[BOT] X2 Los Angeles Airport",0x66CC00FF,0,0,0,30.0,0,0);
  126.                 Attach3DTextLabelToVehicle( TablooX2v2, CPTbotX2bus2, 0.0, 0.0, 2.0);
  127.             } else if (Minute == 00 || Minute == 20 || Minute == 40){
  128.                 Delete3DTextLabel(TablooX2v2);
  129.                 TablooX2v2 = Create3DTextLabel("[BOT] X2 Bussijaam",0x66CC00FF,0,0,0,30.0,0,0);
  130.                 Attach3DTextLabelToVehicle( TablooX2v2, CPTbotX2bus2, 0.0, 0.0, 2.0);
  131.             }
  132.         } else {
  133.             if (Minute == 10 || Minute == 30 || Minute == 50){
  134.                 Delete3DTextLabel(TablooX2v2);
  135.                 TablooX2v2 = Create3DTextLabel("[BOT] N2 Los Angeles Airport",0x66CC00FF,0,0,0,30.0,0,0);
  136.                 Attach3DTextLabelToVehicle( TablooX2v2, CPTbotX2bus2, 0.0, 0.0, 2.0);
  137.             } else if (Minute == 00 || Minute == 20 || Minute == 40){
  138.                 Delete3DTextLabel(TablooX2v2);
  139.                 TablooX2v2 = Create3DTextLabel("[BOT] N2 Bussijaam",0x66CC00FF,0,0,0,30.0,0,0);
  140.                 Attach3DTextLabelToVehicle( TablooX2v2, CPTbotX2bus2, 0.0, 0.0, 2.0);
  141.             }
  142.         }
  143.     }
  144.     SetTimer("tablooKontroll", 5000, false);
  145. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement