[AJUDA] Ligar NPC
#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


Messages In This Thread
[AJUDA] Ligar NPC - by Lucca-Design - 22.08.2010, 23:49
Re: [AJUDA] Ligar NPC - by SuB_ZeRo0_ - 22.08.2010, 23:55
Re: [AJUDA] Ligar NPC - by BlackFin - 22.08.2010, 23:55
Re: [AJUDA] Ligar NPC - by Lucca-Design - 22.08.2010, 23:59
Re: [AJUDA] Ligar NPC - by SuB_ZeRo0_ - 23.08.2010, 00:06
Re: [AJUDA] Ligar NPC - by Lucca-Design - 23.08.2010, 00:12
Re: [AJUDA] Ligar NPC - by BlackFin - 23.08.2010, 00:29
Re: [AJUDA] Ligar NPC - by sergio_xd - 23.08.2010, 01:07
Re: [AJUDA] Ligar NPC - by Lucca-Design - 23.08.2010, 01:55
Re: [AJUDA] Ligar NPC - by Lucca-Design - 25.08.2010, 21:48

Forum Jump:


Users browsing this thread: 2 Guest(s)