SA-MP Forums Archive
Problиme avec le choisir classe - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Français/French (https://sampforum.blast.hk/forumdisplay.php?fid=30)
+---- Thread: Problиme avec le choisir classe (/showthread.php?tid=383378)



Problиme avec le choisir classe - huseyin64 - 07.10.2012

Alors quand je rentre dans mon serveur Fun,et quand il faut choisir les classe,beh les class sont invisible,j'ai poster pour demander si vous avez une idйe.


Re : Problиme avec le choisir classe - Vukilore - 07.10.2012

Sans code, on peut pas t'aider mon gars.


Re : Problиme avec le choisir classe - XDamienX007 - 07.10.2012

Tu as mal placйs les skins des joueurs, ils sont pas dans le cadre de la camera j'pense


Re: Problиme avec le choisir classe - huseyin64 - 07.10.2012

Quote:

Tu as mal placйs les skins des joueurs, ils sont pas dans le cadre de la camera j'pense

Je peux t'envoyer les codes AddPlayerClass?


Re : Problиme avec le choisir classe - XDamienX007 - 07.10.2012

Met les ici -_-'


Re : Problиme avec le choisir classe - Ruto - 07.10.2012

Salut.
Il nous faudrait les lignes AddPlayerClass et tout ce qui se trouve dans la callback OnPlayerRequestClass


Re: Problиme avec le choisir classe - decondelite - 07.10.2012

Pour faire un йcran de sйlection correct, il faut utiliser:
-SetPlayerPos
-SetPlayerFacingAngle
-SetCameraPos
-SetCameraLookAt


Re: Problиme avec le choisir classe - huseyin64 - 07.10.2012

Moi,j'ai fait зa:

public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("DM/STUNT/FUN");
AddPlayerClass(294,2495.0938,-1687.5687,13.5151,2.0940,30,6000,24,2000,0,0);
AddPlayerClass(59,2495.0938,-1687.5687,13.5151,2.0940,30,6000,24,2000,0,0);
AddPlayerClass(107,2495.0938,-1687.5687,13.5151,2.0940,30,6000,24,2000,0,0);
AddPlayerClass(72,2495.0938,-1687.5687,13.5151,2.0940,30,6000,24,2000,0,0);
AddPlayerClass(299,2495.0938,-1687.5687,13.5151,2.0940,30,6000,24,2000,0,0); // 3
AddPlayerClass(29,2495.0938,-1687.5687,13.5151,2.0940,30,6000,24,2000,0,0); // 1
AddPlayerClass(288,2495.0938,-1687.5687,13.5151,2.0940,30,6000,24,2000,0,0); // Swat
AddPlayerClass(285,2495.0938,-1687.5687,13.5151,2.0940,30,6000,24,2000,0,0); // Desert Sherif

CreateObject(3945, 2480.3000488281, -1665, 18.10000038147, 0, 0, 0);
CreateObject(17697, 2584.3000488281, -1688.5999755859, 5.3000001907349, 0, 0, 180);
CreateObject(17950, 2595.5, -1687, 2.9000000953674, 0, 0, 0);
CreateObject(1498, 2584.6999511719, -1684.0999755859, 2, 0, 0, 0);
CreateObject(683, 2579.8000488281, -1675.1999511719, 0.80000001192093, 0, 0, 0);
CreateObject(1317, 2597.3999023438, -1519.9000244141, 13.39999961853, 0, 0, 0);
CreateObject(4892, 2595.8000488281, -1488.6999511719, 18.299999237061, 0, 0, 180);
CreateObject(9321, 2610, -1501.5999755859, 16.5, 0, 0, 26;
CreateObject(9321, 2610.3000488281, -1495.5999755859, 16.799999237061, 0, 0, 87.99499511718;
CreateObject(13666, 2472.3999023438, -1849.8000488281, 6.5, 0, 0, 93.99548339843;
CreateObject(1632, 2459.6999511719, -1850.9000244141, 6.0999999046326, 12, 0, 86);
CreateObject(1632, 2468.8000488281, -1851.1999511719, 3.2999999523163, 0, 0, 85.99743652343;
CreateObject(1632, 2464.3000488281, -1850.9000244141, 4.3000001907349, 11.9970703125, 0, 87.99743652343;
CreateObject(2910, 2520.8000488281, -1848.4000244141, 1.8999999761581, 0, 0, 270);
CreateObject(2910, 2545, -1708.4000244141, 12.5, 0, 0, 270);
CreateObject(1660, 2602.3999023438, -1518.5, 13.60000038147, 0, 0, 0);

AddStaticVehicle(411,2498.7344,-1685.1630,13.1627,9.3250,125,125); //Infernus
AddStaticVehicle(400,2507.0298,-1693.7799,13.6488,358.4274,0,0);
AddStaticVehicle(522,2492.7297,-1686.5068,13.0843,0.0060,6,25);
AddStaticVehicle(521,2504.2458,-1693.6667,13.1289,357.4677,25,11;
AddStaticVehicle(556,2514.9719,-1672.1353,14.1091,66.1511,1,1);
AddStaticVehicle(402,2511.1477,-1687.8290,13.3922,45.9308,39,39);
AddStaticVehicle(405,2465.7788,-1687.4545,13.3941,269.5056,40,1);
AddStaticVehicle(409,2476.7029,-1697.1033,13.3191,356.4380,1,1);
AddStaticVehicle(409,2471.7363,-1697.8273,13.3164,0.6533,1,1);
AddStaticVehicle(415,2459.4358,-1687.3319,13.3203,270.4668,36,1);
AddStaticVehicle(421,2451.9707,-1688.2634,13.4219,286.8307,25,1);
AddStaticVehicle(424,2459.9910,-1682.0922,13.3144,302.6286,3,6); // MMT
AddStaticVehicle(425,2495.5249,-1668.9174,14.1018,83.2757,43,0); // Bind
AddStaticVehicle(429,2456.0017,-1676.9938,13.1829,298.4498,0,0); // Banshee
AddStaticVehicle(445,2441.7571,-1689.0327,13.6629,356.8084,39,39); // Admiral
AddStaticVehicle(451,2466.5227,-1671.4784,13.1890,10.7532,36,36); // Turismo
return 1;
}

public OnGameModeExit()
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 2495.0938,-1687.5687,13.5151);
SetPlayerFacingAngle (playerid,90.0);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 2495.0938,-1687.5687,13.5151);
return 1;
}


Re : Problиme avec le choisir classe - bousla7e - 07.10.2012

Ton setplayercamerapos est mal rйglй .


Re: Re : Problиme avec le choisir classe - huseyin64 - 09.10.2012

Quote:
Originally Posted by bousla7e
View Post
Ton setplayercamerapos est mal rйglй .
Donc je dois le mettre comment le personnage?