03.09.2011, 18:56
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;
}

