[Ajuda] Npc nгo da Spawn
#1

Criei 2 NPc's sу que eles nгo dгo spawn.
alguem me ajuda? '-'
Obs:Criei esse npc na cagada pq eu so um nb!
pawn Код:
#include a_samp

public OnFilterScriptInit()
{
    ConnectNPC("Mayara","puta");
    ConnectNPC("Administrator","cafetao");
    return 1;
}

public OnPlayerConnect(playerid)
{
    if(IsPlayerNPC(playerid)) return 1;
    return 1;
}

public OnPlayerRequestClass(playerid,classid)
{
    if(IsPlayerNPC(playerid)) return 1;
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    if(IsPlayerNPC(playerid)) return 1;
    return 1;
}

public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
    {
        new npcname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, npcname, sizeof(npcname));
        if(!strcmp(npcname, "Mayara", true))
        {
            SetPlayerSkin(playerid, 211);
            SetPlayerPos(playerid,1154.1437,-1769.2747,16.5938);
            SetPlayerColor(playerid,0xFFFFFF00);
            ApplyAnimation(playerid, "BAR","Barserve_loop", 4.0, 0, 1, 1, 1, 0, 1);
        }
        else if(!strcmp(npcname, "Administrator", true))
        {
            SetPlayerSkin(playerid, 217);
            SetPlayerPos(playerid,1154.1437,-1769.2747,16.5938);
            SetPlayerColor(playerid,0xFFFFFF00);
        }
        return 1;
    }
    return 1;
}

public OnPlayerUpdate(playerid)
{
    if(IsPlayerNPC(playerid)) return 1;
    return 1;
}
Reply
#2

Sу pra saber, tu mudou o valor do maxnpc do server.cfg?
Reply
#3

Sim ta 100
Reply
#4

Criou os scripts na pasta npcmodes?
Reply
#5

tabem ja tem..
Reply
#6

Posta ae o server.log
Reply
#7

pawn Код:
SA-MP Dedicated Server
----------------------
v0.3d, (C)2005-2011 SA-MP Team

[12:52:26] hostname = "SA:MP Server"  (string)
[12:52:26] password = ""  (string)
[12:52:26]
[12:52:26] Server Plugins
[12:52:26] --------------
[12:52:26]  Loading plugin: streamer
[12:52:26]

*** Streamer Plugin v2.5.2 by Incognito loaded ***

[12:52:26]   Loaded.
[12:52:26]  Loaded 1 plugins.

[12:52:26]
[12:52:26] Filterscripts
[12:52:26] ---------------
[12:52:26]   Loading filterscript 'so1.amx'...
[12:52:26]   Loaded 1 filterscripts.

[12:52:26]
================================================
[12:52:26] ** GameMode - Feito & Atualizado por: pL4yer
[12:52:26] ==================================================
[12:52:26] Number of vehicle models: 9
[12:52:27] Incoming connection: 127.0.0.1:57167
[12:52:27] [npc:join] DJ_pL4yer has joined the server (0:127.0.0.1)
[12:52:34] Blocking 127.0.0.1 due to a 'server full' attack (2)
[12:52:44] [npc:part] DJ_pL4yer has left the server (0:0)

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

SA-MP Dedicated Server
----------------------
v0.3d, (C)2005-2011 SA-MP Team

[12:53:44] hostname = "SA:MP Server"  (string)
[12:53:44] password = ""  (string)
[12:53:44]
[12:53:44] Server Plugins
[12:53:44] --------------
[12:53:44]  Loading plugin: streamer
[12:53:44]

*** Streamer Plugin v2.5.2 by Incognito loaded ***

[12:53:44]   Loaded.
[12:53:44]  Loaded 1 plugins.

[12:53:44]
[12:53:44] Filterscripts
[12:53:44] ---------------
[12:53:44]   Loading filterscript 'so1.amx'...
[12:53:44]   Loaded 1 filterscripts.

[12:53:44]
================================================
[12:53:44] ** GameMode - Feito & Atualizado por: pL4yer
[12:53:44] ==================================================
[12:53:44] Number of vehicle models: 9
[12:53:44] Incoming connection: 127.0.0.1:53435
[12:53:44] Incoming connection: 127.0.0.1:53436
[12:53:44] [npc:join] Administrator has joined the server (1:127.0.0.1)
[12:53:44] [npc:join] Mayara has joined the server (0:127.0.0.1)
[12:54:17] Incoming connection: 127.0.0.1:59397
[12:54:18] [join] [LF]PlaYer has joined the server (2:127.0.0.1)
[12:54:30] [chat] [[LF]PlaYer]: aa
[12:58:52] [chat] [[LF]PlaYer]: a

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

SA-MP Dedicated Server
----------------------
v0.3d, (C)2005-2011 SA-MP Team

[13:14:34] hostname = "SA:MP Server"  (string)
[13:14:34] password = ""  (string)
[13:14:34]
[13:14:34] Server Plugins
[13:14:34] --------------
[13:14:34]  Loading plugin: streamer
[13:14:34]

*** Streamer Plugin v2.5.2 by Incognito loaded ***

[13:14:34]   Loaded.
[13:14:34]  Loaded 1 plugins.

[13:14:34]
[13:14:34] Filterscripts
[13:14:34] ---------------
[13:14:34]   Loading filterscript 'so1.amx'...
[13:14:34]   Loaded 1 filterscripts.

[13:14:34]
==================================================
[13:14:34] ** GameMode - Feito & Atualizado por: pL4yer
[13:14:34] ==================================================
[13:14:34] Number of vehicle models: 9
[13:14:34] Incoming connection: 127.0.0.1:54147
[13:14:34] Incoming connection: 127.0.0.1:54148
[13:14:34] [npc:join] Administrator has joined the server (0:127.0.0.1)
[13:14:34] [npc:join] Mayara has joined the server (1:127.0.0.1)
[13:15:02] [npc:part] Administrator has left the server (0:0)
[13:15:02] [npc:part] Mayara has left the server (1:0)

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

SA-MP Dedicated Server
----------------------
v0.3d, (C)2005-2011 SA-MP Team

[13:15:11] hostname = "SA:MP Server"  (string)
[13:15:11] password = ""  (string)
[13:15:11]
[13:15:11] Server Plugins
[13:15:11] --------------
[13:15:11]  Loading plugin: streamer
[13:15:11]

*** Streamer Plugin v2.5.2 by Incognito loaded ***

[13:15:11]   Loaded.
[13:15:11]  Loaded 1 plugins.

[13:15:11]
[13:15:11] Filterscripts
[13:15:11] ---------------
[13:15:11]   Loading filterscript 'so1.amx'...
[13:15:11]   Loaded 1 filterscripts.

[13:15:11]
==================================================
[13:15:11] ** GameMode - Feito & Atualizado por: pL4yer
[13:15:11] ==================================================
[13:15:11] Number of vehicle models: 9
[13:15:11] Incoming connection: 127.0.0.1:64533
[13:15:11] Incoming connection: 127.0.0.1:64534
[13:15:11] [npc:join] Mayara has joined the server (0:127.0.0.1)
[13:15:12] [npc:join] Administrator has joined the server (1:127.0.0.1)
[13:15:30] Incoming connection: 127.0.0.1:59855
[13:15:30] [join] [LF]PlaYer has joined the server (2:127.0.0.1)
[13:17:29] [part] [LF]PlaYer has left the server (2:0)
[13:17:41] Incoming connection: 127.0.0.1:57956
[13:17:41] [join] [LF]PlaYer has joined the server (2:127.0.0.1)
[13:29:38] RCON (In-Game): Player #2 ([LF]PlaYer) has logged in.
[13:30:37] [chat] [[LF]PlaYer]: aa
[13:30:42] RCON (In-Game): Player [[LF]PlaYer] sent command: reloadfs TextDrawEditor1.0
[13:30:42]   Filterscript 'TextDrawEditor1.0.amx' unload failed.
[13:30:42]
--------------------------------------
[13:30:42]  Text Draw Editor 1.0RC2 by Zamaroht for SA-MP 0.3 Loaded.
[13:30:42] --------------------------------------

[13:30:42]   Filterscript 'TextDrawEditor1.0.amx' loaded.
Reply
#8

Nossa, deleta ele, abre o server, e depois posta.
Reply
#9

pawn Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3d, (C)2005-2011 SA-MP Team

[13:56:56] hostname = "SA:MP Server"  (string)
[13:56:56] password = ""  (string)
[13:56:56]
[13:56:56] Server Plugins
[13:56:56] --------------
[13:56:56]  Loading plugin: streamer
[13:56:56]

*** Streamer Plugin v2.5.2 by Incognito loaded ***

[13:56:56]   Loaded.
[13:56:56]  Loaded 1 plugins.

[13:56:56]
[13:56:56] Filterscripts
[13:56:56] ---------------
[13:56:56]   Loading filterscript 'so1.amx'...
[13:56:56]   Loading filterscript 'TextDrawEditor1.0.amx'...
[13:56:56]
--------------------------------------
[13:56:56]  Text Draw Editor 1.0RC2 by Zamaroht for SA-MP 0.3 Loaded.
[13:56:56] --------------------------------------

[13:56:56]   Loaded 2 filterscripts.

[13:56:56]
==================================================
[13:56:56] ** GameMode - Feito & Atualizado por: pL4yer
[13:56:56] ==================================================
[13:56:56] Number of vehicle models: 9
[13:56:56] Incoming connection: 127.0.0.1:58064
[13:56:56] Incoming connection: 127.0.0.1:58065
[13:56:56] [npc:join] Mayara has joined the server (0:127.0.0.1)
[13:56:57] [npc:join] Administrator has joined the server (1:127.0.0.1)
Obs:
so1.amx e o FS dos NPC..
Reply
#10

O GM pode estar bloqueando a entrada deles, tenta entrar em um padrгo do samp. No grandlarc por exemplo.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)