hotkey as command?
#1

Hello, it's probaly extremely simple but I just can't find it so quick and I really need it right now, my command to enter any property is /enter and /exit, how do I get it working if i'm at the entrance I can press space to enter/exit?

Part of code:

Код:
	if(strcmp(cmd, "/enter", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
		{
		    new Float:shax, Float:shay, Float:shaz;
			new Float:shbx, Float:shby, Float:shbz;
			new Float:shcx, Float:shcy, Float:shcz;
			GetVehiclePos(EnterableShamals[0], shax, shay, shaz);
			GetVehiclePos(EnterableShamals[1], shbx, shby, shbz);
			GetVehiclePos(EnterableShamals[2], shcx, shcy, shcz);
	    for(new i = 0; i < sizeof(HouseInfo); i++)
		{
			if(IsPlayerInRangeOfPoint(playerid, 3, HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ]))
 			{
				if(GetPlayerVirtualWorld( playerid) == 0)
  				{
  					if(HouseInfo[i][hLocked] == 0 || PlayerInfo[playerid][pScrew] >= 1)
     				{
   	    				if(PlayerInfo[playerid][pMask] == 1)
						{
Hopefully anybody can help me! Thanks!
Reply


Messages In This Thread
hotkey as command? - by whando - 13.11.2013, 17:51
Re: hotkey as command? - by Konstantinos - 13.11.2013, 17:55
Re: hotkey as command? - by whando - 13.11.2013, 18:05
Re: hotkey as command? - by Konstantinos - 13.11.2013, 18:13
Re: hotkey as command? - by whando - 13.11.2013, 18:24
Re: hotkey as command? - by Konstantinos - 13.11.2013, 18:27
Re: hotkey as command? - by whando - 13.11.2013, 18:40
Re: hotkey as command? - by Konstantinos - 13.11.2013, 18:41
Re: hotkey as command? - by whando - 13.11.2013, 18:51
Re: hotkey as command? - by Konstantinos - 13.11.2013, 18:57

Forum Jump:


Users browsing this thread: 5 Guest(s)