public OnPlayerStateChange(playerid, newstate, oldstate) { if (newstate == PLAYER_STATE_ENTER_VEHICLE_PASSENGER) { if (IsPlayerInVehicle(playerid, LietadloNPC) { ConnectNPC("Dave","at400_ls"); //Nasadol ako pasažier do lietadla } } return 1; }
Parameters:
(name[], script[])
name[] The name the NPC should connect as. Must follow the same rules as normal player names. script[] The NPC script name that is located in the npcmodes folder (without the .amx extension). Máš to dobré ?