Skin resets on spawn
#5

Use SetSpawnInfo or under OnPlayerSpawn callback set new player's skin (but watch out, it will crash player if you don't use SetPlayerPos before).

And here is optimized IsValidSkin function:
Код:
IsValidSkin(skinid)
{
	if(0 < skinid < 300)
	{
		switch(skinid)
		{
		    case 3, 4, 5, 6, 8, 42, 65, 74, 86,
	        119, 149, 208, 273, 289: return 0;
		}
		return 1;
	}
	return 0;
}
Reply


Messages In This Thread
Skin resets on spawn - by xfelipex - 07.08.2010, 18:39
Re: Skin resets on spawn - by Kar - 07.08.2010, 18:41
Re: Skin resets on spawn - by xfelipex - 07.08.2010, 18:44
Re: Skin resets on spawn - by Kar - 07.08.2010, 18:48
Re: Skin resets on spawn - by Sergei - 07.08.2010, 18:55
Re: Skin resets on spawn - by Claude - 07.08.2010, 18:58

Forum Jump:


Users browsing this thread: 1 Guest(s)