16.07.2012, 07:17
Hey,
i made this npc but i doesnt enter the vehcile and some times samp-npc.exe crashes
the npc stands on vehcile but doesnt enter
i made this npc but i doesnt enter the vehcile and some times samp-npc.exe crashes
the npc stands on vehcile but doesnt enter
Код:
#include <a_samp> #define FILTERSCRIPT new Taxi1_ID, TaxiVehcile_NPC1; public OnFilterScriptInit() { print("NPC-1 is ready"); ConnectNPC("NPC_NAME","Taxi1"); return 1; } public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); if(!strcmp(npcname, "NPC_NAME", true)) { SetPlayerSkin(playerid, 182); TaxiVehcile_NPC1 = AddStaticVehicle(420, 1999.0, -1434.0, 14.8, 0.0, 0, 0); PutPlayerInVehicle(playerid, TaxiVehcile_NPC1, 0); Taxi1_ID = playerid; } } return 1; }