[Pawno Help] /accept
#1

Hello,i added /handshake command in my gm from another gm...
Now i re writed all since all was adjusted to another gm not my,
But i guess i fail with some return fuction and i can't figure out how to make it work

Here is the problem,when i add part with /accept handshake
My whole /accept command don't work and on /accept job or wahtever command say the part from /accept handshake command the ''Nobody has offered you to shake hands.''

I added under that txt return 1; still don't work i tryed on every txt return 1; dont work also under HandshakeType[playerid] = 0;.

Here is the code

pawn Код:
else if(strcmp(tmp,"handshake",true) == 0)  
            {
                if(IsPlayerConnected(HandshakeOffer[playerid]))
                {
                    if(!IsPlayerInAnyVehicle(playerid))
                    {
                        if(ProxDetectorS(2.0, playerid, HandshakeOffer[playerid]))
                        {
                            format(string, sizeof(string), "* You have shaken %s's hand.", PlayerName(HandshakeOffer[playerid]));
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                            format(string, sizeof(string), "* %s has accepted the Handshake.", PlayerName(playerid));
                            SendClientMessage(HandshakeOffer[playerid], COLOR_LIGHTBLUE, string);
                            ClearAnimations(playerid);
                            ClearAnimations(HandshakeOffer[playerid]);
                            SetPlayerFacingPlayer(playerid, HandshakeOffer[playerid]);
                            SetPlayerFacingPlayer(HandshakeOffer[playerid], playerid);
                            if(HandshakeType[playerid] == 1)
                            {
                                ApplyAnimation(playerid, "GANGS","hndshkaa", 4.0,0,0,0,0,0);
                                ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkaa",4.0,0,0,0,0,0);
                            }
                            else if(HandshakeType[playerid] == 2)
                            {
                                ApplyAnimation(playerid,"GANGS","hndshkba",4.0,0,0,0,0,0);
                                ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkba",4.0,0,0,0,0,0);
                            }
                            else if(HandshakeType[playerid] == 3)
                            {
                                ApplyAnimation(playerid,"GANGS","hndshkda",4.0,0,0,0,0,0);
                                ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkda",4.0,0,0,0,0,0);
                            }
                            else if(HandshakeType[playerid] == 4)
                            {
                                ApplyAnimation(playerid,"GANGS","hndshkea",4.0,0,0,0,0,0);
                                ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkea",4.0,0,0,0,0,0);
                            }
                            else if(HandshakeType[playerid] == 5)
                            {
                                ApplyAnimation(playerid,"GANGS","hndshkfa",4.0,0,0,0,0,0);
                                ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkfa",4.0,0,0,0,0,0);
                            }
                            else if(HandshakeType[playerid] == 6)
                            {
                                ApplyAnimation(playerid,"GANGS","prtial_hndshk_biz_01",4.0,0,0,0,0,0);
                                ApplyAnimation(HandshakeOffer[playerid],"GANGS","prtial_hndshk_biz_01",4.0,0,0,0,0,0);
                            }
                            HandshakeOffer[playerid] = INVALID_PLAYER_ID;
                            HandshakeType[playerid] = 0;
                        }
                        else SendClientMessage(playerid, COLOR_GREY, "You must stay closer to the person you want to shake hands with.");
                       
                    }
                    else SendClientMessage(playerid, COLOR_GREY, "You can't perform this action while being in a vehicle.");
                   
                }
                else SendClientMessage(playerid, COLOR_GREY, "Nobody has offered you to shake hands.");
            }
Regards,
Niko
Reply
#2

try this
pawn Код:
else if(strcmp(tmp,"handshake",true) == 0)  
{
    if(IsPlayerConnected(HandshakeOffer[playerid]))
    {
        if(!IsPlayerInAnyVehicle(playerid))
        {
            if(ProxDetectorS(2.0, playerid, HandshakeOffer[playerid]))
            {
                format(string, sizeof(string), "* You have shaken %s's hand.", PlayerName(HandshakeOffer[playerid]));
                SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                format(string, sizeof(string), "* %s has accepted the Handshake.", PlayerName(playerid));
                SendClientMessage(HandshakeOffer[playerid], COLOR_LIGHTBLUE, string);
                ClearAnimations(playerid);
                ClearAnimations(HandshakeOffer[playerid]);
                SetPlayerFacingPlayer(playerid, HandshakeOffer[playerid]);
                SetPlayerFacingPlayer(HandshakeOffer[playerid], playerid);
                if(HandshakeType[playerid] == 1)
                {
                    ApplyAnimation(playerid, "GANGS","hndshkaa", 4.0,0,0,0,0,0);
                    ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkaa",4.0,0,0,0,0,0);
                }
                else if(HandshakeType[playerid] == 2)
                {
                    ApplyAnimation(playerid,"GANGS","hndshkba",4.0,0,0,0,0,0);
                    ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkba",4.0,0,0,0,0,0);
                }
                else if(HandshakeType[playerid] == 3)
                {
                    ApplyAnimation(playerid,"GANGS","hndshkda",4.0,0,0,0,0,0);
                    ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkda",4.0,0,0,0,0,0);
                }
                else if(HandshakeType[playerid] == 4)
                {
                    ApplyAnimation(playerid,"GANGS","hndshkea",4.0,0,0,0,0,0);
                    ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkea",4.0,0,0,0,0,0);
                }
                else if(HandshakeType[playerid] == 5)
                {
                    ApplyAnimation(playerid,"GANGS","hndshkfa",4.0,0,0,0,0,0);
                    ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkfa",4.0,0,0,0,0,0);
                }
                else if(HandshakeType[playerid] == 6)
                {
                    ApplyAnimation(playerid,"GANGS","prtial_hndshk_biz_01",4.0,0,0,0,0,0);
                    ApplyAnimation(HandshakeOffer[playerid],"GANGS","prtial_hndshk_biz_01",4.0,0,0,0,0,0);
                }
                HandshakeOffer[playerid] = INVALID_PLAYER_ID;
                HandshakeType[playerid] = 0;
            }
            else
            {
                return SendClientMessage(playerid, COLOR_GREY, "You must stay closer to the person you want to shake hands with.");
            }
           
        }
        else
        {
            return SendClientMessage(playerid, COLOR_GREY, "You can't perform this action while being in a vehicle.");
        }
       
    }
    else
    {
        return SendClientMessage(playerid, COLOR_GREY, "Nobody has offered you to shake hands.");
    }
    return 1;
}
Reply
#3

@rickisme,Same thing happen
Reply
#4

show me full code /accept command ?
Reply
#5

Код:
	if(strcmp(cmd,"/accept",true)==0)
    {
        if(IsPlayerConnected(playerid))
	    {
			new x_job[64];
			x_job = strtok(cmdtext, idx);
			if(!strlen(x_job)) {
				SendClientMessage(playerid, COLOR_WHITE, "|__________________ Accept __________________|");
				SendClientMessage(playerid, COLOR_WHITE, "USAGE: accept [name]");
				SendClientMessage(playerid, COLOR_GREY, "Available names: Death,Sex, Drugs, Repair, Lawyer, Job, Live, Refill, OwnableCar");
				SendClientMessage(playerid, COLOR_GREY, "Available names: Taxi, Bus, Boxing, Medic, Mechanic, Paper, Ticket, Pizza, Bodyguard");
				SendClientMessage(playerid, COLOR_WHITE, "|____________________________________________|");
				return 1;
			}
			if(!strcmp(x_job,"death",true))
			{
	        	if (IsDead[playerid] == 1)
	        	{
		   			new saystring[128], deathstring[128], name[28];
		   			GetPlayerName(playerid,name,sizeof(name));
		   			switch (random(2))
		   			{
		   				case 0:
		   				{
		   					format(saystring,sizeof(saystring),"%s mumbles: I can't hold more..", name);
		   					format(deathstring,sizeof(deathstring),"* %s closes his eyes, falling into death.", name);
						}
		   				case 1:
		   				{
		   					format(saystring,sizeof(saystring),"%s mumbles: Aghh.. It's cold.. I feel something.. A light...",name);
		   					format(deathstring,sizeof(deathstring),"* %s is now inmobilized, and dead.",name);
		   				}
		   			}
					ProxDetector(30, playerid, deathstring, COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK);
		   			ProxDetector(10, playerid, saystring, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
					KillTimer(AutoDeathTimer[playerid]);
					SafeGivePlayerMoney(playerid, -10000);
		   			IsDead[playerid] = 0;
		   			MedicBill[playerid] = 1;
		   			SpawnPlayer(playerid);
		   			return 1;
				}
				else
				{
				    SendClientMessage(playerid, COLOR_GREY,"You can't accept death if you're not dying.");
				    return 1;
				}
			}
			else if(strcmp(x_job,"divorce",true) == 0)
			{
			    if(DivorceOffer[playerid] < 999)
			    {
			        if(IsPlayerConnected(DivorceOffer[playerid]))
			        {
			            if(ProxDetectorS(10.0, playerid, DivorceOffer[playerid]))
						{
						    GetPlayerName(DivorceOffer[playerid], giveplayer, sizeof(giveplayer));

							format(string, sizeof(string), "* You have accepted %s's request to be his Marriage Witness.", giveplayer);
							SendClientMessage(playerid, COLOR_WHITE, string);
							format(string, sizeof(string), "* %s has accepted your request to be your Marriage Witness.", sendername);
							SendClientMessage(DivorceOffer[playerid], COLOR_WHITE, string);
							ClearMarriage(playerid);
							ClearMarriage(DivorceOffer[playerid]);
							PlayerInfo[playerid][pPhousekey] = 9999;
							PlayerInfo[playerid][pPbiskey] = 9999;
							return 1;
						}
						else
						{
						    SendClientMessage(playerid, COLOR_GREY, "   The player that sent you the Divorce Papers is not near you !");
						    return 1;
						}
			        }
				}
				else
				{
				    SendClientMessage(playerid, COLOR_GREY, "   No-one sent you any Divorce Papers !");
				    return 1;
				}
			}
			else if(strcmp(x_job,"witness",true) == 0)
			{
			    if(MarryWitnessOffer[playerid] < 999)
			    {
			        if(IsPlayerConnected(MarryWitnessOffer[playerid]))
			        {
			            if(ProxDetectorS(10.0, playerid, MarryWitnessOffer[playerid]))
						{
						    GetPlayerName(MarryWitnessOffer[playerid], giveplayer, sizeof(giveplayer));

							format(string, sizeof(string), "* You have accepted %s's request to be his Marriage Witness.", giveplayer);
							SendClientMessage(playerid, COLOR_WHITE, string);
							format(string, sizeof(string), "* %s has accepted your request to be your Marriage Witness.", sendername);
							SendClientMessage(MarryWitnessOffer[playerid], COLOR_WHITE, string);
							MarryWitness[MarryWitnessOffer[playerid]] = playerid;
							MarryWitnessOffer[playerid] = 999;
							return 1;
						}
						else
						{
						    SendClientMessage(playerid, COLOR_GREY, "   The player that requested you to be his Marriage Witness is not near you !");
						    return 1;
						}
			        }
				}
				else
				{
				    SendClientMessage(playerid, COLOR_GREY, "   No-one asked you to be his Marriage Witness !");
				    return 1;
				}
			}
	        else if(strcmp(x_job,"marriage",true) == 0)
			{
			    if(ProposeOffer[playerid] < 999)
			    {
			        if(!IsPlayerInRangeOfPoint(playerid, 10, 2232.3047,-1333.1543,23.9815))
			        {
			            SendClientMessage(playerid, COLOR_GREY, "   You are not at the Church in Jefferson !");
			            return 1;
			        }
			        if(IsPlayerConnected(ProposeOffer[playerid]))
			        {
			            if(ProxDetectorS(10.0, playerid, ProposeOffer[playerid]))
						{
						    if(MarryWitness[ProposeOffer[playerid]] == 999)
						    {
						        SendClientMessage(playerid, COLOR_GREY, "   The proposer doesn't have a Marriage Witness !");
						        return 1;
						    }
						    if(IsPlayerConnected(MarryWitness[ProposeOffer[playerid]]))
						    {
							    if(ProxDetectorS(12.0, ProposeOffer[playerid], MarryWitness[ProposeOffer[playerid]]))
								{
								    GetPlayerName(ProposeOffer[playerid], giveplayer, sizeof(giveplayer));

									format(string, sizeof(string), "* You have accepted %s's request to be your Husband.", giveplayer);
									SendClientMessage(playerid, COLOR_WHITE, string);
									format(string, sizeof(string), "* %s has accepted your request to be your Wife.", sendername);
									SendClientMessage(ProposeOffer[playerid], COLOR_WHITE, string);
									format(string, sizeof(string), "Priest: %s do you take %s as your lovely Husband? (type 'yes', anything else will reject the Marriage)", sendername, giveplayer);
									SendClientMessage(playerid, COLOR_WHITE, string);
									MarriageCeremoney[playerid] = 1;
									ProposedTo[ProposeOffer[playerid]] = playerid;
									GotProposedBy[playerid] = ProposeOffer[playerid];
									MarryWitness[ProposeOffer[playerid]] = 999;
									ProposeOffer[playerid] = 999;
									return 1;
								}
								else
								{
								    SendClientMessage(playerid, COLOR_GREY, "   The Marriage Witness is not near your proposer !");
								    return 1;
								}
							}
							return 1;
						}
						else
						{
						    SendClientMessage(playerid, COLOR_GREY, "   The player that proposed to you is not near you !");
						    return 1;
						}
			        }
				}
				else
				{
				    SendClientMessage(playerid, COLOR_GREY, "   No-one Proposed to you !");
				    return 1;
				}
			}
			else if(strcmp(x_job,"Pizza",true) == 0)
   			{
       			if(PlayerInfo[playerid][pJob] != 17)
       			{
           			SendClientMessage(playerid, COLOR_GREY, "   You are not a Pizza Boy!");
        			return 1;
       			}
        		if(PizzaCallTime[playerid] > 0)
             	{
					SendClientMessage(playerid, COLOR_GREY, "   You have already accepted a Pizza order!");
        			return 1;
             	}
             	if(PizzaCall < 999)
             	{
					if(IsPlayerConnected(PizzaCall))
					{

                  		GetPlayerName(PizzaCall, giveplayer, sizeof(giveplayer));
                  		format(string, sizeof(string), "* You have accepted the Pizza Order from %s, you have 90 seconds to get there.",giveplayer);
      					SendClientMessage(playerid, COLOR_WHITE, string);
      					SendClientMessage(playerid, COLOR_WHITE, "* After the 90 seconds the Red Marker will dissapear.");
                        format(string, sizeof(string), "* Pizza boy %s has accepted your Pizza Order please wait at your current Position.",sendername);
      					SendClientMessage(PizzaCall, COLOR_WHITE, string);
      					new Float:X,Float:Y,Float:Z;
      					GetPlayerPos(PizzaCall, X, Y, Z);
      					SetPlayerCheckpoint(playerid, X, Y, Z, 5);
      					GameTextForPlayer(playerid, "~w~Pizza Caller~n~~r~Goto redmarker", 5000, 1);
      					PizzaCallTime[playerid] = 1;
      					PizzaCall = 999;
						return 1;
     				}
             	}
             	else
             	{
              		SendClientMessage(playerid, COLOR_GREY, "   No-one ordered a Pizza yet!");
        			return 1;
             	}
   			}
			else if(strcmp(x_job,"ticket",true) == 0)
			{
			    if(TicketOffer[playerid] < 999)
			    {
			        if(IsPlayerConnected(TicketOffer[playerid]))
			        {
			            if (ProxDetectorS(5.0, playerid, TicketOffer[playerid]))
						{
				           	GetPlayerName(TicketOffer[playerid], giveplayer, sizeof(giveplayer));

							format(string, sizeof(string), "* You have paid the Ticket of $%d to Officer %s.", TicketMoney[playerid], giveplayer);
							SendClientMessage(playerid, COLOR_WHITE, string);
							format(string, sizeof(string), "* %s has paid your Ticket of $%d.", sendername, TicketMoney[playerid]);
							SendClientMessage(TicketOffer[playerid], COLOR_WHITE, string);
							SafeGivePlayerMoney(playerid, - TicketMoney[playerid]);
							SafeGivePlayerMoney(TicketOffer[playerid], TicketMoney[playerid]);
							TicketOffer[playerid] = 999;
							TicketMoney[playerid] = 0;
							return 1;
						}
						else
						{
						    SendClientMessage(playerid, COLOR_GREY, "   The Officer is not near you !");
						    return 1;
						}
			        }
				}
				else
				{
				    SendClientMessage(playerid, COLOR_GREY, "   No-one offered you a Ticket !");
				    return 1;
				}
			}
			else if(strcmp(x_job,"paper",true) == 0)
			{
			    if(PaperOffer[playerid] < 999)
			    {
			        if(IsPlayerConnected(PaperOffer[playerid]))
			        {
			            if(BringingPaper[PaperOffer[playerid]] > 0)
			            {
			                if (ProxDetectorS(5.0, playerid, PaperOffer[playerid]))
							{
				            	GetPlayerName(PaperOffer[playerid], giveplayer, sizeof(giveplayer));

								format(string, sizeof(string), "* You have accepted a Newspaper from Paper Boy %s (use /read paper, to read).", giveplayer);
								SendClientMessage(playerid, COLOR_WHITE, string);
								format(string, sizeof(string), "* %s has accepted your Newspaper.", sendername);
								SendClientMessage(PaperOffer[playerid], COLOR_WHITE, string);
								format(string, sizeof(string), "%s", Paper[PaperOffer[playerid]][pTitle]);
								strmid(Paper[playerid][pTitle], string, 0, strlen(string), 255);
								format(string, sizeof(string), "%s", Paper[PaperOffer[playerid]][pMaker]);
								strmid(Paper[playerid][pMaker], string, 0, strlen(string), 255);
								format(string, sizeof(string), "%s", Paper[PaperOffer[playerid]][pLine1]);
								strmid(Paper[playerid][pLine1], string, 0, strlen(string), 255);
								format(string, sizeof(string), "%s", Paper[PaperOffer[playerid]][pLine2]);
								strmid(Paper[playerid][pLine2], string, 0, strlen(string), 255);
								format(string, sizeof(string), "%s", Paper[PaperOffer[playerid]][pLine3]);
								strmid(Paper[playerid][pLine3], string, 0, strlen(string), 255);
								format(string, sizeof(string), "%s", Paper[PaperOffer[playerid]][pLine4]);
								strmid(Paper[playerid][pLine4], string, 0, strlen(string), 255);
								format(string, sizeof(string), "%s", Paper[PaperOffer[playerid]][pLine5]);
								strmid(Paper[playerid][pLine5], string, 0, strlen(string), 255);
								format(string, sizeof(string), "%s", Paper[PaperOffer[playerid]][pLine6]);
								strmid(Paper[playerid][pLine6], string, 0, strlen(string), 255);
								format(string, sizeof(string), "%s", Paper[PaperOffer[playerid]][pLine7]);
								strmid(Paper[playerid][pLine7], string, 0, strlen(string), 255);
								GotPaper[playerid] = 1;
								PaperOffer[playerid] = 999;
								return 1;
							}
							else
							{
							    SendClientMessage(playerid, COLOR_GREY, "   The Paper Boy is not near you !");
							    return 1;
							}
						}
			        }
				}
				else
				{
				    SendClientMessage(playerid, COLOR_GREY, "   No-one offered you a Newspaper !");
				    return 1;
				}
			}
			else if(strcmp(tmp,"handshake",true) == 0)  // 
			{
		        if(IsPlayerConnected(HandshakeOffer[playerid]))
		        {
		            if(!IsPlayerInAnyVehicle(playerid))
		            {
		            	if(ProxDetectorS(2.0, playerid, HandshakeOffer[playerid]))
						{
							format(string, sizeof(string), "* You have shaken %s's hand.", PlayerName(HandshakeOffer[playerid]));
							SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
							format(string, sizeof(string), "* %s has accepted the Handshake.", PlayerName(playerid));
							SendClientMessage(HandshakeOffer[playerid], COLOR_LIGHTBLUE, string);
							ClearAnimations(playerid);
							ClearAnimations(HandshakeOffer[playerid]);
							SetPlayerFacingPlayer(playerid, HandshakeOffer[playerid]);
							SetPlayerFacingPlayer(HandshakeOffer[playerid], playerid);
							if(HandshakeType[playerid] == 1)
							{
								ApplyAnimation(playerid, "GANGS","hndshkaa", 4.0,0,0,0,0,0);
								ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkaa",4.0,0,0,0,0,0);
							}
							else if(HandshakeType[playerid] == 2)
							{
								ApplyAnimation(playerid,"GANGS","hndshkba",4.0,0,0,0,0,0);
								ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkba",4.0,0,0,0,0,0);
							}
							else if(HandshakeType[playerid] == 3)
							{
								ApplyAnimation(playerid,"GANGS","hndshkda",4.0,0,0,0,0,0);
								ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkda",4.0,0,0,0,0,0);
							}
							else if(HandshakeType[playerid] == 4)
							{
								ApplyAnimation(playerid,"GANGS","hndshkea",4.0,0,0,0,0,0);
								ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkea",4.0,0,0,0,0,0);
							}
							else if(HandshakeType[playerid] == 5)
							{
								ApplyAnimation(playerid,"GANGS","hndshkfa",4.0,0,0,0,0,0);
								ApplyAnimation(HandshakeOffer[playerid],"GANGS","hndshkfa",4.0,0,0,0,0,0);
							}
							else if(HandshakeType[playerid] == 6)
							{
							    ApplyAnimation(playerid,"GANGS","prtial_hndshk_biz_01",4.0,0,0,0,0,0);
							    ApplyAnimation(HandshakeOffer[playerid],"GANGS","prtial_hndshk_biz_01",4.0,0,0,0,0,0);
							}
							HandshakeOffer[playerid] = INVALID_PLAYER_ID;
							HandshakeType[playerid] = 0;
						}
						else SendClientMessage(playerid, COLOR_GREY, "You must stay closer to the person you want to shake hands with.");
					}
					else SendClientMessage(playerid, COLOR_GREY, "You can't perform this action while being in a vehicle.");
				}
				else SendClientMessage(playerid, COLOR_GREY, "Nobody has offered you to shake hands.");
			}
			else if(strcmp(x_job,"boxing",true) == 0)
			{
			    if(BoxOffer[playerid] < 999)
			    {
			        if(IsPlayerConnected(BoxOffer[playerid]))
			        {
			            new points;
			            new mypoints;
			            GetPlayerName(BoxOffer[playerid], giveplayer, sizeof(giveplayer));

			            new level = PlayerInfo[BoxOffer[playerid]][pBoxSkill];
						if(level >= 0 && level <= 50) { points = 40; }
						else if(level >= 51 && level <= 100) { points = 50; }
						else if(level >= 101 && level <= 200) { points = 60; }
						else if(level >= 201 && level <= 400) { points = 70; }
						else if(level >= 401) { points = 80; }
						if(PlayerInfo[playerid][pJob] == 12)
						{
							new clevel = PlayerInfo[playerid][pBoxSkill];
							if(clevel >= 0 && clevel <= 50) { mypoints = 40; }
							else if(clevel >= 51 && clevel <= 100) { mypoints = 50; }
							else if(clevel >= 101 && clevel <= 200) { mypoints = 60; }
							else if(clevel >= 201 && clevel <= 400) { mypoints = 70; }
							else if(clevel >= 401) { mypoints = 80; }
						}
						else
						{
						    mypoints = 30;
						}
						format(string, sizeof(string), "* You have accepted the Boxing Challenge from %s, and will fight with %d Health.",giveplayer,mypoints);
						SendClientMessage(playerid, COLOR_WHITE, string);
						format(string, sizeof(string), "* %s has accepted your Boxing Challenge Request, you will fight with %d Health.",sendername,points);
						SendClientMessage(BoxOffer[playerid], COLOR_WHITE, string);
						SetPlayerHealth(playerid, mypoints);
						SetPlayerHealth(BoxOffer[playerid], points);
						SafeSetPlayerInterior(playerid, 5); SafeSetPlayerInterior(BoxOffer[playerid], 5);
						SafeSetPlayerPos(playerid, 762.9852,2.4439,1001.5942); SetPlayerFacingAngle(playerid, 131.8632);
						SafeSetPlayerPos(BoxOffer[playerid], 758.7064,-1.8038,1001.5942); SetPlayerFacingAngle(BoxOffer[playerid], 313.1165);
						TogglePlayerControllable(playerid, 0); TogglePlayerControllable(BoxOffer[playerid], 0);
						GameTextForPlayer(playerid, "~r~Waiting", 3000, 1); GameTextForPlayer(BoxOffer[playerid], "~r~Waiting", 3000, 1);
						new name[MAX_PLAYER_NAME];
						new dstring[MAX_PLAYER_NAME];
						new wstring[MAX_PLAYER_NAME];
						GetPlayerName(playerid, name, sizeof(name));
						format(dstring, sizeof(dstring), "%s", name);
						strmid(wstring, dstring, 0, strlen(dstring), 255);
						if(strcmp(Titel[TitelName] ,wstring, true ) == 0 )
						{
						    format(string, sizeof(string), "Boxing News: Boxing Champion %s will fight VS %s, in 60 seconds (Gantom Gym).",  sendername, giveplayer);
							OOCOff(COLOR_WHITE,string);
							TBoxer = playerid;
							BoxDelay = 60;
						}
						GetPlayerName(BoxOffer[playerid], name, sizeof(name));
						format(dstring, sizeof(dstring), "%s", name);
						strmid(wstring, dstring, 0, strlen(dstring), 255);
						if(strcmp(Titel[TitelName] ,wstring, true ) == 0 )
						{
						    format(string, sizeof(string), "Boxing News: Boxing Champion %s will fight VS %s, in 60 seconds (Gantom Gym).",  giveplayer, sendername);
							OOCOff(COLOR_WHITE,string);
							TBoxer = BoxOffer[playerid];
							BoxDelay = 60;
						}
						BoxWaitTime[playerid] = 1; BoxWaitTime[BoxOffer[playerid]] = 1;
						if(BoxDelay < 1) { BoxDelay = 20; }
						InRing = 1;
						Boxer1 = BoxOffer[playerid];
						Boxer2 = playerid;
						PlayerBoxing[playerid] = 1;
						PlayerBoxing[BoxOffer[playerid]] = 1;
						BoxOffer[playerid] = 999;
						return 1;
			        }
			        return 1;
			    }
				else
				{
				    SendClientMessage(playerid, COLOR_GREY, "   No-one offered you a Boxing Challenge !");
				    return 1;
				}
			}
			else if(strcmp(x_job,"taxi",true) == 0)
			{
			    if(TransportDuty[playerid] != 1)
			    {
			        SendClientMessage(playerid, COLOR_GREY, "   You are not a Taxi Driver !");
				    return 1;
			    }
	            if(TaxiCallTime[playerid] > 0)
	            {
	                SendClientMessage(playerid, COLOR_GREY, "   You have already accepted a Taxi Call !");
				    return 1;
	            }
	            if(TaxiCall < 999)
	            {
	                if(IsPlayerConnected(TaxiCall))
	                {

	                	GetPlayerName(TaxiCall, giveplayer, sizeof(giveplayer));
	                	format(string, sizeof(string), "* You have accepted the Taxi Call from %s, you will see the marker untill you have reached it.",giveplayer);
						SendClientMessage(playerid, COLOR_WHITE, string);
                        format(string, sizeof(string), "* Taxi Driver %s has accepted your Taxi Call please wait at your current Position.",sendername);
						SendClientMessage(TaxiCall, COLOR_WHITE, string);
						GameTextForPlayer(playerid, "~w~Taxi Caller~n~~r~Goto redmarker", 5000, 1);
						TaxiCallTime[playerid] = 1;
						TaxiAccepted[playerid] = TaxiCall;
						TaxiCall = 999;
						return 1;
					}
	            }
	            else
	            {
	                SendClientMessage(playerid, COLOR_GREY, "   No-one called for a Taxi yet !");
			    	return 1;
	            }
			}
			else if(strcmp(x_job,"bus",true) == 0)
			{
			    if(TransportDuty[playerid] != 2)
			    {
			        SendClientMessage(playerid, COLOR_GREY, "   You are not a Bus Driver !");
				    return 1;
			    }
	            if(BusCallTime[playerid] > 0)
	            {
	                SendClientMessage(playerid, COLOR_GREY, "   You have already accepted a Bus Call !");
				    return 1;
	            }
	            if(BusCall < 999)
	            {
	                if(IsPlayerConnected(BusCall))
	                {

	                	GetPlayerName(BusCall, giveplayer, sizeof(giveplayer));
	                	format(string, sizeof(string), "* You have accepted the Bus Call from %s, you will see the marker untill you have reached it.",giveplayer);
						SendClientMessage(playerid, COLOR_WHITE, string);
                        format(string, sizeof(string), "* Bus Driver %s has accepted your Bus Call please wait at your current Position.",sendername);
						SendClientMessage(BusCall, COLOR_WHITE, string);
						new Float:X,Float:Y,Float:Z;
						GetPlayerPos(BusCall, X, Y, Z);
						SetPlayerCheckpoint(playerid, X, Y, Z, 5);
						GameTextForPlayer(playerid, "~w~Bus Caller~n~~r~Goto redmarker", 5000, 1);
						BusCallTime[playerid] = 1;
						BusAccepted[playerid] = BusCall;
						BusCall = 999;
						return 1;
					}
	            }
	            else
	            {
	                SendClientMessage(playerid, COLOR_GREY, "   No-one called for a Bus yet !");
			    	return 1;
	            }
			}
			else if(strcmp(x_job,"medic",true) == 0)
			{
			    if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
			    {
		            if(MedicCallTime[playerid] > 0)
		            {
		                SendClientMessage(playerid, COLOR_GREY, "   You have already accepted a Medic Call !");
					    return 1;
		            }

		            if(MedicCall < 999)
		            {
		                if(IsPlayerConnected(MedicCall))
		                {

		                	GetPlayerName(MedicCall, giveplayer, sizeof(giveplayer));
		                	format(string, sizeof(string), "* You have accepted the Medic Call from %s, you have 30 Seconds to get there.",giveplayer);
							SendClientMessage(playerid, COLOR_WHITE, string);
							SendClientMessage(playerid, COLOR_WHITE, "* After the 30 Seconds the Red Marker will dissapear.");
	                        format(string, sizeof(string), "* Medic %s has accepted your Medic Call please wait at your current Position.",sendername);
							SendClientMessage(MedicCall, COLOR_WHITE, string);
							new Float:X,Float:Y,Float:Z;
							GetPlayerPos(MedicCall, X, Y, Z);
							SetPlayerCheckpoint(playerid, X, Y, Z, 5);
							GameTextForPlayer(playerid, "~w~Medic Caller~n~~r~Goto redmarker", 5000, 1);
							MedicCallTime[playerid] = 1;
							MedicCall = 999;
							return 1;
						}
		            }
		            else
		            {
		                SendClientMessage(playerid, COLOR_GREY, "   No-one called for a Medic yet !");
				    	return 1;
		            }
				}
				else
				{
				    SendClientMessage(playerid, COLOR_GREY, "   You are not a Medic !");
				    return 1;
				}
			}
			else if(strcmp(x_job,"mechanic",true) == 0)
			{
			    if(JobDuty[playerid] == 0)
			    {
			        SendClientMessage(playerid, COLOR_GREY, "You are not on mechanic duty !");
			        return 1;
				}
		    	if(PlayerInfo[playerid][pMember] != 10 && PlayerInfo[playerid][pLeader] != 10)
		    	{
		    	    SendClientMessage(playerid, COLOR_GREY, "   You are not a Car Mechanic !");
				    return 1;
		    	}
            	if(MechanicCallTime[playerid] > 0)
            	{
            	    SendClientMessage(playerid, COLOR_GREY, "   You have already accepted a Mechanic Call !");
				    return 1;
            	}
            	if(MechanicCall < 999)
            	{
            	    if(IsPlayerConnected(MechanicCall))
            	    {
	                	GetPlayerName(MechanicCall, giveplayer, sizeof(giveplayer));
	                	format(string, sizeof(string), "* You have accepted the Mechanic Call from %s, you have 90 Seconds to get there.",giveplayer);
						SendClientMessage(playerid, COLOR_WHITE, string);
						SendClientMessage(playerid, COLOR_WHITE, "* After the 90 Seconds the Red Marker will dissapear.");
                        format(string, sizeof(string), "* Car Mechanic %s has accepted your Mechanic Call please wait at your current Position.",sendername);
						SendClientMessage(MechanicCall, COLOR_WHITE, string);
						new Float:X,Float:Y,Float:Z;
						GetPlayerPos(MechanicCall, X, Y, Z);
						SetPlayerCheckpoint(playerid, X, Y, Z, 5);
						GameTextForPlayer(playerid, "~w~Mechanic Caller~n~~r~Goto redmarker", 5000, 1);
						MechanicCallTime[playerid] = 1;
						MechanicCall = 999;
						return 1;
					}
	            }
	            else
	            {
	                SendClientMessage(playerid, COLOR_GREY, "   No-one called for a Car Mechanic yet !");
			    	return 1;
	            }
			}
            else if(strcmp(x_job,"job",true) == 0)
			{
			    if(GettingJob[playerid] > 0)
			    {
			        SendClientMessage(playerid, COLOR_WHITE, "* Now that you have confirmed you want the Job, you got a 5 hour Contract.");
			        SendClientMessage(playerid, COLOR_WHITE, "* Congratulations with your new Job, type /help to see your new command.");
			        PlayerInfo[playerid][pJob] = GettingJob[playerid];
			        GettingJob[playerid] = 0;
			        SetPlayerToTeamColor(playerid);
			        if (PlayerInfo[playerid][pAchievement17] == 0)
					{
					    TextDrawSetString(Textdraw64[playerid],"Congratulations! ~n~~n~You have earned the medal ~n~~b~Finally, a Job!! (17) ~n~~n~~w~you won ~g~$333");
	    				ShowAchievement(playerid);
						SafeGivePlayerMoney(playerid, 333);
						PlayerInfo[playerid][pAchievement17] = 1;
					}
					switch(PlayerInfo[playerid][pJob])
	    			{
	    			    case 1:
	    			    {
	    			        ClearChatbox(playerid, 3);
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= DETECTIVE ==========================================")
	    			        SendClientMessage(playerid, COLOR_WHITE,"Your job will be to find people for a determined amount of Price.In order to achieve that, you must");
	    			        SendClientMessage(playerid, COLOR_WHITE,"use the command /find <id> to find any person in the map, a checkpoint will appear and will dissapear.");
	    			        SendClientMessage(playerid, COLOR_WHITE,"You can advertise that you're willing to help people via /advertise, it will cost you 50$ Per advertise");
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= DETECTIVE ==========================================")
	    			    }
	    			    case 2:
	    			    {
	    			        ClearChatbox(playerid, 3);
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= LAWYER ==========================================")
	    			        SendClientMessage(playerid, COLOR_WHITE,"Your job will be to release people from jail for a determined amount of Price.In order to achieve that, you must");
	    			        SendClientMessage(playerid, COLOR_WHITE,"use the command /free <id> to release any person in the jail, the person's jail time will get decreased.");
	    			        SendClientMessage(playerid, COLOR_WHITE,"You can advertise that you're willing to help people via /advertise, it will cost you 50$ Per advertise");
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= LAWYER ==========================================")
	    			    }
	    			    case 3:
	    			    {
	    			        ClearChatbox(playerid, 3);
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= WHORE ==========================================")
	    			        SendClientMessage(playerid, COLOR_WHITE,"Your job will be to sex with people for a determined amount of Price. In order to achieve that, you must");
	    			        SendClientMessage(playerid, COLOR_WHITE,"use the command /sex <id> to release any person in the jail, the person's health time will get increased.");
	    			        SendClientMessage(playerid, COLOR_WHITE,"You can advertise that you're willing to help people via /advertise, it will cost you 50$ Per advertise");
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= WHORE ==========================================")
	    			    }
	    			    case 4:
	    			    {
	    			        ClearChatbox(playerid, 3);
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= DRUG DEALER ==========================================")
	    			        SendClientMessage(playerid, COLOR_WHITE,"Your job will be to sell drugs to people for a determined amount of Price. In order to achieve that, you must");
	    			        SendClientMessage(playerid, COLOR_WHITE,"use the command /selldrugs <id> to sell to any person, you must refill your drug stock at the drug bank.");
	    			        SendClientMessage(playerid, COLOR_WHITE,"You can advertise that you're willing to help people via /advertise, it will cost you 50$ Per advertise");
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= DRUG DEALER ==========================================")
	    			    }
	    			    case 6:
	    			    {
	    			        ClearChatbox(playerid, 3);
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= WAITER ==========================================")
	    			        SendClientMessage(playerid, COLOR_WHITE,"Your job will be to cook for to people for a determined amount of Price. In order to achieve that, you must");
	    			        SendClientMessage(playerid, COLOR_WHITE,"use the command /showmenu to cook a determined food, you must get your cooking uniform at any food place.");
	    			        SendClientMessage(playerid, COLOR_WHITE,"You can advertise that you're willing to help people via /advertise, it will cost you 50$ Per advertise");
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= WAITER ==========================================")
	    			    }
	    			    case 7:
	    			    {
	    			        ClearChatbox(playerid, 3);
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= MECHANIC ==========================================")
	    			        SendClientMessage(playerid, COLOR_WHITE,"Your job will be to fix people's cars for a determined amount of Price. In order to achieve that, you must");
	    			        SendClientMessage(playerid, COLOR_WHITE,"use the commands /repair /refill /duty and /tow to do any of those actions, you must first /duty to use the commands.");
	    			        SendClientMessage(playerid, COLOR_WHITE,"You can advertise that you're willing to help people via /advertise, it will cost you 50$ Per advertise");
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= MECHANIC ==========================================")
	    			    }
	    			    case 8:
	    			    {
	    			        ClearChatbox(playerid, 3);
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= BODYGUARD ==========================================")
	    			        SendClientMessage(playerid, COLOR_WHITE,"Your job will be to protect people for a determined amount of Price. In order to achieve that, you must");
	    			        SendClientMessage(playerid, COLOR_WHITE,"use the command /guard to do equip with 100'/. of armour to the client, you must be near your client.");
	    			        SendClientMessage(playerid, COLOR_WHITE,"You can advertise that you're willing to help people via /advertise, it will cost you 50$ Per advertise");
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= BODYGUARD ==========================================")
	    			    }
	    			    case 10:
	    			    {
	    			        ClearChatbox(playerid, 3);
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= CAR DEALER ==========================================")
	    			        SendClientMessage(playerid, COLOR_WHITE,"Your job will be to sell cars to people for a determined amount of Price. In order to achieve that, you must");
	    			        SendClientMessage(playerid, COLOR_WHITE,"use the command /sellcar to do sell (in roleplaying methods) a car to your client..");
	    			        SendClientMessage(playerid, COLOR_WHITE,"You can advertise that you're willing to help people via /advertise, it will cost you 50$ Per advertise");
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= CAR DEALER ==========================================")
	    			    }
	    			    case 11:
	    			    {
	    			        ClearChatbox(playerid, 3);
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= STUNTSMAN ==========================================")
	    			        SendClientMessage(playerid, COLOR_WHITE,"Your job will be to make stunts with your bike or cars. In order to achieve that, you must");
	    			        SendClientMessage(playerid, COLOR_WHITE,"use the command /startstunt to enable the stunt bonus for you then you'll have to do stunts.");
	    			        SendClientMessage(playerid, COLOR_WHITE,"You can advertise that you're willing to help people via /advertise, it will cost you 50$ Per advertise");
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= STUNTSMAN ==========================================")
	    			    }
	    			    case 12:
	    			    {
	    			        ClearChatbox(playerid, 3);
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= BOXER ==========================================")
	    			        SendClientMessage(playerid, COLOR_WHITE,"Your job will be to make fight with other boxers at the gym for the title, in order to achieve that you must");
	    			        SendClientMessage(playerid, COLOR_WHITE,"use the command /fight to start a fight with other boxer. The more fights winned, better chances of winning title.");
	    			        SendClientMessage(playerid, COLOR_WHITE,"You can advertise that you're willing to help people via /advertise, it will cost you 50$ Per advertise");
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= BOXER ==========================================")
	    			    }
	    			    case 13:
	    			    {
	    			        ClearChatbox(playerid, 3);
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= TAXI DRIVER ==========================================")
	    			        SendClientMessage(playerid, COLOR_WHITE,"Your job will be to make take the people to their destination with a taxi, in order to achieve that you must");
	    			        SendClientMessage(playerid, COLOR_WHITE,"use the command /fare to set the ride price, then when some clients gets off the taxi you will receive the fare.");
	    			        SendClientMessage(playerid, COLOR_WHITE,"You can advertise that you're willing to help people via /advertise, it will cost you 50$ Per advertise");
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= TAXI DRIVER ==========================================")
	    			    }
	    			    case 14:
	    			    {
	    			        ClearChatbox(playerid, 3);
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= BUS DRIVER ==========================================")
	    			        SendClientMessage(playerid, COLOR_WHITE,"Your job will be to make take the people to their destination with a bus, in order to achieve that you must");
	    			        SendClientMessage(playerid, COLOR_WHITE,"use the command /fare to set the ride price, then when some clients gets off the taxi you will receive the fare.");
	    			        SendClientMessage(playerid, COLOR_WHITE,"You can advertise that you're willing to help people via /advertise, it will cost you 50$ Per advertise");
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= BUS DRIVER ==========================================")
	    			    }
	    			    case 15:
	    			    {
	    			        ClearChatbox(playerid, 3);
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= PAPER BOY ==========================================")
	    			        SendClientMessage(playerid, COLOR_WHITE,"Your job will be to deliver the papers from the ABC Studio, in order to achieve that you must");
	    			        SendClientMessage(playerid, COLOR_WHITE,"use the command /deliver to start, then you must bring the papers to the people and the bizzes.");
	    			        SendClientMessage(playerid, COLOR_WHITE,"You can advertise that you're willing to help people via /advertise, it will cost you 50$ Per advertise");
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= PAPER BOY ==========================================")
	    			    }
	    			    case 16:
	    			    {
	    			        ClearChatbox(playerid, 3);
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= TRUCKER ==========================================")
	    			        SendClientMessage(playerid, COLOR_WHITE,"Your job will be to deliver products from the Truckers HQ, in order to achieve that you must");
	    			        SendClientMessage(playerid, COLOR_WHITE,"use the command /load, you must buy the products at RS Houling, at Flint county intersection.");
	    			        SendClientMessage(playerid, COLOR_WHITE,"You can advertise that you're willing to help people via /advertise, it will cost you 50$ Per advertise");
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= TRUCKER ==========================================")
	    			    }
	    			    case 17:
	    			    {
	    			        ClearChatbox(playerid, 3);
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= PIZZA BOY ==========================================")
	    			        SendClientMessage(playerid, COLOR_WHITE,"Your job will be to deliver pizzas from the pizza stack at idlewood, in order to achieve that you must");
	    			        SendClientMessage(playerid, COLOR_WHITE,"use the command /duty and /sellpizza, you must refill your stock at The pizza Stack, in idlewood LS.");
	    			        SendClientMessage(playerid, COLOR_WHITE,"You can advertise that you're willing to help people via /advertise, it will cost you 50$ Per advertise");
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= PIZZA BOY ==========================================")
	    			    }
        				case 18:
	    			    {
	    			        ClearChatbox(playerid, 3);
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= FARMER ==========================================")
	    			        SendClientMessage(playerid, COLOR_WHITE,"Your job will be to collect products from the farm at Flint Range, in order to achieve that you must");
	    			        SendClientMessage(playerid, COLOR_WHITE,"use the command /startharvest and /stopharvest, you must use one of the harvesters at the farm in flint rage.");
	    			        SendClientMessage(playerid, COLOR_WHITE,"You can advertise that you're willing to help people via /advertise, it will cost you 50$ Per advertise");
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= FARMER ==========================================")
	    			    }
	    			    case 19:
	    			    {
	    			        ClearChatbox(playerid, 3);
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= FARMER ==========================================")
	    			        SendClientMessage(playerid, COLOR_WHITE,"Your job will be to collect drugs from the farm at Blueberry Accress, in order to achieve that you must");
	    			        SendClientMessage(playerid, COLOR_WHITE,"use the command /startdrugharvest and /stopdrugharvest, you must use one of the harvesters at the farm in blueberry.");
	    			        SendClientMessage(playerid, COLOR_WHITE,"You can advertise that you're willing to help people via /advertise, it will cost you 50$ Per advertise");
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= FARMER ==========================================")
	    			    }
	    			    case 20:
	    			    {
	    			        ClearChatbox(playerid, 3);
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= DRUGS SMUGGLER ==========================================")
	    			        SendClientMessage(playerid, COLOR_WHITE,"Your job will be to collect drugs from the farm at Blueberry Accress, and then sell them, to do this that you must");
	    			        SendClientMessage(playerid, COLOR_WHITE,"use the command /smuggledrugs and /selldrugs, you must use one of the smuggling cars at the back hospital, in market.");
	    			        SendClientMessage(playerid, COLOR_WHITE,"You can advertise that you're willing to help people via /advertise, it will cost you 50$ Per advertise");
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= DRUGS SMUGGLER ==========================================")
	    			    }
	    			    case 21:
	    			    {
	    			        ClearChatbox(playerid, 3);
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= MATERIALS SMUGGLER ==========================================")
	    			        SendClientMessage(playerid, COLOR_WHITE,"Your job will be to collect materials from the bank at Blueberry, and then sell them, to do this that you must");
	    			        SendClientMessage(playerid, COLOR_WHITE,"use the command /smugglemats and /sellmats, you must deliver the mats to the materials bank at ocean docks factory.");
	    			        SendClientMessage(playerid, COLOR_WHITE,"You can advertise that you're willing to help people via /advertise, it will cost you 50$ Per advertise");
	    			        SendClientMessage(playerid, COLOR_GREEN,"================================================= MATERIALS SMUGGLER ==========================================")
	    			    }
                        case 35:
	    			    {
	    			        ClearChatbox(playerid, 3);
							//editovanjeovo
							//SendClientMessage(playerid, COLOR_GREEN,"================================================= MATERIALS SMUGGLER ==========================================")
	    			        //SendClientMessage(playerid, COLOR_WHITE,"Your job will be to collect materials from the bank at Blueberry, and then sell them, to do this that you must");
	    			        //SendClientMessage(playerid, COLOR_WHITE,"use the command /smugglemats and /sellmats, you must deliver the mats to the materials bank at ocean docks factory.");
	    			        //SendClientMessage(playerid, COLOR_WHITE,"You can advertise that you're willing to help people via /advertise, it will cost you 50$ Per advertise");
	    			        //SendClientMessage(playerid, COLOR_GREEN,"================================================= MATERIALS SMUGGLER ==========================================")
	    			    }
					}
			        return 1;
			    }
			    else
			    {
			        SendClientMessage(playerid, COLOR_GREY, "   You haven't even been at a Job place yet!");
			        return 1;
			    }
			}
			else if(strcmp(x_job,"refill",true) == 0)
			{
			    if(RefillOffer[playerid] < 999)
			    {
			        if(IsPlayerConnected(RefillOffer[playerid]))
			        {
			            if(GetPlayerMoney(playerid) > RefillPrice[playerid])
			            {
			                GetPlayerName(RefillOffer[playerid], giveplayer, sizeof(giveplayer));

			                new car = gLastCar[playerid];
			                new fuel;
			                PlayerInfo[RefillOffer[playerid]][pMechSkill] ++;
			                if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 50)
							{ SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 2, you can add more Fuel to any Players Cars."); }
							else if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 100)
							{ SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 3, you can add more Fuel to any Players Cars."); }
							else if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 200)
							{ SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 4, you can add more Fuel to any Players Cars."); }
							else if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 400)
							{ SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 5, you can add more Fuel to any Players Cars."); }
							new level = PlayerInfo[RefillOffer[playerid]][pMechSkill];
							if(level >= 0 && level <= 50)
							{ fuel = 15; }
							else if(level >= 51 && level <= 100)
							{ fuel = 40; }
							else if(level >= 101 && level <= 200)
							{ fuel = 60; }
							else if(level >= 201 && level <= 400)
							{ fuel = 80; }
							else if(level >= 401)
							{ fuel = 100; }
			                format(string, sizeof(string), "* You refilled your car with %d%, for $%d by Car Mechanic %s.",fuel,RefillPrice[playerid],giveplayer);
							SendClientMessage(playerid, COLOR_WHITE, string);
							format(string, sizeof(string), "* You refilled %s's car with %d%, the $%d has been added to your PayCheck.",sendername,fuel,RefillPrice[playerid]);
							SendClientMessage(RefillOffer[playerid], COLOR_WHITE, string);
							PlayerInfo[RefillOffer[playerid]][pPayCheck] += RefillPrice[playerid] * 5;
							SafeGivePlayerMoney(playerid, -RefillPrice[playerid]);
							if(Gas[car] < 110) { Gas[car] += fuel; }
					        RefillOffer[playerid] = 999;
							RefillPrice[playerid] = 0;
							return 1;
			            }
						else
						{
						    SendClientMessage(playerid, COLOR_GREY, "   You cant afford the Refill !");
						    return 1;
						}
			        }
			        return 1;
			    }
				else
				{
				    SendClientMessage(playerid, COLOR_GREY, "   No-one offered to Refill your Car !");
				    return 1;
				}
			}
			else if(strcmp(x_job,"live",true) == 0)
			{
			    if(LiveOffer[playerid] < 999)
			    {
			        if(IsPlayerConnected(LiveOffer[playerid]))
			        {
				        if (ProxDetectorS(5.0, playerid, LiveOffer[playerid]))
						{
						    SendClientMessage(playerid, COLOR_WHITE, "* You are frozen till the Live Conversation ends.");
							SendClientMessage(LiveOffer[playerid], COLOR_WHITE, "* You are frozen till the Live Conversation ends (use /live again).");
							TogglePlayerControllable(playerid, 0);
							TogglePlayerControllable(LiveOffer[playerid], 0);
							TalkingLive[playerid] = LiveOffer[playerid];
							TalkingLive[LiveOffer[playerid]] = playerid;
							LiveOffer[playerid] = 999;
							return 1;
						}
						else
						{
						    SendClientMessage(playerid, COLOR_GREY, "   You are to far away from the News Reporter !");
							return 1;
						}
					}
					return 1;
				}
				else
				{
				    SendClientMessage(playerid, COLOR_GREY, "   No-one gave you a Live Conversation offer !");
				    return 1;
				}
			}
			else if(strcmp(x_job,"lawyer",true) == 0)
			{
			    tmp = strtok(cmdtext, idx);
				if(!strlen(tmp))
				{
					SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /accept lawyer [playerid/PartOfName]");
					return 1;
				}
				giveplayerid = ReturnUser(tmp);
				if (gTeam[playerid] == 2)
				{
				    if(IsPlayerConnected(giveplayerid))
				    {
				        if(giveplayerid != INVALID_PLAYER_ID)
				        {
				            if(PlayerInfo[giveplayerid][pJob] == 2)
				            {
							    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

								format(string, sizeof(string), "* You allowed %s to free a Jailed Person.", giveplayer);
								SendClientMessage(playerid, COLOR_WHITE,string);
								format(string, sizeof(string), "* Officer %s approved (allowed) you to enter the station", sendername);
								SendClientMessage(giveplayerid, COLOR_WHITE,string);
								ApprovedLawyer[giveplayerid] = 1;
							    return 1;
							}
						}
					}
					return 1;
				}
				else
				{
				    SendClientMessage(playerid, COLOR_GREY, "Invalid action! (You are no cop / Player aint a Lawyer / Bad ID)");
				    return 1;
				}
			}
			else if(strcmp(x_job,"bodyguard",true) == 0)
			{
			    if(GuardOffer[playerid] < 999)
			    {
			        if(GetPlayerMoney(playerid) > GuardPrice[playerid])
				    {
					    if(IsPlayerConnected(GuardOffer[playerid]))
					    {
					        GetPlayerName(GuardOffer[playerid], giveplayer, sizeof(giveplayer));

							format(string, sizeof(string), "* You accepted the Protection for $%d from Bodyguard %s.",GuardPrice[playerid],giveplayer);
							SendClientMessage(playerid, COLOR_WHITE, string);
							format(string, sizeof(string), "* %s accepted your Protection, and the $%d was added to your PayCheck.",sendername,GuardPrice[playerid]);
							SendClientMessage(GuardOffer[playerid], COLOR_WHITE, string);
							PlayerInfo[GuardOffer[playerid]][pPayCheck] += GuardPrice[playerid] * 5;
							SafeGivePlayerMoney(playerid, -GuardPrice[playerid]);
					        GuardOffer[playerid] = 999;
							GuardPrice[playerid] = 0;
							return 1;
						}
						return 1;
					}
					else
					{
					    SendClientMessage(playerid, COLOR_GREY, "   You can't afford the Protection !");
					    return 1;
					}
			    }
			    else
			    {
			        SendClientMessage(playerid, COLOR_GREY, "   No-one offerd you any Protection !");
			        return 1;
			    }
			}
			else if(strcmp(x_job,"drugs",true) == 0)
			{
			    if(DrugOffer[playerid] < 999)
			    {
			        if(GetPlayerMoney(playerid) > DrugPrice[playerid])
				    {
				        if(PlayerInfo[playerid][pDrugs] < 7)
				        {
					        if(IsPlayerConnected(DrugOffer[playerid]))
					        {
					            GetPlayerName(DrugOffer[playerid], giveplayer, sizeof(giveplayer));

								format(string, sizeof(string), "* You bought %d gram for $%d from Drug Dealer %s.",DrugGram[playerid],DrugPrice[playerid],giveplayer);
								SendClientMessage(playerid, COLOR_WHITE, string);
								format(string, sizeof(string), "* %s has bought your %d gram, the $%d was added to your PayCheck.",sendername,DrugGram[playerid],DrugPrice[playerid]);
								SendClientMessage(DrugOffer[playerid], COLOR_WHITE, string);
								PlayerInfo[DrugOffer[playerid]][pPayCheck] += DrugPrice[playerid] * 5;
								PlayerInfo[DrugOffer[playerid]][pDrugsSkill] ++;
								SafeGivePlayerMoney(playerid, -DrugPrice[playerid]);
								PlayerInfo[playerid][pDrugs] += DrugGram[playerid];
								PlayerInfo[DrugOffer[playerid]][pDrugs] -= DrugGram[playerid];
								if(PlayerInfo[DrugOffer[playerid]][pDrugsSkill] == 50)
								{ SendClientMessage(DrugOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 2, you can buy more Grams and Cheaper."); }
								else if(PlayerInfo[DrugOffer[playerid]][pDrugsSkill] == 100)
								{ SendClientMessage(DrugOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 3, you can buy more Grams and Cheaper."); }
								else if(PlayerInfo[DrugOffer[playerid]][pDrugsSkill] == 200)
								{ SendClientMessage(DrugOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 4, you can buy more Grams and Cheaper."); }
								else if(PlayerInfo[DrugOffer[playerid]][pDrugsSkill] == 400)
								{ SendClientMessage(DrugOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 5, you can buy more Grams and Cheaper."); }
					            DrugOffer[playerid] = 999;
								DrugPrice[playerid] = 0;
								DrugGram[playerid] = 0;
								return 1;
							}
							return 1;
						}
						else
						{
						    SendClientMessage(playerid, COLOR_GREY, "   You are fully loaded with Drugs, use them first !");
						    return 1;
						}
					}
					else
					{
					    SendClientMessage(playerid, COLOR_GREY, "   You can't afford those Drugs !");
					    return 1;
					}
			    }
			    else
			    {
			        SendClientMessage(playerid, COLOR_GREY, "   No-one offerd you any Drugs !");
			        return 1;
			    }
			}
			else if(strcmp(x_job,"ownablecar",true) == 0)
			{
			    if(OwnableCarOffer[playerid] < 999)
			    {
			        if(OwnableCarID[playerid] == 0) { return 1; }
			        if(OwnableCarPrice[playerid] == 0 || OwnableCarPrice[playerid] > 1500001) { return 1; }

			        if(OwnableCarID[playerid] == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey]) { }
			        else if(OwnableCarID[playerid] == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey2]) { }
			        else if(OwnableCarID[playerid] == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey3]) { }
			        else { SendClientMessage(playerid, COLOR_GREY, "  Offer is no longer available"); return 1; }

			        if(GetPlayerMoney(playerid) >= OwnableCarPrice[playerid])
			        {
						if(IsPlayerConnected(OwnableCarOffer[playerid]))
						{
						    GetPlayerName(OwnableCarOffer[playerid], giveplayer, sizeof(giveplayer));

						    if(PlayerInfo[playerid][pPcarkey] == 9999)
							{
								if(GetPlayerVehicleID(OwnableCarOffer[playerid]) == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey])
								{
									PlayerInfo[playerid][pPcarkey] = PlayerInfo[OwnableCarOffer[playerid]][pPcarkey];
						    		PlayerInfo[OwnableCarOffer[playerid]][pPcarkey] = 9999;
								}
								else if(GetPlayerVehicleID(OwnableCarOffer[playerid]) == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey2])
								{
									PlayerInfo[playerid][pPcarkey] = PlayerInfo[OwnableCarOffer[playerid]][pPcarkey2];
						    		PlayerInfo[OwnableCarOffer[playerid]][pPcarkey2] = 9999;
								}
								else if(GetPlayerVehicleID(OwnableCarOffer[playerid]) == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey3])
								{
									PlayerInfo[playerid][pPcarkey] = PlayerInfo[OwnableCarOffer[playerid]][pPcarkey3];
						    		PlayerInfo[OwnableCarOffer[playerid]][pPcarkey3] = 9999;
								}
								else
								{
								    SendClientMessage(playerid, COLOR_GREY, "  Vehicle seller needs to be at his car !");
									return 1;
								}
								format(string, sizeof(string), "* You bought a car for $%d from %s.",OwnableCarPrice[playerid],giveplayer);
								SendClientMessage(playerid, COLOR_WHITE, string);
								format(string, sizeof(string), "* %s has bought your car for $%d.",sendername,OwnableCarPrice[playerid]);
								SendClientMessage(OwnableCarOffer[playerid], COLOR_WHITE, string);
						    	SafeRemovePlayerFromVehicle(OwnableCarOffer[playerid]);
						    	SafeGivePlayerMoney(playerid, - OwnableCarPrice[playerid]);
						    	SafeGivePlayerMoney(OwnableCarOffer[playerid], OwnableCarPrice[playerid]);
						    	strmid(CarInfo[OwnableCarID[playerid]][cOwner], sendername, 0, strlen(sendername), 999);
							}
							else if(PlayerInfo[playerid][pPcarkey2] == 9999)
							{
							    if(GetPlayerVehicleID(OwnableCarOffer[playerid]) == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey])
								{
									PlayerInfo[playerid][pPcarkey2] = PlayerInfo[OwnableCarOffer[playerid]][pPcarkey];
						    		PlayerInfo[OwnableCarOffer[playerid]][pPcarkey] = 9999;
								}
								else if(GetPlayerVehicleID(OwnableCarOffer[playerid]) == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey2])
								{
									PlayerInfo[playerid][pPcarkey2] = PlayerInfo[OwnableCarOffer[playerid]][pPcarkey2];
						    		PlayerInfo[OwnableCarOffer[playerid]][pPcarkey2] = 9999;
								}
								else if(GetPlayerVehicleID(OwnableCarOffer[playerid]) == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey3])
								{
									PlayerInfo[playerid][pPcarkey2] = PlayerInfo[OwnableCarOffer[playerid]][pPcarkey3];
						    		PlayerInfo[OwnableCarOffer[playerid]][pPcarkey3] = 9999;
								}
								else
								{
								    SendClientMessage(playerid, COLOR_GREY, "  Vehicle seller needs to be at his car !");
									return 1;
								}
								format(string, sizeof(string), "* You bought a car for $%d from %s.",OwnableCarPrice[playerid],giveplayer);
								SendClientMessage(playerid, COLOR_WHITE, string);
								format(string, sizeof(string), "* %s has bought your car for $%d.",sendername,OwnableCarPrice[playerid]);
								SendClientMessage(OwnableCarOffer[playerid], COLOR_WHITE, string);
						    	RemovePlayerFromVehicle(OwnableCarOffer[playerid]);
						    	SafeGivePlayerMoney(playerid, - OwnableCarPrice[playerid]);
						    	SafeGivePlayerMoney(OwnableCarOffer[playerid], OwnableCarPrice[playerid]);
						    	strmid(CarInfo[OwnableCarID[playerid]][cOwner], sendername, 0, strlen(sendername), 999);
							}
							else if(PlayerInfo[playerid][pPcarkey3] == 9999)
							{
							    if(GetPlayerVehicleID(OwnableCarOffer[playerid]) == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey])
								{
									PlayerInfo[playerid][pPcarkey3] = PlayerInfo[OwnableCarOffer[playerid]][pPcarkey];
						    		PlayerInfo[OwnableCarOffer[playerid]][pPcarkey] = 9999;
								}
								else if(GetPlayerVehicleID(OwnableCarOffer[playerid]) == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey2])
								{
									PlayerInfo[playerid][pPcarkey3] = PlayerInfo[OwnableCarOffer[playerid]][pPcarkey2];
						    		PlayerInfo[OwnableCarOffer[playerid]][pPcarkey2] = 9999;
								}
								else if(GetPlayerVehicleID(OwnableCarOffer[playerid]) == PlayerInfo[OwnableCarOffer[playerid]][pPcarkey3])
								{
									PlayerInfo[playerid][pPcarkey3] = PlayerInfo[OwnableCarOffer[playerid]][pPcarkey3];
						    		PlayerInfo[OwnableCarOffer[playerid]][pPcarkey3] = 9999;
								}
								else
								{
								    SendClientMessage(playerid, COLOR_GREY, "  Vehicle seller needs to be at his car !");
									return 1;
								}
								format(string, sizeof(string), "* You bought a car for $%d from %s.",OwnableCarPrice[playerid],giveplayer);
								SendClientMessage(playerid, COLOR_WHITE, string);
								format(string, sizeof(string), "* %s has bought your car for $%d.",sendername,OwnableCarPrice[playerid]);
								SendClientMessage(OwnableCarOffer[playerid], COLOR_WHITE, string);
						    	RemovePlayerFromVehicle(OwnableCarOffer[playerid]);
						    	SafeGivePlayerMoney(playerid, - OwnableCarPrice[playerid]);
						    	SafeGivePlayerMoney(OwnableCarOffer[playerid], OwnableCarPrice[playerid]);
						    	strmid(CarInfo[OwnableCarID[playerid]][cOwner], sendername, 0, strlen(sendername), 999);
							}
						    else
						    {
						        SendClientMessage(playerid, COLOR_GREY, "  You already have 3 cars ! ");
						        return 1;
							}
							OnPropUpdate(4,OwnableCarOffer[playerid]);
							OnPlayerUpdateEx(playerid);
							OnPlayerUpdateEx(OwnableCarOffer[playerid]);
						    OwnableCarOffer[playerid] = 999;
							OwnableCarID[playerid] = 0;
							OwnableCarPrice[playerid] = 0;
							GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
							SendClientMessage(playerid, COLOR_GRAD2, "Congratulations on your new purchase!");
							SendClientMessage(playerid, COLOR_GRAD2, "Type /vehiclemanual to view the vehicle manual!");
							return 1;
						}
						else
						{
						    SendClientMessage(playerid, COLOR_GREY, "   Car seller is Offline !");
			        		return 1;
						}
			        }
			    }
			    else
			    {
			        SendClientMessage(playerid, COLOR_GREY, "   No-one offerd you any Ownable Car !");
			        return 1;
			    }
			}
			else if(strcmp(x_job,"license",true) == 0)
			{
			    if(LicenseOffer[playerid] < 999)
			    {
			        if(GetPlayerMoney(playerid) > LicensePrice[playerid])
				    {
				        /*if(PlayerInfo[playerid][pDrugs] < 7)
				        {
					        if(IsPlayerConnected(DrugOffer[playerid]))
					        {
					            GetPlayerName(DrugOffer[playerid], giveplayer, sizeof(giveplayer));

								format(string, sizeof(string), "* You bought %d gram for $%d from Drug Dealer %s.",DrugGram[playerid],DrugPrice[playerid],giveplayer);
								SendClientMessage(playerid, COLOR_WHITE, string);
								format(string, sizeof(string), "* %s has bought your %d gram, the $%d was added to your PayCheck.",sendername,DrugGram[playerid],DrugPrice[playerid]);
								SendClientMessage(DrugOffer[playerid], COLOR_WHITE, string);
								PlayerInfo[DrugOffer[playerid]][pPayCheck] += DrugPrice[playerid] * 5;
								PlayerInfo[DrugOffer[playerid]][pDrugsSkill] ++;
								SafeGivePlayerMoney(playerid, -DrugPrice[playerid]);
								PlayerInfo[playerid][pDrugs] += DrugGram[playerid];
								PlayerInfo[DrugOffer[playerid]][pDrugs] -= DrugGram[playerid];
								if(PlayerInfo[DrugOffer[playerid]][pDrugsSkill] == 50)
								{ SendClientMessage(DrugOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 2, you can buy more Grams and Cheaper."); }
								else if(PlayerInfo[DrugOffer[playerid]][pDrugsSkill] == 100)
								{ SendClientMessage(DrugOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 3, you can buy more Grams and Cheaper."); }
								else if(PlayerInfo[DrugOffer[playerid]][pDrugsSkill] == 200)
								{ SendClientMessage(DrugOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 4, you can buy more Grams and Cheaper."); }
								else if(PlayerInfo[DrugOffer[playerid]][pDrugsSkill] == 400)
								{ SendClientMessage(DrugOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 5, you can buy more Grams and Cheaper."); }
					            DrugOffer[playerid] = 999;
								DrugPrice[playerid] = 0;
								DrugGram[playerid] = 0;
								return 1;
							}
							return 1;
						}
						else
						{
						    SendClientMessage(playerid, COLOR_GREY, "   You are fully loaded with Drugs, use them first !");
						    return 1;
						}*/
						if(LicenseType[playerid] == 0 || LicenseType[playerid] > 5)
						{
						    return 1;
						}
						if(IsPlayerConnected(LicenseOffer[playerid]))
						{
						    GetPlayerName(LicenseOffer[playerid], giveplayer, sizeof(giveplayer));

							if(LicenseType[playerid] == 1)
							{
							    if(PlayerInfo[playerid][pCarLic] == 1)
							    {
							        SendClientMessage(playerid, COLOR_GREY, "   You have drivers license already.");
							    }
							    else
							    {
							    	format(string, sizeof(string), "* You bought Drivers License for $%d from Instructor %s.",LicensePrice[playerid],giveplayer);
									SendClientMessage(playerid, COLOR_WHITE, string);
									format(string, sizeof(string), "* %s has bought your Drivers License for $%d and it was added to your PayCheck.",sendername,LicensePrice[playerid]);
									SendClientMessage(LicenseOffer[playerid], COLOR_WHITE, string);
									PlayerInfo[playerid][pCarLic] = 1;
									SafeGivePlayerMoney(playerid, -LicensePrice[playerid]);
									PlayerInfo[LicenseOffer[playerid]][pPayCheck] += LicensePrice[playerid] * 5;
								}
							}
							if(LicenseType[playerid] == 2)
							{
							    if(PlayerInfo[playerid][pFlyLic] == 1)
							    {
							        SendClientMessage(playerid, COLOR_GREY, "   You have flying license already.");
							    }
							    else
							    {
							    	format(string, sizeof(string), "* You bought Flying License for $%d from Instructor %s.",LicensePrice[playerid],giveplayer);
									SendClientMessage(playerid, COLOR_WHITE, string);
									format(string, sizeof(string), "* %s has bought your Flying License for $%d and it was added to your PayCheck.",sendername,LicensePrice[playerid]);
									SendClientMessage(LicenseOffer[playerid], COLOR_WHITE, string);
									PlayerInfo[playerid][pFlyLic] = 1;
									SafeGivePlayerMoney(playerid, -LicensePrice[playerid]);
									PlayerInfo[LicenseOffer[playerid]][pPayCheck] += LicensePrice[playerid] * 5;
								}
							}
							if(LicenseType[playerid] == 3)
							{
							    if(PlayerInfo[playerid][pBoatLic] == 1)
							    {
							        SendClientMessage(playerid, COLOR_GREY, "   You have Sailing license already.");
							    }
							    else
							    {
							    	format(string, sizeof(string), "* You bought Sailing License for $%d from Instructor %s.",LicensePrice[playerid],giveplayer);
									SendClientMessage(playerid, COLOR_WHITE, string);
									format(string, sizeof(string), "* %s has bought your Sailing License for $%d and it was added to your PayCheck.",sendername,LicensePrice[playerid]);
									SendClientMessage(LicenseOffer[playerid], COLOR_WHITE, string);
									PlayerInfo[playerid][pBoatLic] = 1;
									SafeGivePlayerMoney(playerid, -LicensePrice[playerid]);
									PlayerInfo[LicenseOffer[playerid]][pPayCheck] += LicensePrice[playerid] * 5;
								}
							}
							if(LicenseType[playerid] == 4)
							{
							    if(PlayerInfo[playerid][pFishLic] == 1)
							    {
							        SendClientMessage(playerid, COLOR_GREY, "   You have Fishing license already.");
							    }
							    else
							    {
							    	format(string, sizeof(string), "* You bought Fishing License for $%d from Instructor %s.",LicensePrice[playerid],giveplayer);
									SendClientMessage(playerid, COLOR_WHITE, string);
									format(string, sizeof(string), "* %s has bought your Fishing License for $%d and it was added to your PayCheck.",sendername,LicensePrice[playerid]);
									SendClientMessage(LicenseOffer[playerid], COLOR_WHITE, string);
									PlayerInfo[playerid][pFishLic] = 1;
									SafeGivePlayerMoney(playerid, -LicensePrice[playerid]);
									PlayerInfo[LicenseOffer[playerid]][pPayCheck] += LicensePrice[playerid] * 5;
								}
							}
							if(LicenseType[playerid] == 5)
							{
							    if(PlayerInfo[playerid][pGunLic] == 1)
							    {
							        SendClientMessage(playerid, COLOR_GREY, "   You have Weapon license already.");
								}
								else
								{
							    	format(string, sizeof(string), "* You bought Weapon License for $%d from Instructor %s.",LicensePrice[playerid],giveplayer);
									SendClientMessage(playerid, COLOR_WHITE, string);
									format(string, sizeof(string), "* %s has bought your Weapon License for $%d and it was added to your PayCheck.",sendername,LicensePrice[playerid]);
									SendClientMessage(LicenseOffer[playerid], COLOR_WHITE, string);
									PlayerInfo[playerid][pGunLic] = 1;
									SafeGivePlayerMoney(playerid, -LicensePrice[playerid]);
									PlayerInfo[LicenseOffer[playerid]][pPayCheck] += LicensePrice[playerid] * 5;
								}
							}
							LicenseOffer[playerid] = 999;
							LicensePrice[playerid] = 0;
							LicenseType[playerid] = 0;
							return 1;
						}
					}
					else
					{
					    SendClientMessage(playerid, COLOR_GREY, "   You can't afford that License !");
					    return 1;
					}
			    }
			    else
			    {
			        SendClientMessage(playerid, COLOR_GREY, "   No-one offerd you any License !");
			        return 1;
			    }
			}
			else if(strcmp(x_job,"sex",true) == 0)
			{
			    if(SexOffer[playerid] < 999)
				{
					if(GetPlayerMoney(playerid) > SexPrice[playerid])
			  		{
						if (IsPlayerConnected(SexOffer[playerid]))
						{
						    new Car = GetPlayerVehicleID(playerid);
						    if(IsPlayerInAnyVehicle(playerid) && IsPlayerInVehicle(SexOffer[playerid], Car))
						    {
								GetPlayerName(SexOffer[playerid], giveplayer, sizeof(giveplayer));

								format(string, sizeof(string), "* You had sex with Whore %s, for $%d.", giveplayer, SexPrice[playerid]);
								SendClientMessage(playerid, COLOR_WHITE, string);
								format(string, sizeof(string), "* %s had sex with you, the $%d was added to your PayCheck.", sendername, SexPrice[playerid]);
								SendClientMessage(SexOffer[playerid], COLOR_WHITE, string);
								PlayerInfo[SexOffer[playerid]][pPayCheck] += SexPrice[playerid] * 5;
								SafeGivePlayerMoney(playerid, -SexPrice[playerid]);
								PlayerInfo[SexOffer[playerid]][pSexSkill] ++;
								if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 50)
								{ SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Your Sex Skill is now Level 2, you offer better Sex (health) and less chance on STD."); }
								else if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 100)
								{ SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Your Sex Skill is now Level 3, you offer better Sex (health) and less chance on STD."); }
								else if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 200)
								{ SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Your Sex Skill is now Level 4, you offer better Sex (health) and less chance on STD."); }
								else if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 400)
								{ SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Your Sex Skill is now Level 5, you offer better Sex (health) and less chance on STD."); }
								if(STDPlayer[playerid] == 0)
								{
								    if(Condom[playerid] < 1)
									{
									    new Float:health;
									    new level = PlayerInfo[SexOffer[playerid]][pSexSkill];
									    if(level >= 0 && level <= 50)
									    {
									        if(GetPlayerHealth(playerid, health) < 150) {
											SetPlayerHealth(playerid, health + 30.0); }
											new rand = random(sizeof(STD1));
											STDPlayer[playerid] = STD1[rand];
											STDPlayer[SexOffer[playerid]] = STD1[rand];
											if(STD1[rand] == 0) { SendClientMessage(playerid, COLOR_WHITE, "* You got 30 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You haven't got a STD while having Sex."); }
											else if(STD1[rand] == 1) { SendClientMessage(playerid, COLOR_WHITE, "* You got 30 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You got a Chlamydia because of the Sex."); }
											else if(STD1[rand] == 2) { SendClientMessage(playerid, COLOR_WHITE, "* You got 30 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You got a Gonorrhea because of the Sex."); }
											else if(STD1[rand] == 3) { SendClientMessage(playerid, COLOR_WHITE, "* You got 30 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You got a Syphilis because of the Sex."); }
										}
										else if(level >= 51 && level <= 100)
									    {
									        if(GetPlayerHealth(playerid, health) < 150) {
											SetPlayerHealth(playerid, health + 60.0); }
											new rand = random(sizeof(STD2));
											STDPlayer[playerid] = STD2[rand];
											STDPlayer[SexOffer[playerid]] = STD2[rand];
											if(STD2[rand] == 0) { SendClientMessage(playerid, COLOR_WHITE, "* You got 60 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You haven't got a STD while having Sex."); }
											else if(STD2[rand] == 1) { SendClientMessage(playerid, COLOR_WHITE, "* You got 60 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You got a Chlamydia because of the Sex."); }
											else if(STD2[rand] == 2) { SendClientMessage(playerid, COLOR_WHITE, "* You got 60 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You got a Gonorrhea because of the Sex."); }
											else if(STD2[rand] == 3) { SendClientMessage(playerid, COLOR_WHITE, "* You got 60 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You got a Syphilis because of the Sex."); }
										}
										else if(level >= 101 && level <= 200)
									    {
									        if(GetPlayerHealth(playerid, health) < 150) {
											SetPlayerHealth(playerid, health + 90.0); }
											new rand = random(sizeof(STD3));
											STDPlayer[playerid] = STD3[rand];
											STDPlayer[SexOffer[playerid]] = STD3[rand];
											if(STD3[rand] == 0) { SendClientMessage(playerid, COLOR_WHITE, "* You got 90 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You haven't got a STD while having Sex."); }
											else if(STD3[rand] == 1) { SendClientMessage(playerid, COLOR_WHITE, "* You got 90 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You got a Chlamydia because of the Sex."); }
											else if(STD3[rand] == 2) { SendClientMessage(playerid, COLOR_WHITE, "* You got 90 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You got a Gonorrhea because of the Sex."); }
											else if(STD3[rand] == 3) { SendClientMessage(playerid, COLOR_WHITE, "* You got 90 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You got a Syphilis because of the Sex."); }
										}
										else if(level >= 201 && level <= 400)
									    {
									        if(GetPlayerHealth(playerid, health) < 150) {
											SetPlayerHealth(playerid, health + 120.0); }
											new rand = random(sizeof(STD4));
											STDPlayer[playerid] = STD4[rand];
											STDPlayer[SexOffer[playerid]] = STD4[rand];
											if(STD4[rand] == 0) { SendClientMessage(playerid, COLOR_WHITE, "* You got 120 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You haven't got a STD while having Sex."); }
											else if(STD4[rand] == 1) { SendClientMessage(playerid, COLOR_WHITE, "* You got 120 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You got a Chlamydia because of the Sex."); }
											else if(STD4[rand] == 2) { SendClientMessage(playerid, COLOR_WHITE, "* You got 120 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You got a Gonorrhea because of the Sex."); }
											else if(STD4[rand] == 3) { SendClientMessage(playerid, COLOR_WHITE, "* You got 120 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You got a Syphilis because of the Sex."); }
										}
										else if(level >= 401)
										{
										    if(GetPlayerHealth(playerid, health) < 150) {
											SetPlayerHealth(playerid, health + 150.0); }
											SendClientMessage(playerid, COLOR_WHITE, "* Your Sex Skill Level is so high you gave high health and No STD.");
											SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* The Whore's Sex Skill Level is so high you got high health and No STD.");
										}
				      				}
									else
									{
									    SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* The player used a Condom.");
									    SendClientMessage(playerid, COLOR_WHITE, "* You used a Condom.");
									    Condom[playerid] --;
									}
								}
								else
								{
								    SendClientMessage(SexOffer[playerid], COLOR_GREY, "* That player was already infected with a STD, can't get another one.");
								    return 1;
								}
								SexOffer[playerid] = 999;
								return 1;
							}
							else
							{
							    SendClientMessage(playerid, COLOR_GREY, "   You or the Whore are not both in a Car !");
							    return 1;
							}
						}//Connected or not
						return 1;
					}
					else
					{
					    SendClientMessage(playerid, COLOR_GREY, "   You can't afford the Sex!");
					    return 1;
					}
				}
				else
				{
				    SendClientMessage(playerid, COLOR_GREY, "   You dont have any Sex offerd by a Whore !");
				    return 1;
				}
			}
			else if(strcmp(x_job,"repair",true) == 0)
			{
			    if(RepairOffer[playerid] < 999)
			    {
			        if(GetPlayerMoney(playerid) > RepairPrice[playerid])
				    {
					    if(IsPlayerInAnyVehicle(playerid))
					    {
					        if(IsPlayerConnected(RepairOffer[playerid]))
					        {
					            new Offer = RepairOffer[playerid];
						        GetPlayerName(Offer, giveplayer, sizeof(giveplayer));
                                RepairVehicleTimer = SetTimerEx("Repair",15000,true,"ii",playerid,Offer);
								format(string, sizeof(string), "* Car Mechanic %s have started to repair your vehicle.",giveplayer);
								SendClientMessage(playerid, COLOR_WHITE, string);
								TogglePlayerControllable(playerid, 0);
								SendClientMessage(Offer, COLOR_RLRPGBLUE,"((This will take 15 seconds))");
								SendClientMessage(playerid, COLOR_RLRPGBLUE,"((This will take 15 seconds))");
								format(string, sizeof(string), "* You started to repair %s vehicle.",sendername);
								SendClientMessage(Offer, COLOR_WHITE, string);
							}
							return 1;
						}
						return 1;
					}
					else
					{
					    SendClientMessage(playerid, COLOR_GREY, "   You can't afford the Repair !");
					    return 1;
					}
			    }
			    else
			    {
			        SendClientMessage(playerid, COLOR_GREY, "   No-one offerd you to Repair your Car !");
			        return 1;
			    }
			}
			else { return 1; }
		}//not connected
		return 1;
	}
Reply
#6

try change :
else if(strcmp(tmp,"handshake",true) == 0)
to:
else if(strcmp(x_job,"handshake",true) == 0)

after :
SendClientMessage(playerid, COLOR_GREY, "Nobody has offered you to shake hands.");
put :
return 1;
Reply
#7

Hehehehehehheh, yes the problem was in x_job lol

Thanks for help,rep +
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)