SA-MP Forums Archive
Need help! :o - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help! :o (/showthread.php?tid=75169)



Need help! :o - Dol - 29.04.2009

Hey I made a textdraw for renting a bike:

Код:
		if(newcar >= 112 && newcar <= 130)
		{
		  if (HireCar[playerid] != newcar)
			{
				TextDrawShowForPlayer(playerid,RentABikeLogo)
				TextDrawShowForPlayer(playerid,RentABikeInfo)
				format(string, sizeof(string), "~n~Vehicle: ~b~Bike ~n~~w~Price: ~g~$%d ~n~To rent type: ~g~/rentbike~w~. ~r~/exit ~w~to exit vehicle.", SBizzInfo[1][sbEntranceCost]);
				TextDrawSetString(RentABikeInfo, string);
				TogglePlayerControllable(playerid, 0);
			}
		}
It works great but how can I make it disapear when you exit the vehicle, not just /exit because you can also exit the vehicle with ''F''. Please help! I already got it working when you type: /rentbike (I just put TextDrawHideForPlayer in the command) but when you exit normally without renting it's there (DUH) so I need help!


Re: Need help! :o - Dol - 29.04.2009

Help please.


Re: Need help! :o - Dol - 29.04.2009

Bump.