SA-MP Forums Archive
AddPlayerClass problem - 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)
+--- Thread: AddPlayerClass problem (/showthread.php?tid=411550)



AddPlayerClass problem - Plovix - 29.01.2013

I can't see the skin(s) in the class selection...

Codes:

Код:
public OnGameModeInit()
{
	AddPlayerClass(1,2495.7986,-1710.8322,1014.7422,359.7298,5,1,22,1000,30,1000);
        //...
        return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerInterior(playerid, 3);
	SetPlayerPos(playerid,2496.0662,-1700.2719,1014.7422);
        SetPlayerCameraPos(playerid,2495.9863,-1704.4697,1014.7422);
        SetPlayerCameraLookAt(playerid,2495.9805,-1707.0841,1014.7422,2);
        SetPlayerFacingAngle(playerid,179.0601);
	return 1;
}
Screens:

http://www.ch-slike.com/FVCg
http://www.ch-slike.com/FVCA


Re: AddPlayerClass problem - DaRk_RaiN - 29.01.2013

Odd, did you set the virtual world?


Re: AddPlayerClass problem - Plovix - 29.01.2013

Quote:
Originally Posted by DaRk_RaiN
Посмотреть сообщение
Odd, did you set the virtual world?
No...


Re: AddPlayerClass problem - Plovix - 30.01.2013

Anyone?


Re: AddPlayerClass problem - Threshold - 30.01.2013

First of all, your camera (SetPlayerCameraLookAt) is not even looking at your player... (SetPlayerPos), you should match both the SetPlayerCameraLookAt function coordinates with those listed in SetPlayerPos, unless of course you're looking for an alternative outcome.

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerInterior(playerid, 3);
    SetPlayerPos(playerid,2496.0662,-1700.2719,1014.7422);
    SetPlayerCameraPos(playerid,2495.9863,-1704.4697,1014.7422);
    SetPlayerCameraLookAt(playerid,2496.0662,-1700.2719,1014.7422,2);
    SetPlayerFacingAngle(playerid,180.0);
    return 1;
}



Re: AddPlayerClass problem - Plovix - 30.01.2013

Quote:
Originally Posted by BenzoAMG
Посмотреть сообщение
First of all, your camera (SetPlayerCameraLookAt) is not even looking at your player... (SetPlayerPos), you should match both the SetPlayerCameraLookAt function coordinates with those listed in SetPlayerPos, unless of course you're looking for an alternative outcome.

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerInterior(playerid, 3);
    SetPlayerPos(playerid,2496.0662,-1700.2719,1014.7422);
    SetPlayerCameraPos(playerid,2495.9863,-1704.4697,1014.7422);
    SetPlayerCameraLookAt(playerid,2496.0662,-1700.2719,1014.7422,2);
    SetPlayerFacingAngle(playerid,180.0);
    return 1;
}
Thank you,+rep