OnPlayerRequestClass: Not showing player class skin -
DerickClark - 01.05.2014
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);
Respuesta: OnPlayerRequestClass: Not showing player class skin -
Swedky - 01.05.2014
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.
Re: OnPlayerRequestClass: Not showing player class skin -
DerickClark - 01.05.2014
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);
Re: OnPlayerRequestClass: Not showing player class skin -
Eth - 01.05.2014
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.
Re: OnPlayerRequestClass: Not showing player class skin -
DerickClark - 01.05.2014
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.
Re: OnPlayerRequestClass: Not showing player class skin -
Eth - 01.05.2014
then download this:
https://sampforum.blast.hk/showthread.php?tid=140360
you can check the commands in the filterscript...
Re: OnPlayerRequestClass: Not showing player class skin -
Konstantinos - 01.05.2014
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.