SA-MP Forums Archive
bind f Problem - 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)
+--- Thread: bind f Problem (/showthread.php?tid=574237)



bind f Problem - PinAxXx - 14.05.2015

hello guys.
i binded f for /enter and /exit for biz and house and..
but i have problem with it
if player on car used /enter and player can not Riding Car near biz and house .

code :
Код:
    if(PRESSED(KEY_SECONDARY_ATTACK))
    {
        if(OnRentMashinMessage[playerid] == true)
        {
			GameTextForPlayer(playerid, " ", 500, 3);
			TogglePlayerControllable(playerid, 1);
			RemovePlayerFromVehicle(playerid);
			OnRentMashinMessage[playerid] = false;
		}
			OnPlayerCommandText(playerid, "/exit");
			OnPlayerCommandText(playerid, "/enter");
			return 0;
	}
help me.