Ich habe als 1:
OnGamemodeinit:
ConnectNPC("Robert","robert");
OnPlayerSpawn:
if(!strcmp(SpielerName(playerid),"Robert",true))
{
SetPlayerSkin(playerid,3);
}
OnPlayerDisconet / OnPlayerConnect / OnPlayerspawn
if(IsPlayerNPC(playerid))return 1;
Dann in npcmodes:
[r]obert. amx und pwn. (das r ohne Klammer)
recording : {r]obert.rec (r ohne Klammer)
Inhalt der PWN:
#include <a_npc>
main(){}
#define RECORDING "robert"
#define RECORDING_TYPE 2
public OnRecordingPlaybackEnd()
StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCEnterVehicle(vehicleid, seatid)
StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle()
StopRecordingPlayback();
public OnNPCSpawn()
{
StartRecordingPlayback(RECORDING_TYPE, RECORDING);
}
Der Bot connect nict