06.10.2010, 00:33
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; }