Jump to content
  • 0

[GF/RP] Job Help /lsroute si /sfroute


tantan_andrey

Question

Salutare all! Am si eu o problema cu comenzile /lsroute si /sfroute:( Imi iau jobul, ma duc la autobuzele de la gara si cand ma sui in ele sa dau /lsroute sau /sfroute zice ca nu sunt in AutoBuz :| comenzile sunt:

//----------------------------------[Ls Route]-----------------------------------------------
   	if(strcmp(cmd, "/lsroute", true) == 0)
	{
		if(IsPlayerConnected(playerid))
		{
		    if(PlayerInfo[playerid][pJob] == 14)
		    {
		    	new tmpcar = GetPlayerVehicleID(playerid);
		    	if(IsABus(tmpcar))
				{
   					CP[playerid] = 150;
	   				SetPlayerCheckpoint(playerid, 1493.9727,-1726.4873,13.5469, 4.0);
        		 	SendClientMessage(playerid, COLOR_LIGHTBLUE, "Urmareste checkpointurile pentru a lua plata");
					SendClientMessageToAll(COLOR_BUS,"<<Autobuzul a plecat din gara Los Santos.Urmatoarea statie:PDLS>>");
				}
				else
				{
					SendClientMessage(playerid, COLOR_GRAD1,"You are not in Bus");
					return 1;
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1,"You are not a bus driver");
				return 1;
			}
		}
		return 1;
	}
//----------------------------------[SF Route]-----------------------------------------------
   	if(strcmp(cmd, "/sfroute", true) == 0)
	{
		if(IsPlayerConnected(playerid))
		{
		    if(PlayerInfo[playerid][pJob] == 14)
		    {
		 	    new tmpcar = GetPlayerVehicleID(playerid);
  				if(IsABus(tmpcar))
				{
   					CP[playerid] = 156;
  	 				SetPlayerCheckpoint(playerid, -2003.8007,148.5716,27.539, 4.0);
  	        		SendClientMessage(playerid, COLOR_LIGHTBLUE, "Urmareste checkpointurile pentru a lua plata");
  					SendClientMessageToAll(COLOR_BUS,"<<Autobuzul a plecat din Gara sf.Urmatoarea statie:Intrarea in Ls>>");
				}
				else
				{
					SendClientMessage(playerid, COLOR_GRAD1,"You are not in Bus");
					return 1;
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1,"You are not a bus driver");
				return 1;
			}
		}
		return 1;
	}

SPECIFIC ! Am mai avut o data problema aceasta:( si din pacate am rezolvato tot cu un baiat de pe sa-mp.ro:| dar nu mai stiu cum sa o re-fac. Multumesc.

Sa iti dea Deumnezeu sanatate TzAkS

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

Scuze pentru Triplu post, dar unde anume in isabuscar sa pun id-urile dami un exemplu te rog frumos

posteaza tot public isabus , si ti le modific eu , numa ca tu sa imi dai id-uile corecte.

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Link to comment
Share on other sites

Scuze 4x post!

IsaBus.. este:

  				if(IsABus(tmpcar))

Id-urile autobuzelor sunt: 431 si 431 2 autobuze cu id-urile 431

Ma omori cu zile :o

Caut in gm "public IsABus" si posteazal , si nu cred ca alea sunt idurile.

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

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.