need help
#1

I made this code and i would like to attach a checkpoint to a andromada. this is my first actaul code. can any one edit this plz. And if yes i will be very greatful.
Код:
#include <a_samp>
#include <a_player>
#include <a_vehicle>



public OnPlayerUpdate(playerid)
{
	new float:X, float:Y, float:Z;
	new vehicleid = GetPlayerVehicleID(playerid);
	if (GetVehicleModel(vehicleid) == 592)
	{
	    if (PRESSED( KEY_ANALOG_DOWN ))
	    GetVehiclePos(vehicleid, X, Y, Z);
	    SetPlayerCheckpoint(vehicleid, X, Y, Z);
	}
	return 1;
}

	new float:X, float:Y, float:Z;
	new vehicleid = GetPlayerVehicleID(playerid);
	if (GetVehicleModel(vehicleid) == 592)
	{
	    if (PRESSED( KEY_ANALOG_UP ))
	    GetVehiclePos(vehicleid, X, Y, Z);
	    DisablePlayerCheckpoint(vehicleid, X, Y, Z);
	}
	return 1;
}
Reply


Messages In This Thread
need help - by nicoud - 06.10.2010, 00:33
Re: need help - by Miguel - 06.10.2010, 02:41
Re: need help - by nicoud - 06.10.2010, 19:22
Re: need help - by Miguel - 07.10.2010, 03:27
Re: need help - by nicoud - 07.10.2010, 10:45

Forum Jump:


Users browsing this thread: 1 Guest(s)