NPC little problem
#1

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 :
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
Reply
#2

Why SendCommand didnt work?

Show us the code you used.

Im using SendCommand with OnPlayerCommand Callback and its working fine.
Reply
#3

pawn Код:
public OnRecordingPlaybackEnd() // he need to disconnect here
{
SendCommand("/quit");
return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)