Jump to content
  • 0

/windows pe dialog si sa deschida geamurile pe rand nu toate.


Jimmi

Question

Problema intalnita (descriere):Cum pot face pe dialog.Si sa pot deschide ce geam vreau eu nu sa se deschida toata odata.Ceva de genul:i.imgur.com/DS8zVTV.png iar cand inchid geamul:http://i.imgur.com/i9q64po.png
Ero(area / rile) / warning-(ul / urile):Nu am
Liniile de cod / sursa / script-ul(obligatoriu):

//========================================[CMD /WINDOWS]=====================================================//
CMD:window(playerid, params[])
{
        if(GetPlayerVehicleID(playerid) && GetPlayerVehicleID(playerid) != INVALID_VEHICLE_ID)
        {
                SetVehicleParamsCarWindows(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF);
        }
        return 1;

    }
//========================================[CMD /CLOSEWINDOWS]=================================================//
CMD:closewindow(playerid, params[])
   {
       if(GetPlayerVehicleID(playerid) && GetPlayerVehicleID(playerid) != INVALID_VEHICLE_ID)
      {
               SetVehicleParamsCarWindows(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_ON, VEHICLE_PARAMS_ON, VEHICLE_PARAMS_ON, VEHICLE_PARAMS_ON);
       }
       return 1;
   }


Imagini / Video (optional):Mai sus
Ati incercat sa rezolvati singur?:da

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Ati incercat sa rezolvati singur?:da

Sa vedem ce ai incercat sa faci! TU ai venit cu o comanda copiata de undeva si vrei sa-ti facem noi tot sistemul..

Nu mai deschideti in pu*a mea servere de SA:MP !

Jucati-va pe cele care sunt !   Sunt suficiente !

Reguli de bun simt:

1. Nu faceti reclama unde nu trebuie !

2. Nu injurati ca la usa cortului !

3. Daca esti analfabeti, taci din gura !

4. Nu abuza de 'scuze', 'din greseala' !

 

My work ::: http://pastebin.com/VRNRcaAs

Link to comment
Share on other sites

  • 0

Nu e nevoie de dovezi atat timp cat tu la intrebarea de mai jos ai raspuns prin "DA", desi n-ai incercat nimic pentru a-ti rezolva singur problema. Eu zic sa incerci sa faci singur si sa dai edit la partea de cod cat mai rapid, altfel vine un moderator si primesti TC.

Ati incercat sa rezolvati singur?:da

 

Arunca o privire pe wiki.sa-mp.com la SetVehicleParamsCarWindows si ShowPlayerDialog si format 

Edited by Punct.

Nu mai deschideti in pu*a mea servere de SA:MP !

Jucati-va pe cele care sunt !   Sunt suficiente !

Reguli de bun simt:

1. Nu faceti reclama unde nu trebuie !

2. Nu injurati ca la usa cortului !

3. Daca esti analfabeti, taci din gura !

4. Nu abuza de 'scuze', 'din greseala' !

 

My work ::: http://pastebin.com/VRNRcaAs

Link to comment
Share on other sites

  • 0

@jimmi Limbajul, ai la dispoziție 5 ore să dai edit sau primești warn!

ON: Faci ca la apel să afișeze dialogul cu cele 4/2 geamuri în funcție de mașină, să le modifice status-ul din true în false sau invers în funcție de statusul curent.

Link to comment
Share on other sites

  • 0

Ceva de genul?

CMD:windows(playerid, params[])
{
        if(GetPlayerVehicleID(playerid) && GetPlayerVehicleID(playerid) != INVALID_VEHICLE_ID)
        {
        		if(strcmp(x_nr,"[Opened]",true) == 0)
				{
				SetVehicleParamsCarWindows(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF);
					return 1;
				}
				if(strcmp(x_nr,"[Opened]",true) == 0)
				{
				SetVehicleParamsCarWindows(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF);
					return 1;
				}
				if(strcmp(x_nr,"[Opened]",true) == 0)
				{
				SetVehicleParamsCarWindows(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF);
					return 1;
				}
				if(strcmp(x_nr,"[Opened]",true) == 0)
				{
				SetVehicleParamsCarWindows(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF);
					return 1;
				}
				if(strcmp(x_nr,"[Closed]",true) == 0)
				{
				SetVehicleParamsCarWindows(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_ON, VEHICLE_PARAMS_ON, VEHICLE_PARAMS_ON, VEHICLE_PARAMS_ON);
					return 1;
				}
				if(strcmp(x_nr,"[Closed]",true) == 0)
				{
				SetVehicleParamsCarWindows(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_ON, VEHICLE_PARAMS_ON, VEHICLE_PARAMS_ON, VEHICLE_PARAMS_ON);
					return 1;
				}
				if(strcmp(x_nr,"[Closed]",true) == 0)
				{
					SetVehicleParamsCarWindows(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_ON, VEHICLE_PARAMS_ON, VEHICLE_PARAMS_ON, VEHICLE_PARAMS_ON);
					return 1;
				}
				if(strcmp(x_nr,"[Closed]",true) == 0)
				{
				SetVehicleParamsCarWindows(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_ON, VEHICLE_PARAMS_ON, VEHICLE_PARAMS_ON, VEHICLE_PARAMS_ON);
					return 1;
				}
                SetVehicleParamsCarWindows(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF);
        }
        ShowPlayerDialog(playerid, DIALOG_WELCOME, DIALOG_STYLE_MSGBOX, "Toggle", "Close", "");
        return 1;
    }

 

Link to comment
Share on other sites

  • 0

nu :|

 

Vezi ca am postat la Filterscripturi un script. Link: http://www.sa-mp.ro/forums/topic/21159-window-pe-dialog/

Fii atent la ce scrie la Atentie!

Nu mai deschideti in pu*a mea servere de SA:MP !

Jucati-va pe cele care sunt !   Sunt suficiente !

Reguli de bun simt:

1. Nu faceti reclama unde nu trebuie !

2. Nu injurati ca la usa cortului !

3. Daca esti analfabeti, taci din gura !

4. Nu abuza de 'scuze', 'din greseala' !

 

My work ::: http://pastebin.com/VRNRcaAs

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.