pirateship command help
#9

Код:
stock IsPlayerInRangeOfVehicle(playerid, veh, Float: range)
{
    if( !IsPlayerConnected( playerid ) ) return 0;
    if( !IsValidVehicle( veh ) ) return 0;

	new Float: x,
        Float: y,
        Float: z
	;
	GetVehiclePos( veh, x, y, z );

	if( IsPlayerInRangeOfPoint( playerid, range, x, y, z ) ) return 1;
	return 0;
}
thank you so much ALY your reply gave me an idea of how the stock funtion works and i ended up finding this code and thanks to you redoing the actual script it was easy for me to insert this stock instead i also added another pirate ship and it works great
Reply


Messages In This Thread
pirateship command help - by PSYCHOBABYKILLA - 26.03.2015, 11:24
Re: [HELP]pirateship command help - by CalvinC - 26.03.2015, 11:27
Re: [HELP]pirateship command help - by Aly - 26.03.2015, 11:31
Re: pirateship command help - by PSYCHOBABYKILLA - 26.03.2015, 21:53
Re: pirateship command help - by Pottus - 26.03.2015, 21:55
Re: pirateship command help - by PSYCHOBABYKILLA - 26.03.2015, 22:05
Re: pirateship command help - by Pottus - 26.03.2015, 22:09
Re: pirateship command help - by PSYCHOBABYKILLA - 26.03.2015, 23:22
Re: pirateship command help - by PSYCHOBABYKILLA - 27.03.2015, 02:34
Re: pirateship command help - by CalvinC - 27.03.2015, 05:42

Forum Jump:


Users browsing this thread: 1 Guest(s)