Skin Selection
#2

First of all make AddPlayerClass under OnGameModInit

pawn Код:
public OnGameModeInit()
{
 AddPlayerClass(2,1759.3490,-1895.4958,13.5610,268.6081,-1,-1,-1,-1,-1,-1);
 AddPlayerClass(269,1759.3490,-1895.4958,13.5610,268.6081,-1,-1,-1,-1,-1,-1);
 return 1;
}
after this

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetupPlayerForClassSelection(playerid);
    return 1;
}

forward SetupPlayerForClassSelection(playerid);
public SetupPlayerForClassSelection(playerid)
{
    SetPlayerInterior(playerid,14);
    SetPlayerFacingAngle(playerid, 270.0);
    PlayerPlaySound(playerid, 1186, 0.0, 0.0, 5.0);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
}
Reply


Messages In This Thread
Skin Selection - by Dziugsas - 16.07.2013, 16:34
Re: Skin Selection - by IceBilizard - 16.07.2013, 17:09
Re: Skin Selection - by JimmyCh - 16.07.2013, 17:16
AW: Skin Selection - by Nero_3D - 16.07.2013, 18:27
Re: Skin Selection - by SwisherSweet - 16.07.2013, 18:51

Forum Jump:


Users browsing this thread: 1 Guest(s)