npcmode mappában hozz létre egy npc_john nevü pwn fájlt és másold bele a következõket: #define RECORDING \"felvett record neve, írd át\"
#define RECORDING_TYPE 2
#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
majd a filterscript / npc pwn fájlodba másold be ezt:
#include <a_samp>
#include <a_npc>
public OnFilterScriptInit()
{
ConnectNPC(\"John\",\"npc_john\");
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if (!strcmp(npcname, \"John\", true))
{
SetPlayerSkin(playerid, 16);
}
}
return 1;
}