Car Breakin
#2

Код:
CMD:carbreakin(playerid, params[])
{
	new 
		Float: vX, 
		Float: vY,
		Float: vZ
	;

   	for(new i = 0; i != MAX_VEHICLES; i++)
	{
		if (!IsValidVehicle(vehicleid))
			continue;

		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");
        	break;
    	}
    	else 
    	{
    		SendClientMessage(playerid, COLOR_LIGHTRED, "You're not near to car!");
    	}
	}
	return 1;
}
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: 3 Guest(s)