Helmet/Accept - problem
#1

hi i made a helmet but i dont know how to make it so if i go on bike i setsobject on head and message appears and same on when i get off bike..

pawn Код:
if (strcmp(cmd, "/casca", true) == 0)
                    {
                    if(IsPlayerConnected(playerid))
                    {
                    if(IsPlayerInAnyVehicle(playerid))
                    {
                    if(IsModelABike(GetPlayerVehicleID(playerid)))
                    {
                        if(PlayerInfo[playerid][pSeatBelt] == 0)
                        {
                            SetPlayerAttachedObject(playerid,3 , 18645, 2, 0.07, 0.017, 0, 88, 75, 0);
                            format(string, sizeof(string), "* %s isi pune casca pe cap", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            PlayerInfo[playerid][pSeatBelt] = 1;
                        }
                        else
                        {
                            for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
                            {
                            if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
                            }
                            format(string, sizeof(string), "* %s Si-a dat jos Casca de pe cap!", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            PlayerInfo[playerid][pSeatBelt] = 0;
                        }
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_GREY,"* Cand esti in masina folositi =>(/centura)");
                        return 1;
                    }
                    }
                    }
                    return 1;
                    }
when i type /accept nothing happens..

Код:
if(strcmp(cmd,"/accept",true)==0)
				    {
				        if(IsPlayerConnected(playerid))
					    {
							new x_job[256];
							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: Sex, Drugs, Repair, Lawyer, Bodyguard, Live, Refill, Money");
								SendClientMessage(playerid, COLOR_GREY, "Available names: Car, Taxi, Bus, Boxing, Medic, Mechanic, Paper, Ticket, Crack");
								SendClientMessage(playerid, COLOR_WHITE, "|____________________________________________|");
								return 1;
							}
							else if(strcmp(x_job,"crack",true) == 0)
							{
							    if(CrackOffer[playerid] < 999)
							    {
							        if(GetPlayerCash(playerid) > CrackPrice[playerid])
								    {
								        if(PlayerInfo[playerid][pCrack] < 7)
								        {
									        if(IsPlayerConnected(CrackOffer[playerid]))
									        {
									            GetPlayerName(CrackOffer[playerid], giveplayer, sizeof(giveplayer));
												GetPlayerName(playerid, sendername, sizeof(sendername));
												format(string, sizeof(string), "* You bought %d gram for $%d from Drug Dealer %s.",CrackGram[playerid],CrackPrice[playerid],giveplayer);
												SendClientMessage(playerid, COLOR_1BLUE, string);
												format(string, sizeof(string), "* %s has bought your %d gram, the $%d was added to your Account.",sendername,CrackGram[playerid],CrackPrice[playerid]);
												SendClientMessage(CrackOffer[playerid], COLOR_1BLUE, string);
												PlayerInfo[CrackOffer[playerid]][pAccount] += CrackPrice[playerid];
												PlayerInfo[CrackOffer[playerid]][pDrugsSkill] ++;
												GivePlayerCash(playerid, -CrackPrice[playerid]);
												PlayerInfo[playerid][pCrack] += CrackGram[playerid];
												PlayerInfo[CrackOffer[playerid]][pCrack] -= CrackGram[playerid];
												if(PlayerInfo[CrackOffer[playerid]][pDrugsSkill] == 50)
												{ SendClientMessage(CrackOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 2, you can buy more Grams and Cheaper."); }
												else if(PlayerInfo[CrackOffer[playerid]][pDrugsSkill] == 100)
												{ SendClientMessage(CrackOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 3, you can buy more Grams and Cheaper."); }
												else if(PlayerInfo[CrackOffer[playerid]][pDrugsSkill] == 200)
												{ SendClientMessage(CrackOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 4, you can buy more Grams and Cheaper."); }
												else if(PlayerInfo[CrackOffer[playerid]][pDrugsSkill] == 400)
												{ SendClientMessage(CrackOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 5, you can buy more Grams and Cheaper."); }
									            CrackOffer[playerid] = 999;
												CrackPrice[playerid] = 0;
												CrackGram[playerid] = 0;
												return 1;
											}
											return 1;
										}
										else
										{
										    SendClientMessage(playerid, COLOR_GREY, "   You are fully loaded with Crack, use it first !");
										    return 1;
										}
									}
									else
									{
									    SendClientMessage(playerid, COLOR_GREY, "   You can't afford this Crack !");
									    return 1;
									}
							    }
							    else
							    {
							        SendClientMessage(playerid, COLOR_GREY, "   No-one offerd you any Crack !");
							        return 1;
							    }
							}
							else if(strcmp(x_job, "money", true) == 0)
				            {
				                if(TransferOffer[playerid] < 999)
				                {
				                    if(IsPlayerConnected(TransferOffer[playerid]))
				                    {
				                          GetPlayerName(TransferOffer[playerid], giveplayer, sizeof(giveplayer));
				                        GetPlayerName(playerid, sendername, sizeof(sendername));
				                          PlayerInfo[playerid][pAccount] += TransferMoney[playerid];
				                        PlayerInfo[TransferOffer[playerid]][pAccount] -= TransferMoney[playerid];
				                        format(string, sizeof(string), " You have transferd $%d to %s's account", TransferMoney[playerid], giveplayer);
				                        PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
				                        SendClientMessage(playerid, COLOR_WHITE, string);
				                        format(string, sizeof(string), " You have recieved $%d to into your account from %s", TransferMoney[playerid], sendername);
				                        SendClientMessage(TransferOffer[playerid], COLOR_WHITE, string);
				                        format(string, sizeof(string), "%s transferd $%d to %s", sendername, TransferMoney[playerid], giveplayer);
				                        if(moneys >= 500000)
				                        {
				                            ABroadCast(COLOR_YELLOW,string,1);
				                        }
				                        printf("%s", string);
				                        PayLog(string);
				                        PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
				                        TransferOffer[playerid] = 999;
				                        TransferMoney[playerid] = 0;
				                        return 1;
				                    }
				                 }
				                else
				                {
				                       SendClientMessage(playerid, COLOR_GREY, " No-one offered you a Transfer !");
				                    return 1;
				                }
				            }
					        if(strcmp(x_job,"car",true) == 0)
							{
							    if(CarOffer[playerid] < 999)
							    {
							        if(IsPlayerConnected(CarOffer[playerid]))
							        {
							            if(GetPlayerCash(playerid) > CarPrice[playerid])
							            {
							                if(IsPlayerInVehicle(CarOffer[playerid], CarID[playerid]))
							                {
								                GetPlayerName(CarOffer[playerid], giveplayer, sizeof(giveplayer));
												GetPlayerName(playerid, sendername, sizeof(sendername));
								                new points;
								                PlayerInfo[CarOffer[playerid]][pCarSkill] ++;
								                if(PlayerInfo[CarOffer[playerid]][pCarSkill] == 50)
												{ SendClientMessage(CarOffer[playerid], COLOR_YELLOW, "* Your Car Dealer Skill is now Level 2, Players that buy Cars from you can call it more often."); }
												else if(PlayerInfo[CarOffer[playerid]][pCarSkill] == 100)
												{ SendClientMessage(CarOffer[playerid], COLOR_YELLOW, "* Your Car Dealer Skill is now Level 3, Players that buy Cars from you can call it more often."); }
												else if(PlayerInfo[CarOffer[playerid]][pCarSkill] == 200)
												{ SendClientMessage(CarOffer[playerid], COLOR_YELLOW, "* Your Car Dealer Skill is now Level 4, Players that buy Cars from you can call it more often."); }
												else if(PlayerInfo[CarOffer[playerid]][pCarSkill] == 400)
												{ SendClientMessage(CarOffer[playerid], COLOR_YELLOW, "* Your Car Dealer Skill is now Level 5, Players that buy Cars from you can call it more often."); }
												new level = PlayerInfo[CarOffer[playerid]][pCarSkill];
												if(level >= 0 && level <= 50) { points = 1; }
												else if(level >= 51 && level <= 100) { points = 2; }
												else if(level >= 101 && level <= 200) { points = 3; }
												else if(level >= 201 && level <= 400) { points = 4; }
												else if(level >= 401) { points = 4; }
								                format(string, sizeof(string), "* You bought a Car for $%d, from Car Dealer %s. (You can use /callcar %d times)",CarPrice[playerid],giveplayer,points);
												SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
												format(string, sizeof(string), "* You sold your Car to %s for $%d, the player can use /callcar %d times.",sendername,CarPrice[playerid],points);
												SendClientMessage(CarOffer[playerid], COLOR_LIGHTBLUE, string);
												PlayerInfo[CarOffer[playerid]][pPayCheck] += CarPrice[playerid];
												GivePlayerCash(playerid, -CarPrice[playerid]);
												RemovePlayerFromVehicle(CarOffer[playerid]);
												CarCalls[playerid] = points;
										        CarOffer[playerid] = 999;
												CarPrice[playerid] = 0;
												return 1;
											}
											else
											{
											    SendClientMessage(playerid, COLOR_GREY, "   The Car Dealer is not in the offerd Car !");
										    	return 1;
											}
							            }
										else
										{
										    SendClientMessage(playerid, COLOR_GREY, "   You cant afford the Car !");
										    return 1;
										}
							        }
							        return 1;
							    }
								else
								{
								    SendClientMessage(playerid, COLOR_GREY, "   No-one offered to buy a Car !");
								    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));
											GetPlayerName(playerid, sendername, sizeof(sendername));
											format(string, sizeof(string), "* You have accepted %s's request to be his Marriage Witness.", giveplayer);
											SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
											format(string, sizeof(string), "* %s has accepted your request to be your Marriage Witness.", sendername);
											SendClientMessage(DivorceOffer[playerid], COLOR_LIGHTBLUE, string);
											ClearMarriage(playerid);
											ClearMarriage(DivorceOffer[playerid]);
											PlayerInfo[playerid][pPhousekey] = 255;
											PlayerInfo[playerid][pPbiskey] = 255;
											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));
											GetPlayerName(playerid, sendername, sizeof(sendername));
											format(string, sizeof(string), "* You have accepted %s's request to be his Marriage Witness.", giveplayer);
											SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
											format(string, sizeof(string), "* %s has accepted your request to be your Marriage Witness.", sendername);
											SendClientMessage(MarryWitnessOffer[playerid], COLOR_LIGHTBLUE, 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(!PlayerToPoint(10.0, playerid, -1988.6638,1117.8837,54.4726))
							        {
							            SendClientMessage(playerid, COLOR_GREY, "   You are not at the Church in San Fierro !");
							            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));
													GetPlayerName(playerid, sendername, sizeof(sendername));
													format(string, sizeof(string), "* You have accepted %s's request to be your Husband.", giveplayer);
													SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
													format(string, sizeof(string), "* %s has accepted your request to be your Wife.", sendername);
													SendClientMessage(ProposeOffer[playerid], COLOR_LIGHTBLUE, 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,"ticket",true) == 0)
							{
							    if(TicketOffer[playerid] < 999)
							    {
							        if(IsPlayerConnected(TicketOffer[playerid]))
							        {
							            if (ProxDetectorS(5.0, playerid, TicketOffer[playerid]))
										{
								           	GetPlayerName(TicketOffer[playerid], giveplayer, sizeof(giveplayer));
											GetPlayerName(playerid, sendername, sizeof(sendername));
											format(string, sizeof(string), "* You have paid the Ticket of $%d to Officer %s.", TicketMoney[playerid], giveplayer);
											SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
											format(string, sizeof(string), "* %s has paid your Ticket of $%d.", sendername, TicketMoney[playerid]);
											SendClientMessage(TicketOffer[playerid], COLOR_LIGHTBLUE, string);
											GivePlayerCash(playerid, - TicketMoney[playerid]);
											GivePlayerCash(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));
												GetPlayerName(playerid, sendername, sizeof(sendername));
												format(string, sizeof(string), "* You have accepted a Newspaper from Paper Boy %s (use /read paper, to read).", giveplayer);
												SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
												format(string, sizeof(string), "* %s has accepted your Newspaper.", sendername);
												SendClientMessage(PaperOffer[playerid], COLOR_LIGHTBLUE, 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(x_job,"boxing",true) == 0)
							{
							    if(BoxOffer[playerid] < 999)
							    {
							        if(IsPlayerConnected(BoxOffer[playerid]))
							        {
							            new points;
							            new mypoints;
							            GetPlayerName(BoxOffer[playerid], giveplayer, sizeof(giveplayer));
										GetPlayerName(playerid, sendername, sizeof(sendername));
							            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_LIGHTBLUE, string);
										format(string, sizeof(string), "* %s has accepted your Boxing Challenge Request, you will fight with %d Health.",sendername,points);
										SendClientMessage(BoxOffer[playerid], COLOR_LIGHTBLUE, string);
										SetPlayerHealth(playerid, mypoints);
										SetPlayerHealth(BoxOffer[playerid], points);
										SetPlayerInterior(playerid, 5); SetPlayerInterior(BoxOffer[playerid], 5);
										SetPlayerPos(playerid, 762.9852,2.4439,1001.5942); SetPlayerFacingAngle(playerid, 131.8632);
										SetPlayerPos(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 (MS-13 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 (MS-13 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(PlayerOnMission[playerid] > 0)
							    {
							        SendClientMessage(playerid, COLOR_GREY, "   On a mission right now, can't use this command !");
							        return 1;
							    }
					            if(TaxiCall < 999)
					            {
					                if(IsPlayerConnected(TaxiCall))
					                {
					                    GetPlayerName(playerid, sendername, sizeof(sendername));
					                	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_LIGHTBLUE, string);
				                        format(string, sizeof(string), "* Taxi Driver %s has accepted your Taxi Call please wait at your current Position.",sendername);
										SendClientMessage(TaxiCall, COLOR_LIGHTBLUE, 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(PlayerOnMission[playerid] > 0)
							    {
							        SendClientMessage(playerid, COLOR_GREY, "   On a mission right now, can't use this command !");
							        return 1;
							    }
					            if(BusCall < 999)
					            {
					                if(IsPlayerConnected(BusCall))
					                {
					                    GetPlayerName(playerid, sendername, sizeof(sendername));
					                	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_LIGHTBLUE, string);
				                        format(string, sizeof(string), "* Bus Driver %s has accepted your Bus Call please wait at your current Position.",sendername);
										SendClientMessage(BusCall, COLOR_LIGHTBLUE, 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(PlayerOnMission[playerid] > 0)
								    {
								        SendClientMessage(playerid, COLOR_GREY, "   On a mission right now, can't use this command !");
								        return 1;
								    }
						            if(MedicCall < 999)
						            {
						                if(IsPlayerConnected(MedicCall))
						                {
						                    GetPlayerName(playerid, sendername, sizeof(sendername));
						                	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_LIGHTBLUE, string);
											SendClientMessage(playerid, COLOR_LIGHTBLUE, "* 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_LIGHTBLUE, 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(PlayerInfo[playerid][pMember] != 4 || PlayerInfo[playerid][pLeader] != 4)
							    {
							        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(playerid, sendername, sizeof(sendername));
					                	GetPlayerName(MechanicCall, giveplayer, sizeof(giveplayer));
					                	format(string, sizeof(string), "* You have accepted the Mechanic Call from %s, you have 30 Seconds to get there.",giveplayer);
										SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
										SendClientMessage(playerid, COLOR_LIGHTBLUE, "* After the 30 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_LIGHTBLUE, 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_LIGHTBLUE, "* Now that you have confirmed you want the Job, you got a 1 hour Contract.");
							        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new command.");
							        PlayerInfo[playerid][pJob] = GettingJob[playerid];
							        GettingJob[playerid] = 0;
							        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(GetPlayerCash(playerid) > RefillPrice[playerid])
							            {
							                GetPlayerName(RefillOffer[playerid], giveplayer, sizeof(giveplayer));
											GetPlayerName(playerid, sendername, sizeof(sendername));
							                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_LIGHTBLUE, 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_LIGHTBLUE, string);
											PlayerInfo[RefillOffer[playerid]][pPayCheck] += RefillPrice[playerid];
											GivePlayerCash(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_LIGHTBLUE, "* You are frozen till the Live Conversation ends.");
											SendClientMessage(LiveOffer[playerid], COLOR_LIGHTBLUE, "* 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));
												GetPlayerName(playerid, sendername, sizeof(sendername));
												format(string, sizeof(string), "* You allowed %s to free a Jailed Person.", giveplayer);
												SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
												format(string, sizeof(string), "* Officer %s approved (allowed) you to free a Jailed Person. (use /free)", sendername);
												SendClientMessage(giveplayerid, COLOR_LIGHTBLUE,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(GetPlayerCash(playerid) > GuardPrice[playerid])
								    {
									    if(IsPlayerConnected(GuardOffer[playerid]))
									    {
									        GetPlayerName(GuardOffer[playerid], giveplayer, sizeof(giveplayer));
											GetPlayerName(playerid, sendername, sizeof(sendername));
											format(string, sizeof(string), "* You accepted the Protection for $%d from Bodyguard %s.",GuardPrice[playerid],giveplayer);
											SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
											format(string, sizeof(string), "* %s accepted your Protection, and the $%d was added to your PayCheck.",sendername,GuardPrice[playerid]);
											SendClientMessage(GuardOffer[playerid], COLOR_LIGHTBLUE, string);
											PlayerInfo[GuardOffer[playerid]][pPayCheck] += GuardPrice[playerid];
											GivePlayerCash(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(GetPlayerCash(playerid) > DrugPrice[playerid])
								    {
								        if(PlayerInfo[playerid][pDrugs] < 7)
								        {
									        if(IsPlayerConnected(DrugOffer[playerid]))
									        {
									            GetPlayerName(DrugOffer[playerid], giveplayer, sizeof(giveplayer));
												GetPlayerName(playerid, sendername, sizeof(sendername));
												format(string, sizeof(string), "* You bought %d gram for $%d from Drug Dealer %s.",DrugGram[playerid],DrugPrice[playerid],giveplayer);
												SendClientMessage(playerid, COLOR_LIGHTBLUE, 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_LIGHTBLUE, string);
												PlayerInfo[DrugOffer[playerid]][pPayCheck] += DrugPrice[playerid];
												PlayerInfo[DrugOffer[playerid]][pDrugsSkill] ++;
												GivePlayerCash(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,"sex",true) == 0)
							{
							    if(SexOffer[playerid] < 999)
								{
									if(GetPlayerCash(playerid) > SexPrice[playerid])
							  		{
										if (IsPlayerConnected(SexOffer[playerid]))
										{
										    new Car = GetPlayerVehicleID(playerid);
										    if(IsPlayerInAnyVehicle(playerid) && IsPlayerInVehicle(SexOffer[playerid], Car))
										    {
												GetPlayerName(SexOffer[playerid], giveplayer, sizeof(giveplayer));
												GetPlayerName(playerid, sendername, sizeof(sendername));
												format(string, sizeof(string), "* You had sex with Whore %s, for $%d.", giveplayer, SexPrice[playerid]);
												SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
												format(string, sizeof(string), "* %s had sex with you, the $%d was added to your PayCheck.", sendername, SexPrice[playerid]);
												SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, string);
												PlayerInfo[SexOffer[playerid]][pPayCheck] += SexPrice[playerid];
												GivePlayerCash(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_LIGHTBLUE, "* You got 30 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You haven't got a STD while having Sex."); }
															else if(STD1[rand] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 30 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Chlamydia because of the Sex."); }
															else if(STD1[rand] == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 30 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Gonorrhea because of the Sex."); }
															else if(STD1[rand] == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 30 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* 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_LIGHTBLUE, "* You got 60 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You haven't got a STD while having Sex."); }
															else if(STD2[rand] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 60 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Chlamydia because of the Sex."); }
															else if(STD2[rand] == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 60 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Gonorrhea because of the Sex."); }
															else if(STD2[rand] == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 60 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* 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_LIGHTBLUE, "* You got 90 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You haven't got a STD while having Sex."); }
															else if(STD3[rand] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 90 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Chlamydia because of the Sex."); }
															else if(STD3[rand] == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 90 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Gonorrhea because of the Sex."); }
															else if(STD3[rand] == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 90 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* 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_LIGHTBLUE, "* You got 120 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You haven't got a STD while having Sex."); }
															else if(STD4[rand] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Chlamydia because of the Sex."); }
															else if(STD4[rand] == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Gonorrhea because of the Sex."); }
															else if(STD4[rand] == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* 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_LIGHTBLUE, "* Your Sex Skill Level is so high you gave high health and No STD.");
															SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* The Whore's Sex Skill Level is so high you got high health and No STD.");
														}
								      				}
													else
													{
													    SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* The player used a Condom.");
													    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You used a Condom.");
													    Condom[playerid] --;
													}
												}
												else
												{
												    SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* 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(GetPlayerCash(playerid) > RepairPrice[playerid])
								    {
									    if(IsPlayerInAnyVehicle(playerid))
									    {
									        if(IsPlayerConnected(RepairOffer[playerid]))
									        {
										        GetPlayerName(RepairOffer[playerid], giveplayer, sizeof(giveplayer));
												GetPlayerName(playerid, sendername, sizeof(sendername));
										        RepairCar[playerid] = GetPlayerVehicleID(playerid);
										        SetVehicleHealth(RepairCar[playerid], 1000.0);
												format(string, sizeof(string), "* You repaired your car for $%d by Car Mechanic %s.",RepairPrice[playerid],giveplayer);
												SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
												format(string, sizeof(string), "* You fixed %s's car, the $%d has been added to your PayCheck.",sendername,RepairPrice[playerid]);
												SendClientMessage(RepairOffer[playerid], COLOR_LIGHTBLUE, string);
												PlayerInfo[RepairOffer[playerid]][pMechSkill] ++;
								                if(PlayerInfo[RepairOffer[playerid]][pMechSkill] == 50)
												{ SendClientMessage(RepairOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 2, you can add more Fuel to any Players Cars."); }
												else if(PlayerInfo[RepairOffer[playerid]][pMechSkill] == 100)
												{ SendClientMessage(RepairOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 3, you can add more Fuel to any Players Cars."); }
												else if(PlayerInfo[RepairOffer[playerid]][pMechSkill] == 200)
												{ SendClientMessage(RepairOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 4, you can add more Fuel to any Players Cars."); }
												else if(PlayerInfo[RepairOffer[playerid]][pMechSkill] == 400)
												{ SendClientMessage(RepairOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 5, you can add more Fuel to any Players Cars."); }
												PlayerInfo[RepairOffer[playerid]][pPayCheck] += RepairPrice[playerid];
												GivePlayerCash(playerid, -RepairPrice[playerid]);
										        RepairOffer[playerid] = 999;
												RepairPrice[playerid] = 0;
												return 1;
											}
											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
#2

If I understand correctly, you want a helmet to appear when a player enters a bike?
Then you'll have to get a list off all bike IDs, and check if he enters one of them in OnPlayerEnterVehicle.. Then you give him the helmet and send the message.

As for the accept.. I can't believe that nothing happens, be more specific
Reply
#3

FIXED helmet plezz help with /accept i type and nothing happens...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)