NPC little problem - 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: NPC little problem (
/showthread.php?tid=270558)
NPC little problem -
Amel_PAtomAXx - 20.07.2011
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
Respuesta: NPC little problem -
clavador - 20.07.2011
Why SendCommand didnt work?
Show us the code you used.
Im using SendCommand with OnPlayerCommand Callback and its working fine.
Re: NPC little problem -
Amel_PAtomAXx - 20.07.2011
pawn Код:
public OnRecordingPlaybackEnd() // he need to disconnect here
{
SendCommand("/quit");
return 0;
}