OnPlayerRequestClass: Not showing player class skin
#1

pawn Код:
SetPlayerPos(playerid, 748.1235,377.2615,26.3264);
    SetPlayerCameraLookAt(playerid, 748.1235,377.2615,26.3264);
    SetPlayerCameraPos(playerid, 748.1235,377.2615,26.3264);
pawn Код:
AddPlayerClass(133,748.1235,377.2615,26.3264,284.0000,0,0,0,0,0,0);
Reply
#2

The camera will not be seen, in first, 'SetPlayerCameraPos' must be first that 'SetPlayerCameraLookAt', besides the fact that both functions have the same values in his parameters.

Try it this way:

pawn Код:
SetPlayerPos(playerid, 748.1235, 377.2615, 26.3264);
SetPlayerCameraPos(playerid, fX, fY, fZ); // Change to other values!
SetPlayerCameraLookAt(playerid, 748.1235,377.2615,26.3264); // The camera of player now will look at the position in where it's. (SetPlayerPos).

https://sampwiki.blast.hk/wiki/SetPlayerCameraLookAt.
Reply
#3

Still not showing class skin?


pawn Код:
SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 748.1235,377.2615,26.3264);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerPos(playerid, 748.1235, 377.2615, 26.3264);
    SetPlayerCameraPos(playerid, 748.1235, 377.2615, 26.3264);
    SetPlayerCameraLookAt(playerid, 748.1235,377.2615,26.3264);
Reply
#4

check this example pos:
pawn Код:
SetPlayerPos(playerid, -1531.3992, 357.5909, 54.4261);
           SetPlayerInterior(playerid, 0);
           SetPlayerFacingAngle(playerid, 1.8174);
           SetPlayerCameraPos(playerid, -1534.8992, 361.5909, 55.9261);
           SetPlayerCameraLookAt(playerid, -1531.3992, 357.5909, 54.4261);
if it's worked then it's the location problem.
Reply
#5

Quote:
Originally Posted by Eth
Посмотреть сообщение
check this example pos:
pawn Код:
SetPlayerPos(playerid, -1531.3992, 357.5909, 54.4261);
           SetPlayerInterior(playerid, 0);
           SetPlayerFacingAngle(playerid, 1.8174);
           SetPlayerCameraPos(playerid, -1534.8992, 361.5909, 55.9261);
           SetPlayerCameraLookAt(playerid, -1531.3992, 357.5909, 54.4261);
if it's worked then it's the location problem.
Yea, My code don't show class skin.
Reply
#6

then download this:
https://sampforum.blast.hk/showthread.php?tid=140360
you can check the commands in the filterscript...
Reply
#7

Sometimes it happens and I guess it's from wrong camera position.

Use this filterscript to create easily points for the class selections: https://sampforum.blast.hk/showthread.php?tid=140360

PS: And you need to have atleast 1 class in OnGameModeInit.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)