Jump to content
  • 0

Problema Jobs


Nokian73

Question

9 answers to this question

Recommended Posts

Pai nu este comanda " /accept job" uite ce am in gamemod

	if(strcmp(cmd, "/join", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if(PlayerInfo[playerid][pJob] == 0)
			{
                if(gTeam[playerid] == 20 || gTeam[playerid] == 21 || gTeam[playerid] == 24 || gTeam[playerid] == 25)
			    {
			        SendClientMessage(playerid, COLOR_GREY, "   Sunteti civil sau membru al unei organizatii!!");
			        return 1;
			    }
				if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,359.5408,206.7693,1008.3828))
				{
				    SendClientMessage(playerid, COLOR_WHITE, "* Aici este locul unde puteti deveni Detectiv!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca ai deja un contract,asteapta pana va fi reziliat!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca esti sigur ca vrei sa te angajezi tasteaza /accept job.");
				    GettingJob[playerid] = 1;
				}
				else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,347.7374,193.7241,1014.1875))
				{
				    SendClientMessage(playerid, COLOR_WHITE, "*	EAici este locul unde puteti deveni Avocat!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca ai deja un contract,asteapta pana va fi reziliat!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca esti sigur ca vrei sa te angajezi tasteaza /accept job.");
				    GettingJob[playerid] = 2;
				}
    			else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1215.1304,-11.8431,1000.9219))
				{
				    SendClientMessage(playerid, COLOR_WHITE, "*.Aici este locul unde puteti deveni Prostituata!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca ai deja un contract,asteapta pana va fi reziliat!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca esti sigur ca vrei sa te angajezi tasteaza /accept job.");
				    GettingJob[playerid] = 3;
				}
				else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2072.5486,-1582.8029,13.4741))
				{
				    SendClientMessage(playerid, COLOR_WHITE, "* Aici este locul unde puteti deveni Dealer De Droguri!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca ai deja un contract,asteapta pana va fi reziliat!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca esti sigur ca vrei sa te angajezi tasteaza /accept job.");
				    GettingJob[playerid] = 4;
				}
				else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1109.3318,-1796.3042,16.5938))
				{
				    SendClientMessage(playerid, COLOR_WHITE, "* Aici este locul unde puteti deveni Hot De Masini!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca ai deja un contract,asteapta pana va fi reziliat!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca esti sigur ca vrei sa te angajezi tasteaza /accept job.");
				    GettingJob[playerid] = 5;
				}
				else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2226.1716,-1718.1792,13.5165))
				{
				    SendClientMessage(playerid, COLOR_WHITE, "* Aici este locul unde puteti deveni Bodyguard!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca ai deja un contract,asteapta pana va fi reziliat!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca esti sigur ca vrei sa te angajezi tasteaza /accept job.");
				    GettingJob[playerid] = 8;
		  		}
		  		else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1566.7646,23.4896,24.1641))
		  		{
		  		    SendClientMessage(playerid, COLOR_WHITE, "* Aici este locul unde puteti deveni Vanzator de arme!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca ai deja un contract,asteapta pana va fi reziliat!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca esti sigur ca vrei sa te angajezi tasteaza /accept job.");
				    GettingJob[playerid] = 22;
		  		}
		  		else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,594.2437,-1249.4027,18.2232))
		  		{
		  		   SendClientMessage(playerid, COLOR_WHITE, "* Aici este locul unde puteti deveni Dealer De Masini");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca ai deja un contract,asteapta pana va fi reziliat!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca esti sigur ca vrei sa te angajezi tasteaza /accept job.");
				    GettingJob[playerid] = 10;
		  		}
		  		else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,766.0804,14.5133,1000.7004))
		  		{
		  		    SendClientMessage(playerid, COLOR_WHITE, "* Aici este locul unde puteti deveni Boxer!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca ai deja un contract,asteapta pana va fi reziliat!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca esti sigur ca vrei sa te angajezi tasteaza /accept job.");
				    GettingJob[playerid] = 12;
		  		}
		  		else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,648.8274,-1353.7540,13.5477))
		  		{
		  		    SendClientMessage(playerid, COLOR_WHITE, "* Aici este locul unde puteti deveni PaperBoy!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca ai deja un contract,asteapta pana va fi reziliat!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca esti sigur ca vrei sa te angajezi tasteaza /accept job.");
				    GettingJob[playerid] = 15;
		  		}
		  		else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2341.9949,-2078.1633,15.0141))
		  		{
		  		    SendClientMessage(playerid, COLOR_WHITE, "* Aici este locul unde puteti deveni Distribuitor(sofer pe camion)!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca ai deja un contract,asteapta pana va fi reziliat!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca esti sigur ca vrei sa te angajezi tasteaza /accept job.");
				    GettingJob[playerid] = 16;
				}
				else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2101.7620,-1812.5922,13.5547))
		  		{
		  		    SendClientMessage(playerid, COLOR_WHITE, "* Aici este locul unde puteti deveni PizzaBoy!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca ai deja un contract,asteapta pana va fi reziliat!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca esti sigur ca vrei sa te angajezi tasteaza /accept job.");
				    GettingJob[playerid] = 17;
				}
				else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,-382.6660,-1426.5121,26.2410))
		  		{
		  		    SendClientMessage(playerid, COLOR_WHITE, "* Aici este locul unde puteti deveni Fermier!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca ai deja un contract,asteapta pana va fi reziliat!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca esti sigur ca vrei sa te angajezi tasteaza /accept job.");
				    GettingJob[playerid] = 18;
				}
				else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,-62.9806,76.3504,3.1172))//2022.1492,-1108.7837,26.2031
				{

				    SendClientMessage(playerid, COLOR_WHITE,"* Aici este locul unde puteti deveni Fermier Ilegal!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca ai deja un contract,asteapta pana va fi reziliat!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca esti sigur ca vrei sa te angajezi tasteaza /accept job.");
				    GettingJob[playerid] = 19;

				}
                else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1829.0392,-1147.4088,23.8974))
		  		{
		  		    SendClientMessage(playerid, COLOR_WHITE, "* Aici este locul unde puteti deveni Vanzator De Arme!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca ai deja un contract,asteapta pana va fi reziliat!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca esti sigur ca vrei sa te angajezi tasteaza /accept job.");
				    GettingJob[playerid] = 9;
		  		}
				else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1611.5129,-1893.6997,13.5469))
		  		{
         			SendClientMessage(playerid, COLOR_WHITE, "* Aici este locul unde puteti deveni Gunoier!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca ai deja un contract,asteapta pana va fi terminat!");
				    SendClientMessage(playerid, COLOR_WHITE, "* Daca esti sigur ca vrei sa te angajezi tasteaza /accept job.");
				    GettingJob[playerid] = 21;
				}
		  		else
		  		{
		  		    SendClientMessage(playerid, COLOR_GREY, "   Nu esti in locul potrivit pentru a te angaja!");
		  		}
			}
			else
			{
			    SendClientMessage(playerid, COLOR_GREY, "   Ai deja un job,tasteaza /quitjob!");
			}
		}//not connected
	    return 1;
	}

Am verificat si alte gamemoduri, aceeasi chestie au si celelalte... :(

Link to comment
Share on other sites

Incerca asta

if(strcmp(cmd, "/join", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

if(PlayerInfo[playerid][pJob] == 0)

{

    if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,359.5408,206.7693,1008.3828))

{

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Detective, and get a 5 hour Contract.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Detective, type /accept job.");

    GettingJob[playerid] = 1;

}

else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,347.7374,193.7241,1014.1875))

{

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Lawyer, and get a 5 hour Contract.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Lawyer, type /accept job.");

    GettingJob[playerid] = 2;

}

else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1215.1304,-11.8431,1000.9219))

{

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Whore, and get a 5 hour Contract.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Whore, type /accept job.");

    GettingJob[playerid] = 3;

}

else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2166.3772,-1675.3829,15.0859))

{

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Drugs Dealer, and get a 5 hour Contract.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Drugs Dealer, type /accept job.");

    GettingJob[playerid] = 4;

}

else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1109.3318,-1796.3042,16.5938))

{

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Car Jacker, and get a 5 hour Contract.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Car Jacker, type /accept job.");

    GettingJob[playerid] = 5;

}

else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,-1932.3859,276.2117,41.0391))

{

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Car Mechanic, and get a 5 hour Contract.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Car Mechanic, type /accept job.");

    GettingJob[playerid] = 7;

  }

else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2226.1716,-1718.1792,13.5165))

{

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Bodyguard, and get a 5 hour Contract.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Bodyguard, type /accept job.");

    GettingJob[playerid] = 8;

  }

  else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1366.4325,-1275.2096,13.5469))

  {

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Arms Dealer, and get a 5 hour Contract.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Arms Dealer, type /accept job.");

    GettingJob[playerid] = 9;

  }

  else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,531.7930,-1292.4044,17.2422))

  {

      SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Car Dealer, and get a 5 hour Contract.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Car Dealer, type /accept job.");

    GettingJob[playerid] = 10;

  }

  else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,766.0804,14.5133,1000.7004))

  {

      SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Boxer, and get a 5 hour Contract.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Boxer, type /accept job.");

    GettingJob[playerid] = 12;

  }

  else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1753.2321,-1894.4097,13.5572))

  {

      SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Bus Driver, and get a 5 hour Contract.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Bus Driver, type /accept job.");

    GettingJob[playerid] = 14;

  }

  else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,-2040.9436,456.2395,35.1719))

  {

      SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Paper Boy, and get a 5 hour Contract.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Paper Boy, type /accept job.");

    GettingJob[playerid] = 15;

  }

  else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,-77.7288,-1136.3896,1.0781))

  {

      SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Trucker, and get a 5 hour Contract.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Trucker, type /accept job.");

    GettingJob[playerid] = 16;

}

else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,-2073.8772,225.4153,35.8028))

  {

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Hotz, and get a 5 hour Contract.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Hotz, type /accept job.");

    GettingJob[playerid] = 17;

}

else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,860.9663,-985.2528,34.6266))

  {

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Beggar, and get a 5 hour Contract.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Beggar, type /accept job.");

    GettingJob[playerid] = 18;

}

else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,-382.4435,-1438.8563,25.7279))

  {

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Farmer, and get a 5 hour Contract.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Farmer, type /accept job.");

    GettingJob[playerid] = 19;

}

else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2195.8325,-1973.5117,13.5589))

  {

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Garbage Man, and get a 5 hour Contract.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Garbage Man, type /accept job.");

    GettingJob[playerid] = 20;

}

  else

  {

      SendClientMessage(playerid, COLOR_WHITE, "You are not even near a place to get a Job !");

  }

}

else

{

    SendClientMessage(playerid, COLOR_WHITE, "You already have a Job, use /quitjob first !");

}

}//not connected

    return 1;

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.