Jump to content
  • 0

Dmv camioane


kiLLers10

Question

Problema intalnita (descriere): Salut . Am facut un sistem de carnet pentru tiruri dar cand dau /examen si ma urc intr-un tir de la DMV il pot conduce 
Ero(area / rile) / warning-(ul / urile): - 
Liniile de cod / sursa / script-ul(obligatoriu): 

    if(newstate == PLAYER_STATE_DRIVER)
    {
		for(new h=0; h<5; h++)
		{
			if(IsPlayerInVehicle(playerid, Truckcar[h]))
			{
  				if(PlayerInfo[playerid][pTruckLicense] == 0)
  				{
        			if(TakingTruckLicense[playerid] == true)
        			{
        				SetPlayerCheckpoint(playerid, 2050.4858,-1929.8646,13.2555, 3.0);
	        			Truckcp[playerid] = 1;
	    			    TakingTruckLicense[playerid] = false;
	    			    SCM(playerid, COLOR_GOLD, "Urmeaza checkpointurile.");
	    			    SCM(playerid, COLOR_WHITE, "Ai iesit din masina si s-a respawnat .");
					}
					else
					{
					    RemovePlayerFromVehicle(playerid);
					    SCM(playerid, COLOR_LIGHTRED, "Nu ai luat testul .");
					}
				}
				else
				{
    				RemovePlayerFromVehicle(playerid);
				    SCM(playerid, COLOR_LIGHTRED, "Ai deja permis de conducere");
				}
            }
        }
    }


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

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0
Acum 5 minute, kiLLers10 a spus:

Problema intalnita (descriere): Salut . Am facut un sistem de carnet pentru tiruri dar cand dau /examen si ma urc intr-un tir de la DMV il pot conduce 
Ero(area / rile) / warning-(ul / urile): - 
Liniile de cod / sursa / script-ul(obligatoriu): 


    if(newstate == PLAYER_STATE_DRIVER)
    {
		for(new h=0; h<5; h++)
		{
			if(IsPlayerInVehicle(playerid, Truckcar[h]))
			{
  				if(PlayerInfo[playerid][pTruckLicense] == 0)
  				{
        			if(TakingTruckLicense[playerid] == true)
        			{
        				SetPlayerCheckpoint(playerid, 2050.4858,-1929.8646,13.2555, 3.0);
	        			Truckcp[playerid] = 1;
	    			    TakingTruckLicense[playerid] = false;
	    			    SCM(playerid, COLOR_GOLD, "Urmeaza checkpointurile.");
	    			    SCM(playerid, COLOR_WHITE, "Ai iesit din masina si s-a respawnat .");
					}
					else
					{
					    RemovePlayerFromVehicle(playerid);
					    SCM(playerid, COLOR_LIGHTRED, "Nu ai luat testul .");
					}
				}
				else
				{
    				RemovePlayerFromVehicle(playerid);
				    SCM(playerid, COLOR_LIGHTRED, "Ai deja permis de conducere");
				}
            }
        }
    }


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

Ok , si care e problema atunci?

Link to comment
Share on other sites

  • 0
  • 0
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.