NPC HAS LEFT THE SERVER
#1

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3x, ©2005-2013 SA-MP Team

[16:29:12] Number of vehicle models: 0
[16:29:12] Incoming connection: 127.0.0.1:52100
[16:29:13] [npc:join] npc has joined the server (0:127.0.0.1)
[16:29:15] Incoming connection: 127.0.0.1:52101
[16:29:33] [npcart] npc has left the server (0:0)
[16:29:40] Incoming connection: 127.0.0.1:63146
[16:29:40] [join] Salm0 has joined the server (0:127.0.0.1)

help me please
Reply
#2

Do you have team viewer I may be able to help you out ...
Reply
#3

pawn Код:
public OnGameModeInit()
{
  ConnectNPC("npcname","npcscript");
}
Reply
#4

i solved but have a new problem: how to set skin at bot?
Reply
#5

You can set the Skin for a bot when he spawns.

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
    {
        new name[24];GetPlayerName(playerid,name,24);
        if(strcmp(name,"BOTNAME",true)!=0)
        {
            SetPlayerSkin(playerid, IDSKIN);
        }
    }
}
Next time use please search function or ******.

Same Question
Reply
#6

i searched and tryed but not go..
Reply
#7

Show please how you connect the NPC and how you used what i wrote.
Reply
#8

strangely now go! I had to remove the string:
if (IsPlayerNPC (playerid)) return 1;
thanks all.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)