SA-MP Forums Archive
Character is invisible in spawn.. - 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: Character is invisible in spawn.. (/showthread.php?tid=388221)



Character is invisible in spawn.. - Why - 28.10.2012

Hello.. My character is invisible when I am selecting character in the class selection. I can not see my character, however I can see the gametext.

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 222.48, 1822.94, 6.41);
    SetPlayerCameraPos(playerid, 222.48, 1822.94, 8.41);
    SetPlayerCameraLookAt(playerid, 210.82, 1822.66, 7.41);
    SetPlayerFacingAngle(playerid, 269.7381);
    switch(classid)
    {
        case 0..2:
        {
            GameTextForPlayer(playerid, "~r~Civillian", 3000, 3);
            PlayerClass[playerid] = CIVILLIAN;
        }
pawn Код:
AddPlayerClass(72,222.48, 1822.94, 6.41,277.8612,0,0,0,0,0,0); //0-Civillian
    AddPlayerClass(60,222.48, 1822.94, 6.41,277.8612,0,0,0,0,0,0); //1-Civillian
    AddPlayerClass(23,222.48, 1822.94, 6.41,277.8612,0,0,0,0,0,0); //2-Civillian
Any idea what is wrong?


Re: Character is invisible in spawn.. - thefatshizms - 28.10.2012

Its most likely that your camera is not looking in the correct position or your player pos is not where the camera is looking

Код:
This forum requires that you wait 120 seconds between posts. Please try again in 40 seconds.



Re: Character is invisible in spawn.. - [HK]Ryder[AN] - 28.10.2012

Change the code to
pawn Код:
public OnPlayerRequestClass(playerid, classid){    SetPlayerPos(playerid, 222.48, 1822.94, 6.41);    SetPlayerCameraPos(playerid, 222.48, 1822.94, 8.41);    SetPlayerCameraLookAt(playerid, 222.48, 1822.94, 6.41);    SetPlayerFacingAngle(playerid, 269.7381);    switch(classid)    {        case 0..2:        {            GameTextForPlayer(playerid, "~r~Civillian", 3000, 3);            PlayerClass[playerid] = CIVILLIAN;