SA-MP Forums Archive
Please help!! Player skin is not showing (rep++) - 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: Please help!! Player skin is not showing (rep++) (/showthread.php?tid=329783)



Please help!! Player skin is not showing (rep++) - iOmar - 30.03.2012

Quote:

public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Under Wars");
AddPlayerClass(217, 401.6212,2532.2688,16.5452,175.4787, 27, 100, 31, 50, 0, 0);
AddPlayerClass(247, 401.6212,2532.2688,16.5452,175.4787, 27, 100, 31, 50, 0, 0);
AddPlayerClass(254, 401.6212,2532.2688,16.5452,175.4787, 27, 100, 31, 50, 0, 0);
AddPlayerClass(111, 401.6212,2532.2688,16.5452,175.4787, 27, 100, 31, 50, 0, 0);
return 1;
}

public OnGameModeExit()
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 401.6212,2532.2688,16.5452);
SetPlayerFacingAngle(playerid,90.0);
SetPlayerCameraPos(playerid, 401.6212,2532.2688,16.5452);
SetPlayerCameraLookAt(playerid, 401.6212,2532.2688,16.5452);
return 1;
}

I did everything as i see but when i open my server it won't show player skin and when we pree shift tehn it spawn...
Please help!!! Why it is not showing player skin for choosing player


Re: Please help!! Player skin is not showing (rep++) - Shabi RoxX - 30.03.2012

Don't need to SetPlayerPos in RequestClass:

Try:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
 {
 SetPlayerCameraPos(playerid, 401.6212,2532.2688,16.5452);
 SetPlayerCameraLookAt(playerid, 401.6212,2532.2688,16.5452);
 return 1;
 }



Re: Please help!! Player skin is not showing (rep++) - iOmar - 30.03.2012

Not happening...


Re: Please help!! Player skin is not showing (rep++) - Shabi RoxX - 30.03.2012

You Camera Pos and Player/class Pos is same , how class will show in camera... I just change player/class pos
it works now ,

here it is, have fun :
pawn Код:
public OnGameModeInit()
 {
 // Don't use these lines if it's a filterscript
 SetGameModeText("Under Wars");
 AddPlayerClass(217, 408.1266,2532.2192,17.7708,87.1313, 27, 100, 31, 50, 0, 0);
 AddPlayerClass(247, 408.1266,2532.2192,17.7708,87.1313, 27, 100, 31, 50, 0, 0);
 AddPlayerClass(254, 408.1266,2532.2192,17.7708,87.1313, 27, 100, 31, 50, 0, 0);
 AddPlayerClass(111, 408.1266,2532.2192,17.7708,87.1313, 27, 100, 31, 50, 0, 0);
 return 1;
 }

 public OnGameModeExit()
 {
 return 1;
 }

 public OnPlayerRequestClass(playerid, classid)
 {
 SetPlayerPos(playerid, 408.1266,2532.2192,17.7708);
 SetPlayerFacingAngle(playerid,87.1413);
 SetPlayerCameraPos(playerid, 401.6212,2532.2688,16.5452);
 SetPlayerCameraLookAt(playerid, 401.6212,2532.2688,16.5452);
 return 1;
 }



Re: Please help!! Player skin is not showing (rep++) - iOmar - 30.03.2012

Thank you soo much brother....
And if i need teams and i want player class on different bases then how will i set this? And what about facing angle??
(rep added)


Re: Please help!! Player skin is not showing (rep++) - Shabi RoxX - 30.03.2012

Just Cahnge PosX,Y,Z and facing angle in AddPlayerClass for specific skin

pawn Код:
AddPlayerClass(1, 408.1266,2532.2192,17.7708,87.1313, 27, 100, 31, 50, 0, 0);
//Cahnge Pos for skin id 1 or whatever

//you have to also change camera pos to this pos
 public OnPlayerRequestClass(playerid, classid)
 {
 SetPlayerPos(playerid, 408.1266,2532.2192,17.7708);
 SetPlayerFacingAngle(playerid,87.1413);
 SetPlayerCameraPos(playerid, 401.6212,2532.2688,16.5452);
 SetPlayerCameraLookAt(playerid, 401.6212,2532.2688,16.5452);
if(classid) == 1)
{
 //Set New player,camera pos like above......
}
 return 1;
 }
This is just a idea.... that how to do this


Re: Please help!! Player skin is not showing (rep++) - iOmar - 30.03.2012

Thanks bro just last question..
===> I have 2 teams. Both teams are in a51 (at same camera pos) but they are at different spawn places.. So how i name them. Like (Army and HOBO)??


Re: Please help!! Player skin is not showing (rep++) - iOmar - 30.03.2012

Quote:

public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Under Wars");
AddPlayerClass(0,-244.1129,2603.0706,62.7031,266.5396,0,0,0,0,0,0); // Pakistan
AddPlayerClass(0,407.5169,2534.9177,16.5466,107.44 12,0,0,0,0,0,0); // Germany
AddPlayerClass(0,202.8831,1869.5048,13.1406,256.64 23,0,0,0,0,0,0); // USA
AddPlayerClass(0,-1395.4357,2643.0981,55.8591,90.9234,0,0,0,0,0,0); // Russia
AddPlayerClass(0,-308.5693,1537.7119,75.5625,133.5902,0,0,0,0,0,0); // France
return 1;
}

public OnGameModeExit()
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 239.2626,1877.8861,11.4609);
SetPlayerFacingAngle(playerid,87.1413);
SetPlayerCameraPos(playerid, 239.2626,1877.8861,11.4609);
SetPlayerCameraLookAt(playerid, 239.2773,1878.6700,11.4609);
return 1;
}

===>Bro please i have set camera positions and spawn position. Camera position will same in Area51 while Spawn places are different. But it not doing from me please please can you set it up............