Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmdtext, "/bsinfo", true) == 0 || strcmp(cmdtext, "/vinfo", true) == 0)
- {
- new verkerhsstring[1024];
- new SF_Info_Text[256];
- new LS_Info_Text[256];
- new LV_Info_Text[256];
- //BSINFO für SF
- new baustelle_1_SF_text[512];
- new baustelle_2_SF_text[512];
- if(SF_BS1_state == 1)
- {
- 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");
- }
- else
- {
- format(baustelle_1_SF_text,sizeof(baustelle_1_SF_text),"");
- }
- if(SF_BS2_state == 1)
- {
- 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");
- }
- else
- {
- format(baustelle_2_SF_text,sizeof(baustelle_1_SF_text),"");
- }
- if(SF_BS1_state == 0 && SF_BS2_state == 0)
- {
- 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");
- }
- else
- {
- 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);
- }
- //BSINFO für LS
- new baustelle_1_LS_text[512];
- new baustelle_2_LS_text[512];
- if(LS_BS1_state == 1)
- {
- format(baustelle_1_SF_text,sizeof(baustelle_1_SF_text),"**Baustelleninfo hier \n");
- }
- else
- {
- format(baustelle_1_LS_text,sizeof(baustelle_1_LS_text),"");
- }
- if(LS_BS2_state == 1)
- {
- format(baustelle_2_SF_text,sizeof(baustelle_1_SF_text),"**Baustelleninfo hier \n");
- }
- else
- {
- format(baustelle_2_LS_text,sizeof(baustelle_1_LS_text),"");
- }
- if(LS_BS1_state == 0 && LS_BS2_state == 0)
- {
- 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");
- }
- else
- {
- 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);
- }
- //BSINFO für LV
- new baustelle_1_LV_text[512];
- new baustelle_2_LV_text[512];
- if(LV_BS1_state == 1)
- {
- format(baustelle_1_SF_text,sizeof(baustelle_1_SF_text),"**Baustelleninfo hier \n");
- }
- else
- {
- format(baustelle_1_LV_text,sizeof(baustelle_1_LV_text),"");
- }
- if(LV_BS2_state == 1)
- {
- format(baustelle_2_SF_text,sizeof(baustelle_1_SF_text),"**Baustelleninfo hier \n");
- }
- else
- {
- format(baustelle_2_LV_text,sizeof(baustelle_1_LV_text),"");
- }
- if(LV_BS1_state == 0 && LV_BS2_state == 0)
- {
- 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");
- }
- else
- {
- 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);
- }
- format(verkerhsstring,sizeof(verkerhsstring),"{FF0000}Aktuelle Verkehrsmeldungen \n%s%s%s",SF_Info_Text,LS_Info_Text,LV_Info_Text);
- return ShowPlayerDialog(playerid,DIALOG_VERKEHRSINFO,DIALOG_STYLE_MSGBOX,"Verkehrsinfo",verkerhsstring,"Schließen","Schließen");
- }
Advertisement
Add Comment
Please, Sign In to add comment