04.09.2016, 22:41
NPC
05.09.2016, 04:29
Hello oktok1,
In order to connect a NPC you have to allow "him" connect by passing some conditions like if there is a register system or a NPC limit (MAX_NPC).Check if the NPC joins correctly or spawn and then disconnects it might be an issue in your script.Anyway you can read the sa-mp wiki as it is very useful.
Category : NPC - SA-MP Wiki
Greetings.
In order to connect a NPC you have to allow "him" connect by passing some conditions like if there is a register system or a NPC limit (MAX_NPC).Check if the NPC joins correctly or spawn and then disconnects it might be an issue in your script.Anyway you can read the sa-mp wiki as it is very useful.
Category : NPC - SA-MP Wiki
Greetings.
05.09.2016, 12:19
(
Последний раз редактировалось oktokt1; 05.09.2016 в 14:08.
)
Quote:
Hello oktok1,
In order to connect a NPC you have to allow "him" connect by passing some conditions like if there is a register system or a NPC limit (MAX_NPC).Check if the NPC joins correctly or spawn and then disconnects it might be an issue in your script.Anyway you can read the sa-mp wiki as it is very useful. Category : NPC - SA-MP Wiki Greetings. |
05.09.2016, 13:44
Link of Tutorial NPC :
https://sampforum.blast.hk/showthread.php?tid=355372
How to Connect NPC To Server :
First of all, before entering the script you want to add the NPC to, you'll have to know a few things:
- NPCs are almost like normal players for the server. They're taking a slot but can't be viewed from player lists. To make sure that we have place for the npcs, we need to take a look at the server.cfg: there are variable names "maxnpcs" which means the limit of NPCs that can connect to the server at once. It is recommended to set it as the exact number of NPCs that should be connected to the server.
- After connecting an NPC to the server, it will stay connected, as long you don't kick him from the server. If his playback ends, and it isn't using a loop, it will still be connected without a playback to play. When a gamemode ends, all of the players are getting out of the servers until the next gamemode loaded, it contains the NPCs too - if the gamemode changes they will quit as all the players, but they'll not return because they need a script to connect them.
( Taken from Tutorial )
https://sampforum.blast.hk/showthread.php?tid=355372
How to Connect NPC To Server :
First of all, before entering the script you want to add the NPC to, you'll have to know a few things:
- NPCs are almost like normal players for the server. They're taking a slot but can't be viewed from player lists. To make sure that we have place for the npcs, we need to take a look at the server.cfg: there are variable names "maxnpcs" which means the limit of NPCs that can connect to the server at once. It is recommended to set it as the exact number of NPCs that should be connected to the server.
- After connecting an NPC to the server, it will stay connected, as long you don't kick him from the server. If his playback ends, and it isn't using a loop, it will still be connected without a playback to play. When a gamemode ends, all of the players are getting out of the servers until the next gamemode loaded, it contains the NPCs too - if the gamemode changes they will quit as all the players, but they'll not return because they need a script to connect them.
( Taken from Tutorial )
05.09.2016, 14:08
Quote:
Link of Tutorial NPC :
https://sampforum.blast.hk/showthread.php?tid=355372 How to Connect NPC To Server : First of all, before entering the script you want to add the NPC to, you'll have to know a few things: - NPCs are almost like normal players for the server. They're taking a slot but can't be viewed from player lists. To make sure that we have place for the npcs, we need to take a look at the server.cfg: there are variable names "maxnpcs" which means the limit of NPCs that can connect to the server at once. It is recommended to set it as the exact number of NPCs that should be connected to the server. - After connecting an NPC to the server, it will stay connected, as long you don't kick him from the server. If his playback ends, and it isn't using a loop, it will still be connected without a playback to play. When a gamemode ends, all of the players are getting out of the servers until the next gamemode loaded, it contains the NPCs too - if the gamemode changes they will quit as all the players, but they'll not return because they need a script to connect them. ( Taken from Tutorial ) |
already Done

are u blind?!
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)