20.06.2010, 06:01
Код:
#define RECORDING "los" //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
Код:
if(IsPlayerNPC(playerid)) //Verifica daca playerul este NPC { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); //Luam numele NPCului if(!strcmp(npcname, "LSBus", true)) //Verificam daca numele NPCului este "NUME" { SetPlayerSkin(playerid,0); PutPlayerInVehicle(0, NPCVehicle, 0); //Punem NPCul in vehicul } return 1; }