Player class request
#1

Hey i have a question

I want a dress room spawn how i can do that with the mirror in front ?
Reply
#2

Add this to OnPlayerRequestClass in your gamemode script:
Код:
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
Reply
#3

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    switch(classid)
    {
        case 0
        {
            SetPlayerTeamFromClass(playerid, classid);
            SetPlayerInterior(playerid,17); // Change the interior
            SetPlayerPos(playerid,486.0409, -9.4562, 1000.6719); // Change the player position
            SetPlayerFacingAngle(playerid, 137.9666); // Change the angle
            SetPlayerCameraPos(playerid, 483.809051, -13.435981, 1000.679687); // change camera Position
            SetPlayerCameraLookAt(playerid, 486.0409, -9.4562, 1000.6719); // Change this one aswell
            GameTextForPlayer(playerid, "Class name here", 1000, 3);
        }
    }
}
This should work

Edit: Im late
Reply
#4

Thanks for the help guys!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)