Disable class selection on GF
#1

Hello guyz,
I want some help with the GodFather script. When I use SpawnPlayer with OnPlayerRequestClass it shows the NEXT PREVIOUS SPAWN thing.. I need to press SPAWN button to spawn. . Please help me out.
pawn Code:
public OnPlayerRequestClass(playerid, classid)
{

    if(IsPlayerNPC(playerid)) 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]);
    }

    SpawnPlayer(playerid);
    return 1;
}

public SetupPlayerForClassSelection(playerid)
{
    SetPlayerInterior(playerid,0);
    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;
}
I tried commenting the SetupPlayerForClassSelection. When I did that, it doesn't show any classes but.. I need to press SPAWN.
Reply


Messages In This Thread
Disable class selection on GF - by Mr.Carson Clay - 03.02.2012, 10:19
Re: Disable class selection on GF - by T0pAz - 03.02.2012, 10:21
Re: Disable class selection on GF - by Mr.Carson Clay - 03.02.2012, 10:23
Re: Disable class selection on GF - by T0pAz - 03.02.2012, 10:25
Re: Disable class selection on GF - by Mr.Carson Clay - 03.02.2012, 10:31
Re: Disable class selection on GF - by T0pAz - 03.02.2012, 10:33
Re: Disable class selection on GF - by Mr.Carson Clay - 03.02.2012, 10:34
Re: Disable class selection on GF - by T0pAz - 03.02.2012, 10:37
Re: Disable class selection on GF - by Mr.Carson Clay - 03.02.2012, 10:43

Forum Jump:


Users browsing this thread: 1 Guest(s)