Guest User

Befehl

a guest
Nov 16th, 2012
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.49 KB | None | 0 0
  1. if(strcmp(cmdtext, "/bsinfo", true) == 0 || strcmp(cmdtext, "/vinfo", true) == 0)
  2. {
  3. new verkerhsstring[1024];
  4. new SF_Info_Text[256];
  5. new LS_Info_Text[256];
  6. new LV_Info_Text[256];
  7. //BSINFO für SF
  8. new baustelle_1_SF_text[512];
  9. new baustelle_2_SF_text[512];
  10. if(SF_BS1_state == 1)
  11. {
  12. format(baustelle_1_SF_text,sizeof(baustelle_1_SF_text),"**Am Tunnel zwischen San Fierro und Los Santos ist ein Wasserrohr gebrochen. \n Bitte fahren Sie dort vorsichtig und achten Sie auf Gegenverkehr! \n");
  13. }
  14. else
  15. {
  16. format(baustelle_1_SF_text,sizeof(baustelle_1_SF_text),"");
  17. }
  18. if(SF_BS2_state == 1)
  19. {
  20. format(baustelle_2_SF_text,sizeof(baustelle_1_SF_text),"**Die Hauptstraße auf Höhe des Pay'n'Sprays ist in beide Richtungen blockiert. \n Dort wurde eine Palme entwurzelt. \n Bitte umfahren Sie dieses Gebiet. \n");
  21. }
  22. else
  23. {
  24. format(baustelle_2_SF_text,sizeof(baustelle_1_SF_text),"");
  25. }
  26. if(SF_BS1_state == 0 && SF_BS2_state == 0)
  27. {
  28. format(SF_Info_Text,sizeof(SF_Info_Text),"{FFFF00}_______________ \nBaustellen in San Fierro \n\n{FFFFE5}Zur Zeit sind keine Baustellen in San Fierro gemeldet. \n \n");
  29. }
  30. else
  31. {
  32. format(SF_Info_Text,sizeof(SF_Info_Text),"{FFFF00}_______________ \nBaustellen in San Fierro \n\n{FFFFE5}%s%s",baustelle_1_SF_text,baustelle_2_SF_text);
  33. }
  34. //BSINFO für LS
  35. new baustelle_1_LS_text[512];
  36. new baustelle_2_LS_text[512];
  37. if(LS_BS1_state == 1)
  38. {
  39. format(baustelle_1_SF_text,sizeof(baustelle_1_SF_text),"**Baustelleninfo hier \n");
  40. }
  41. else
  42. {
  43. format(baustelle_1_LS_text,sizeof(baustelle_1_LS_text),"");
  44. }
  45. if(LS_BS2_state == 1)
  46. {
  47. format(baustelle_2_SF_text,sizeof(baustelle_1_SF_text),"**Baustelleninfo hier \n");
  48. }
  49. else
  50. {
  51. format(baustelle_2_LS_text,sizeof(baustelle_1_LS_text),"");
  52. }
  53. if(LS_BS1_state == 0 && LS_BS2_state == 0)
  54. {
  55. format(SF_Info_Text,sizeof(SF_Info_Text),"{FFFF00}_______________ \nBaustellen in Los Santos \n\n{FFFFE5}Zur Zeit sind keine Baustellen in Los Santos gemeldet. \n \n");
  56. }
  57. else
  58. {
  59. format(SF_Info_Text,sizeof(SF_Info_Text),"{FFFF00}_______________ \nBaustellen in Los Santos \n\n{FFFFE5}%s%s",baustelle_1_LS_text,baustelle_2_LS_text);
  60. }
  61. //BSINFO für LV
  62. new baustelle_1_LV_text[512];
  63. new baustelle_2_LV_text[512];
  64. if(LV_BS1_state == 1)
  65. {
  66. format(baustelle_1_SF_text,sizeof(baustelle_1_SF_text),"**Baustelleninfo hier \n");
  67. }
  68. else
  69. {
  70. format(baustelle_1_LV_text,sizeof(baustelle_1_LV_text),"");
  71. }
  72. if(LV_BS2_state == 1)
  73. {
  74. format(baustelle_2_SF_text,sizeof(baustelle_1_SF_text),"**Baustelleninfo hier \n");
  75. }
  76. else
  77. {
  78. format(baustelle_2_LV_text,sizeof(baustelle_1_LV_text),"");
  79. }
  80. if(LV_BS1_state == 0 && LV_BS2_state == 0)
  81. {
  82. format(SF_Info_Text,sizeof(SF_Info_Text),"{FFFF00}_______________ \nBaustellen in Las Venturas \n\n{FFFFE5}Zur Zeit sind keine Baustellen in Las Venturas gemeldet. \n \n");
  83. }
  84. else
  85. {
  86. format(SF_Info_Text,sizeof(SF_Info_Text),"{FFFF00}_______________ \nBaustellen in Las Venturas \n\n{FFFFE5}%s%s",baustelle_1_LV_text,baustelle_2_LV_text);
  87. }
  88. format(verkerhsstring,sizeof(verkerhsstring),"{FF0000}Aktuelle Verkehrsmeldungen \n%s%s%s",SF_Info_Text,LS_Info_Text,LV_Info_Text);
  89. return ShowPlayerDialog(playerid,DIALOG_VERKEHRSINFO,DIALOG_STYLE_MSGBOX,"Verkehrsinfo",verkerhsstring,"Schließen","Schließen");
  90. }
Advertisement
Add Comment
Please, Sign In to add comment