SA-MP Forums Archive
Class Selection - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Class Selection (/showthread.php?tid=250757)



Class Selection - WhiteLeopard - 24.04.2011

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


Re: Class Selection - judothijs - 24.04.2011

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


Re: Class Selection - WhiteLeopard - 24.04.2011

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;
}



Re: Class Selection - WhiteLeopard - 24.04.2011

Anyone?HELP!


Re: Class Selection - trapped1 - 24.04.2011

Camera possitons and players possitions ar in same place....


Re: Class Selection - trapped1 - 24.04.2011

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!


Re: Class Selection - Admigo - 24.04.2011

You forgot the SetPlayerPos.


Re: Class Selection - WhiteLeopard - 24.04.2011

problem resolwed,close topic