22.08.2014, 01:40
My question is simple. I have a skin selector when someone connects to my server (as many servers do) but the problem is that the skins are invisible. What can I do to make them be visible ??![Confused](images/smilies/confused.png)
![Confused](images/smilies/confused.png)
![Confused](images/smilies/confused.png)
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, same coordinates);
TogglePlayerControllable(playerid,false);
SetPlayerFacingAngle(playerid,from addplayerclass);
SetPlayerCameraPos(playerid, set camera nearby addplayerclass coordinates);
SetPlayerCameraLookAt(playerid, addplayerclass coordinates);
}
On OnGameModeInit you need to use AddPlayerClass(info..).
and then pawn Код:
|
SetPlayerCameraPos(playerid,X+5 (coordinate X from addplayerclass + 5 to be it nearby), Y, Z);
So use like this:
pawn Код:
|
Thanks a lot dude
![]() SetPlayerPos(playerid, 2495.3455, -1687.9534, 13.5165); TogglePlayerControllable(playerid,false); SetPlayerFacingAngle(playerid,269.1425); SetPlayerCameraPos(playerid,X+5 (2495.3455 + 5), -1687.9534, 13.5165) SetPlayerCameraLookAt(playerid, 2495.3455, -1687.9534, 13.5165); |
public OnPlayerRequestClass(playerid, classid)
{
SetCameraBehindPlayer(playerid);
}