SA-MP Forums Archive
Need help wit h CNPC - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help wit h CNPC (/showthread.php?tid=255613)



need help with Controllable npc - PhantomDot1 - 16.05.2011

i want to make a npc car vulnerable, this is the script without cnpc:
Код:
#define RECORDING "Balla_dbcar"
#define RECORDING_TYPE 1

#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);

#if RECORDING_TYPE == 1
	public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
    public OnNPCExitVehicle() StopRecordingPlayback();

#else
	public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);

#endif
how can i "convert" this so i can change it so it works with cnpc?
and how can i make the car vulnerable?
and if i dont need to change this file, what do i add/edit than !!

PLEASE HELP ME!!