How to remove selective skins?
#1

On my server it spawns everyone with the skin id 299, but the menu to select skin pops up on both registration and login for the user to spawn. They cant pick any other skin but 299, or else they get kicked kicked. So my question is:

How can I remove the selective skin menu, so players login and spawn automatically?
Reply
#2

You have published gamemode?
Reply
#3

what mode are you using?
Reply
#4

Quote:
Originally Posted by [MG]Dimi
Посмотреть сообщение
You have published gamemode?
Yes, I have the God Father gamemode. Used that as my base and have been implementing new updates on it for the past 2 years.
Reply
#5

u can also check out this.

http://forum.sa-mp.com/showthread.ph...ight=y_classes

very usefull and u can do whatever u want with ur skins that shall appear in the class selection or not.
You can disable/enable them anytime and much more.
Reply
#6

If you want to just spawn the player instead of showing him the class selection menu, use SpawnPlayer on OnPlayerRequestClass.
Reply
#7

Quote:
Originally Posted by Amit_B
Посмотреть сообщение
If you want to just spawn the player instead of showing him the class selection menu, use SpawnPlayer on OnPlayerRequestClass.
Could you give me the whole code with any skin id?
Reply
#8

Here is the whole section of the Selective skin menu, if someone could check it out and possibly edit it to take away that menu and automatically spawn the user with id 299, thanks in advance.

Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(IsPlayerNPC(playerid))
	{
	    printf("NPC: OnPlayerRequestClass: %d", playerid);
	    return 1;
	}
    if(gPlayerLogged[playerid] == 0)
    {
		TogglePlayerSpectating(playerid, 1);
		return 1;
	}
	SetupPlayerForClassSelection(playerid);
	if(gPlayerSpawned[playerid] == 1)
	{
	    if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0 || PlayerInfo[playerid][pFMember] != 255)
		{
		    SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
		}
		else
		{
			PlayerInfo[playerid][pModel] = PedSkins[classid][0];
		}
	}
	else
	{
	    SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
	}
	return 1;
}

public SetupPlayerForClassSelection(playerid) //default class selection screen
{
	SetPlayerInterior(playerid,0); //default class selection screen
	SetPlayerPos(playerid,-1657.5237,1207.6644,13.6719);
	SetPlayerFacingAngle(playerid,357.6906);
	SetPlayerCameraPos(playerid, -1657.4678,1211.2292,13.6781);
	SetPlayerCameraLookAt(playerid,-1657.5237,1207.6644,13.6719);
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)