SA-MP Forums Archive
[AJUDA] Ligar NPC - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Ligar NPC (/showthread.php?tid=170396)



[AJUDA] Ligar NPC - Lucca-Design - 22.08.2010

Olб galera, eu baixei um Game Mode aqui do fуrum, ele vinha com NPC's, e pelo oque vi no gm, ele ja esta todo configurado ..

Eu nunca mechi com NPC, queria saber como eu ativo eles ..

- Obs: No server.cfg tenho a linha ''maxnpc 0'' .
- Obs: os Npc's estгo na pasta ''npcmodes'' .
- Obs: O Server dб o seguinte aviso:

Код:
----------------------------------
[20:46:11]  Los Santos Cops And Robbers [Mr_Tom] 
[20:46:11] ----------------------------------

[20:46:11] Number of vehicle models: 86
[20:46:11] Incoming connection: 127.0.0.1:63545
[20:46:11] Incoming connection: 127.0.0.1:63546
[20:46:11] Incoming connection: 127.0.0.1:63547
[20:46:11] Incoming connection: 127.0.0.1:63548
[20:46:11] Incoming connection: 127.0.0.1:63549
[20:46:11] Incoming connection: 127.0.0.1:63550
[20:46:11] Incoming connection: 127.0.0.1:63551
[20:46:16] *** * Barney :Nickname is already in use.
[20:46:24] *** MODE :You have not registered
[20:46:24] *** PRIVMSG :You have not registered
[20:46:24] *** JOIN :You have not registered
[20:46:24] *** JOIN :You have not registered
Des de jб, agradeзo quem tentar me ajudar =] ..


Re: [AJUDA] Ligar NPC - SuB_ZeRo0_ - 22.08.2010

Mude o maxnpcs no server.cfg para a quantidade de NPCs que precisam ser criados.


Re: [AJUDA] Ligar NPC - BlackFin - 22.08.2010

Onde ta
maxnpc 0
troca o 0 pelo numero de npc que vocк quer que entre...
se colocar 5 o maximo de npcs que ira entrar serб 5...


Re: [AJUDA] Ligar NPC - Lucca-Design - 22.08.2010

Quote:
Originally Posted by SuB_ZeRo0_
Посмотреть сообщение
Mude o maxnpcs no server.cfg para a quantidade de NPCs que precisam ser criados.
Obrigado, mas nгo nгo deu 100% .. Ele ligou, mas todos sairam do server .. ;x

Код:
[21:01:43] Number of vehicle models: 87
[21:01:43] Incoming connection: 127.0.0.1:55778
[21:01:43] [npc:join] [BOT]Tension has joined the server (0:127.0.0.1)
[21:01:43] Incoming connection: 127.0.0.1:55779
[21:01:43] [npc:join] [BOT]Pulaski has joined the server (1:127.0.0.1)
[21:01:43] Incoming connection: 127.0.0.1:55780
[21:01:43] [npc:join] [BOT]Sugar has joined the server (2:127.0.0.1)
[21:01:43] Incoming connection: 127.0.0.1:55782
[21:01:43] [npc:join] [BOT]Charlie has joined the server (4:127.0.0.1)
[21:01:43] Incoming connection: 127.0.0.1:55781
[21:01:43] [npc:join] [BOT]RehaB has joined the server (3:127.0.0.1)
[21:01:43] Incoming connection: 127.0.0.1:55783
[21:01:43] [npc:join] [BOT]Buzz has joined the server (5:127.0.0.1)
[21:01:43] Incoming connection: 127.0.0.1:55784
[21:01:43] [npc:join] [BOT]Del_Trotter has joined the server (6:127.0.0.1)
[21:01:46] [chat] [[BOT]Buzz]: * Departing Los Santos International Airport in 1 Game Hour. Destination: Abandoned Airfield
[21:01:56] [LEAVE] [BOT]Tension Has left the server. Reason: 0
[21:01:56] [npc:part] [BOT]Tension has left the server (0:0)
[21:01:56] [LEAVE] [BOT]Pulaski Has left the server. Reason: 0
[21:01:56] [npc:part] [BOT]Pulaski has left the server (1:0)
[21:01:56] [LEAVE] [BOT]RehaB Has left the server. Reason: 0
[21:01:56] [npc:part] [BOT]RehaB has left the server (3:0)



Re: [AJUDA] Ligar NPC - SuB_ZeRo0_ - 23.08.2010

Tem algo no OnPlayerConnect que atrapalhe eles? Tipo LoginBox algo assim?
Amanhг vejo com mais atenзгo.

Boa Noite!


Re: [AJUDA] Ligar NPC - Lucca-Design - 23.08.2010

Ok, obrigado. Sim, tem login. Mas esses NPC'S virгo com o GM. Provalvelmente deve ter jб..

Код:
public OnPlayerConnect(playerid)
{

    new plrIP[16]; // The varyable
    GetPlayerIp(playerid, plrIP, sizeof(plrIP)); // I am getting their IP and storing it.

	new stringg[156];
 	new namee[30];
    GetPlayerName(playerid,namee,30);
	format(stringg,sizeof(stringg),"~g~Connect: ~y~%s~b~ [%d]",namee,playerid);
    AddConnection(stringg);
    
    PlayerIP[playerid] = plrIP;
	
	if(!IsPlayerNPC(playerid))
	{
	    new name[30];
	    GetPlayerName(playerid,name,30);
	    if(!strcmp(name,"[BOT]Tension",true) || !strcmp(name,"[BOT]Pulaski",true) || !strcmp(name,"Vacant_House",true) || !strcmp(name,"Vacant_Business",true) || !strcmp(name,"RehaB",true) || !strcmp(name,"[BOT]Charlie",true) || !strcmp(name,"[BOT]Buzz",true) || !strcmp(name,"[BOT]Del_Trotter",true))
	    {
	        SendClientMessage(playerid,COLOR_RED,"This name is reserved! Change your name!");
			Kick(playerid);
		}
	}
Obrigado, Boa Noite !


Re: [AJUDA] Ligar NPC - BlackFin - 23.08.2010

lol tu botou pra kickar os bots kkk


Re: [AJUDA] Ligar NPC - sergio_xd - 23.08.2010

pqp em luca arruma um avatar proprio. edito o meu que feio.... AFF viu agora preciso de um avatar novo


Re: [AJUDA] Ligar NPC - Lucca-Design - 23.08.2010

Quote:
Originally Posted by BlackFin
Посмотреть сообщение
lol tu botou pra kickar os bots kkk
SHAHSAHSA' Nггo ..

Quote:
Originally Posted by sergio_xd
Посмотреть сообщение
pqp em luca arruma um avatar proprio. edito o meu que feio.... AFF viu agora preciso de um avatar novo
SHAHSAHSA' Nггo ..І

- kkk, malz, йй que nunca vim nesse fуrum, ficava sу no Releases. Quando tiver tempo troco .. kk


Re: [AJUDA] Ligar NPC - Lucca-Design - 25.08.2010

Desculpem, mas quero dar um UPP no tуpico.. Desculpe-me pelo duple-post e spam ..