Class Selection
#1

Skins are not showing :@
Screen

My Code
pawn Код:
SetPlayerFacingAngle(playerid, 45.682643);
SetPlayerCameraLookAt(playerid, -1850.895385, 983.614624, 95.731140);
SetPlayerCameraPos(playerid, -1850.895385 + (10 * floatsin(-45.682643, degrees)), 983.614624 + (10 * floatcos(-45.682643, degrees)), 95.731140);
            }
EDIT
When i try other codes,either don't shows skin
It f#ck&ds up when i tired to change it
Reply
#2

That's because you haven't added AddPlayerClass!

Make it look like this:

Код:
public OnGameModeInit()
{
     AddPlayerClass(skin, X, Y, Z);
}

Make sure the cords of your AddPlayerClass and SetPlayerFacingAngle etc match.
hope it helps
Reply
#3

Quote:
Originally Posted by judothijs
Посмотреть сообщение
That's because you haven't added AddPlayerClass!

Make it look like this:

Код:
public OnGameModeInit()
{
     AddPlayerClass(skin, X, Y, Z);
}

Make sure the cords of your AddPlayerClass and SetPlayerFacingAngle etc match.
hope it helps
Dont works
pawn Код:
public OnGameModeInit()
{
    AddPlayerClass(105,2027.4595,1008.2727,10.8203,271.3604,8,5000,29,5000,0,0); // Grove
}
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    switch (classid) {
        case 0:
            {
            SetPlayerColor(playerid, COLOR_GREEN);
            GameTextForPlayer(playerid, "~n~~n~~n~~g~Grove", 500, 3);
            SetPlayerPos(playerid, 2027.4595,1008.2727,10.8203);
            SetPlayerFacingAngle(playerid, 45.682643);
            SetPlayerCameraLookAt(playerid, -1850.895385, 983.614624, 95.731140);
            SetPlayerCameraPos(playerid, -1850.895385 + (10 * floatsin(-45.682643, degrees)), 983.614624 + (10 * floatcos(-45.682643, degrees)), 95.731140);
            }
}
    return 1;
}
Reply
#4

Anyone?HELP!
Reply
#5

Camera possitons and players possitions ar in same place....
Reply
#6

SetPlayerPos(playerid,1286.1554,-774.1998,1091.9063);
SetPlayerFacingAngle(playerid,0.0);
SetPlayerCameraPos(playerid,1282.0900,-772.8223,1091.9063);
SetPlayerCameraLookAt(playerid,1286.1554,-774.1998,1091.9063);
SetPlayerInterior(playerid,5);

SetPlayerPos and thets all! Thet is mine so use yours selfs coords!
Reply
#7

You forgot the SetPlayerPos.
Reply
#8

problem resolwed,close topic
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)