06.02.2010, 10:11
Hi why my NPC is joining the game and quickly left the server ?? my server is RP i think he can't login but how do i can the NPC auto login in to server ? sorry for my bad english
that's is FS
|
|
v
that's is FS
|
|
v
Код:
#define FILTERSCRIPT #include <a_samp> #if defined FILTERSCRIPT new Beagle; public OnFilterScriptInit() { print("Beagle Flyer By Mozilla Firfox Loaded."); ConnectNPC("Beagle","Beagle"); Beagle = CreateVehicle(511, 0.0, 0.0, 5.0, 0.0, 6, 0, 5000); return 1; } public OnFilterScriptExit() { print("Beagle Flyer Unloaded."); return 1; } #else #endif public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); if(!strcmp(npcname, "Beagle", true)) { PutPlayerInVehicle(playerid, Beagle, 0); } return 1; } return 1; }