[Help] Setting Bot Skins
#5

Try this..

Код:
public OnFilterScriptInit()
{
	print("BOTS");
	ConnectNPC("Civilian1","nvciv1");
	ConnectNPC("Civilian2","nvciv2diner");
	ConnectNPC("Civilian3","nvciv3");
	ConnectNPC("Civilian4","nvciv4");
	ConnectNPC("Civilian5","nvbouncer");
	return 1;
}
public OnPlayerSpawn(playerid)
{
	if(IsPlayerNPC(playerid))
	{
		new npcname[MAX_PLAYER_NAME];
		GetPlayerName(playerid, npcname, sizeof(npcname));
		if(!strcmp(npcname, "Civilian1", false)) SetPlayerSkin(playerid, 1);
		if(!strcmp(npcname, "Civilian2", false)) SetPlayerSkin(playerid, 11);
		if(!strcmp(npcname, "Civilian3", false)) SetPlayerSkin(playerid, 32);
		if(!strcmp(npcname, "Civilian4", false)) SetPlayerSkin(playerid, 93);
		if(!strcmp(npcname, "Civilian5", false)) SetPlayerSkin(playerid, 30);
	}
	return 1;
}
Reply


Messages In This Thread
[Help] Setting Bot Skins - by DukeVega - 31.01.2015, 22:47
Re: [Help] Setting Bot Skins - by Vince - 31.01.2015, 22:54
Re: [Help] Setting Bot Skins - by CalvinC - 31.01.2015, 22:55
Re: [Help] Setting Bot Skins - by DukeVega - 31.01.2015, 23:18
Re: [Help] Setting Bot Skins - by GenzT - 01.02.2015, 00:38
Re: [Help] Setting Bot Skins - by DukeVega - 01.02.2015, 00:38

Forum Jump:


Users browsing this thread: 1 Guest(s)