AddPlayerClass not showing skin-ID - 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 not showing skin-ID (
/showthread.php?tid=379660)
AddPlayerClass not showing skin-ID -
jeremy8810 - 22.09.2012
Hi all,
Im just making a new class-selection intro that is starting like this:
pawn Код:
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);
AddPlayerClass(44, 1958.3783, 1343.1572, 15.3746, 10.0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(45, 1958.3783, 1343.1572, 15.3746, 10.0, 0, 0, 0, 0, 0, 0);
switch (classid)
{
case 0, 1: // Classes that will be truckdrivers
{
// Display the name of the class
GameTextForPlayer(playerid, "Trucker", 3000, 4);
print("SHOWCLASS-TEST\n");
}
}
return 1;
}
But my question: Why I don't see any skin (44, 45) showing? I see the ''SHOWCLASS-TEST''print in console when I press next and the name is displaying well too....
I only dont see a skin?
Or is it because the camera pos is the same as the player pos?
Can someone plz help me out?
Would be nice!
Thnx Jer
Picture of what I see now:
Re: AddPlayerClass not showing skin-ID -
IstuntmanI - 22.09.2012
AddPlayerClass have to be added under OnGameModeInit.
Re: AddPlayerClass not showing skin-ID -
jeremy8810 - 22.09.2012
Quote:
Originally Posted by costel_nistor96
AddPlayerClass have to be added under OnGameModeInit.
|
I still dont see a skin...
Re: AddPlayerClass not showing skin-ID -
SKAzini - 22.09.2012
The skins are spawned on your camera.. make the skins spawn like one coordinate away from the camera.. still making the camera face the skins.