[AJUDA] Ligar NPC
#1

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 =] ..
Reply
#2

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

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...
Reply
#4

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)
Reply
#5

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

Boa Noite!
Reply
#6

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 !
Reply
#7

lol tu botou pra kickar os bots kkk
Reply
#8

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

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
Reply
#10

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


Forum Jump:


Users browsing this thread: 2 Guest(s)