09.01.2010, 05:34
See... NPC should in policecar not on policecar.
There's too 2 NPC staying on two policecar.
What wrong?
OnPlayerSpawn
Код:
if(!strcmp(npcname, "ppolitsei1", true)) { TogglePlayerControllable(playerid, 0); SetPlayerSkin(playerid,280); PutPlayerInVehicle(playerid, Patrull1, 0); return 1; } if(!strcmp(npcname, "ppolitsei2", true)) { TogglePlayerControllable(playerid, 0); SetPlayerSkin(playerid,280); PutPlayerInVehicle(playerid, Patrull2, 0); return 1; }
Код:
#define RECORDING "Patrullpolitsei1" //This is the filename of your recording without the extension. #define RECORDING_TYPE 1 //1 for in vehicle and 2 for on foot. #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
Код:
#define RECORDING "Patrullpolitsei2" //This is the filename of your recording without the extension. #define RECORDING_TYPE 1 //1 for in vehicle and 2 for on foot. #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
Код:
ConnectNPC("ppolitsei1","patrullpolitsei1"); ConnectNPC("ppolitsei2","patrullpolitsei2");