06.12.2009, 18:55
When i use the function PutPlayerInVehicle for a NPC, the NPC doesn't go in and then disconnects from the server a couple seconds later whats going on? (My other NPC's that aren't vehicle NPC's don't disconnect either way)
ive noticed that if i remove PutPlayerInVehicle from the filterscript, the NPC doesn't disconnect
Код:
#include <a_samp> new vehicle; public OnFilterScriptInit() { ConnectNPC("1st","1st"); vehicle = AddStaticVehicle(492,1071.8664,-1854.9331,13.1725, -90, 0, 0); // bus1 return 1; } public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); if(!strcmp(npcname, "1st", true)) { PutPlayerInVehicle(playerid, vehicle, 0); } return 1; } return 1; }