11.08.2011, 03:44
Hello when I add an NPC who drives a vehicle when I start my server I connect the bot to spawn and reproduce, but not in the vehicle in which he must be the spawn place it in the sky and the sky does not move..
Pic
Pic
Код:
#include <a_samp> new test; // this name in order to find if vou have a bot of 30 in the same script! public OnGameModeInit() { // NPCS ConnectNPC("bot_1","test"); // Connection of your bot, bot_1 is the name and test the name of your bot folder npcmodes! test = AddStaticVehicle(420,1191.0925,-1325.0585,13.2580,359.6439,6,1); // To create the vehicle to the starting position of the recording taking the position in the savedpositions when you made / save! return 1; } public OnPlayerSpawn(playerid) { if(!IsPlayerNPC(playerid)) return 0; // We deal only in NPC script will not add any other !!! new playername[64]; GetPlayerName(playerid,playername,64); if(!strcmp(playername,"test",true)) { //Name your recording PutPlayerInVehicle(playerid, test, 0); // Idem SetSpawnInfo( playerid, 0, 255, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 ); // Leave this default will not change unless you want ^ ^ ShowPlayerMarkers(0); } return 1; }