09.07.2010, 01:27
Hello, I have a problem with my NPC, it connects and everything but the aparescan me with the (/ goto) appears on a farm and you are standing, someone knows what's the problem? need the code? Please Help me!
#define FILTERSCRIPT #include <a_samp> #if defined FILTERSCRIPT new CAR; new CARONE; public OnGameModeInit() { return 1; } public OnGameModeExit() { return 1; } #else main() { print("\n----------------------------------"); print(" Bots for SAMP"); print("----------------------------------\n"); } #endif public OnFilterScriptInit() { print("Bots for SAMP"); ConnectNPC("Bryan","Bryan" ); ConnectNPC("[NPC]BUS_LV_LS","BUS_LV_LS" ); CAR = CreateVehicle(437,0,0,5,0,3,3,6000); CARONE = CreateVehicle(437,0,0,5,0,3,3,6000); return 1; } public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC. { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name. if(!strcmp(npcname, "Bryan", true)) //Checking if the NPC's name is MyFirstNPC { PutPlayerInVehicle(playerid, CAR, 0); //Putting the NPC into the vehicle we created for it. return 1; } if(!strcmp(npcname, "[NPC]BUS_LV_LS", true))//The other NPC { PutPlayerInVehicle(playerid, CARONE, 0); return 1; } return 1; } //Other stuff for normal players goes here! return 1; }