How to remove selective skins? -
Sweet_Mafia - 03.09.2011
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?
Re: How to remove selective skins? -
[MG]Dimi - 03.09.2011
You have published gamemode?
Re: How to remove selective skins? -
brett7 - 03.09.2011
what mode are you using?
Re: How to remove selective skins? -
Sweet_Mafia - 03.09.2011
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.
Re: How to remove selective skins? -
BlackWolf120 - 03.09.2011
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.
Re: How to remove selective skins? -
Amit_B - 03.09.2011
If you want to just spawn the player instead of showing him the class selection menu, use SpawnPlayer on OnPlayerRequestClass.
Re: How to remove selective skins? -
Sweet_Mafia - 03.09.2011
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?
Re: How to remove selective skins? -
Sweet_Mafia - 03.09.2011
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;
}