Car Breakin
#1

Код:
CMD:carbreakin(playerid, params[])
{
    new Float: vX, Float: vY, Float: vZ;
   	for(new i=0; i<MAX_VEHICLES; i++)
	{
		GetVehiclePos(i, vX, vY, vZ);
		{
  			if(IsPlayerInRangeOfPoint(playerid, 10.0, vX, vY, vZ))
    		{
        		SendClientMessage(playerid, COLOR_LIGHTRED, "You're near a car and the breakin bit needs adding");
    		}
    		else return SendClientMessage(playerid, COLOR_LIGHTRED, "You're near to car!");
		}
	}
	return 1;
}
So I'm trying to get this to work, so that I can allow the player to break into locked vehicles, currently it just says you are not near to the car even when you're in distance of one :/
Reply


Messages In This Thread
Car Breakin - by izeatfishz - 09.04.2015, 09:38
Re: Car Breakin - by Evocator - 09.04.2015, 09:49
Re: Car Breakin - by izeatfishz - 09.04.2015, 10:13
Re: Car Breakin - by izeatfishz - 09.04.2015, 10:21
Re: Car Breakin - by izeatfishz - 09.04.2015, 10:30
Re: Car Breakin - by Scrillex - 09.04.2015, 10:31
Re: Car Breakin - by izeatfishz - 09.04.2015, 10:43
Re: Car Breakin - by Scrillex - 09.04.2015, 10:50

Forum Jump:


Users browsing this thread: 5 Guest(s)