20.07.2011, 20:51
Hi All ,
I want that when my NPC completed playback, that he disconnect , never mind how , kick or anything else
please help , i was tryed with SendCommand("/quit"); but its not working , here is my code :
I want that when my NPC completed playback, that he disconnect , never mind how , kick or anything else
please help , i was tryed with SendCommand("/quit"); but its not working , here is my code :
pawn Код:
#include <a_npc>
#include <a_samp>
#define RECORDING "MHMav"
#define RECORDING_TYPE 1
main(){}
public OnRecordingPlaybackEnd() // he need to disconnect here
{
return 0;
}
#if RECORDING_TYPE == 1
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();
#else
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif