06.03.2018, 14:44
Quote:
of course no, becouse the npc does not react for putplayerinvehicle. i've loaded the default SA-MP 'npctest' npc file, and all of the callbacks wont called i does not know, why. i've put the code into the default bare gamemode too and the npc was playing back the recording well but with addstatisvehicle, (i did not tried createvehicle) so the problem is in my mode. but what could cause this? it can't be removed by a timer becouse the removing was soooo fast. maybe a callback can cause this? i've deactivated all of the anticheat and nothing changed... i'm so puzzled... this is my first npc that driving a vehicle and i'm just suffer with
|
When putting an NPC into a Vehicle, it will then call the callback OnNPCEnterVehicle() in the NPC Mode. Here you have to start the recording (it must be a vehicle recording).
Код:
public OnNPCEnterVehicle() { StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER, "myrecording"); }
You can test this by adding
Код:
if(IsPlayerNPC(playerid)) return 1;