SA-MP Forums Archive
Choosing skin 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Choosing skin problem (/showthread.php?tid=85677)



Choosing skin problem - Frankox - 08.07.2009

public OnPlayerRequestSpawn(playerid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}



When im choosing the skin, i cant see the skin i just see the place around and nothing else...
What is the problem here?



Re: Choosing skin problem - whereschris - 08.07.2009

Your camera positioning is most likely not pointing at the characters spawn zone, when your press shift does it still spawn your character?


Re: Choosing skin problem - Frankox - 08.07.2009

When i press shift it spawns the character

Here are spawn positions of:

AddPlayerClass(102, 1831.2955, -1681.8398, 13.5469, 94.2809, 0, 0, 0 , 0, 0, 0); // ballas player position 1
AddPlayerClass(103, 1831.2955, -1681.8398, 13.5469, 94.2809, 0, 0, 0 , 0, 0, 0); // ballas player position 2
AddPlayerClass(104, 1831.2955, -1681.8398, 13.5469, 94.2809, 0, 0, 0 , 0, 0, 0); // ballas player position 3
AddPlayerClass(105, 2495.3098, -1686.9343, 13.5149, 2.3617, 0, 0, 0, 0, 0, 0); //grove player position 1
AddPlayerClass(106, 2495.3098, -1686.9343, 13.5149, 2.3617, 0, 0, 0, 0, 0, 0); //grove player position 2
AddPlayerClass(107, 2495.3098, -1686.9343, 13.5149, 2.3617, 0, 0, 0, 0, 0, 0); // grove player position 3
AddPlayerClass(108, 2421.2161, -1225.3422, 25.1340, 176.2511, 0, 0, 0, 0, 0, 0); // vagos player position 1
AddPlayerClass(109, 2421.2161, -1225.3422, 25.1340, 176.2511, 0, 0, 0, 0, 0, 0); // vagos player position 2
AddPlayerClass(110, 2421.2161, -1225.3422, 25.1340, 176.2511, 0, 0, 0, 0, 0, 0); // vagos player position 3
AddPlayerClass(163,2779.8994,-2457.1028,13.6356,81.4541,0,0,0,0,0,0); // army player position
AddPlayerClass(164,2779.8994,-2457.1028,13.6356,81.4541,0,0,0,0,0,0); // army player position 2
AddPlayerClass(165,2779.8994,-2457.1028,13.6356,81.4541,0,0,0,0,0,0); // army player position 3
AddPlayerClass(1666,2779.8994,-2457.1028,13.6356,81.4541,0,0,0,0,0,0); // army player position 4
AddPlayerClass(287,2779.8994,-2457.1028,13.6356,81.4541,0,0,0,0,0,0); // army player position 5
AddPlayerClass(285,2779.8994,-2457.1028,13.6356,81.4541,0,0,0,0,0,0); // army player position 6
AddPlayerClass(286,2779.8994,-2457.1028,13.6356,81.4541,0,0,0,0,0,0); // army player position
AddPlayerClass(287,2779.8994,-2457.1028,13.6356,81.4541,0,0,0,0,0,0); // army player position 7


Re: Choosing skin problem - Jefff - 08.07.2009

Код:
public OnPlayerRequestClass(playerid, classid)
{
  SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  return 1;
}
and set interior too


Re: Choosing skin problem - weedarr - 08.07.2009

Quote:
Originally Posted by Frankox
public OnPlayerRequestSpawn(playerid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}



When im choosing the skin, i cant see the skin i just see the place around and nothing else...
What is the problem here?
That needs to be positioned a few units on front of the character, e.g try

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1961.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  return 1;
}
Might not be correct position, but you will see the character.

WeeDarr


Re: Choosing skin problem - Frankox - 09.07.2009

I dont see nothing....


Re: Choosing skin problem - Frankox - 09.07.2009

Cant see nothing still i just can see after i die and then start to choose but when i join to the server and start looking for a skin i cant see it..


Re: Choosing skin problem - refshal - 09.07.2009

pawn Код:
public OnPlayerRequestClass(playerid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1961.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}



Re: Choosing skin problem - Geekzor - 09.07.2009

Quote:
Originally Posted by Frankox
public OnPlayerRequestSpawn(playerid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}



When im choosing the skin, i cant see the skin i just see the place around and nothing else...
What is the problem here?
i had the same problem ... why u dont try with SetPlayerInterior ? try this, go in debug mode and where u have class selectiuon write /interior... than u script it


Re: Choosing skin problem - refshal - 09.07.2009

Quote:
Originally Posted by Geekzor
why u dont try with SetPlayerInterior ?
Because he said that he sees the place.