SA-MP Forums Archive
Problem with AddPlayerClass - 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: Problem with AddPlayerClass (/showthread.php?tid=175219)



Problem with AddPlayerClass - Face9000 - 08.09.2010

Hi all,i've a problem with the function AddPlayerClass.

I've added new classe,but ingame doesn't show..i mean..the class selection is blank.

Here is:

Код:
AddPlayerClass(17,-1670.1362,408.7984,7.1797,224.7469,0,0,0,0,0,0); // classe benzinai..vicino l'army ship
    AddPlayerClass(120,-2178.2969,716.4494,53.8908,178.2520,0,0,0,0,0,0); // classe triads spawn primario
    AddPlayerClass(16,-2067.6882,238.7406,35.8976,273.6147,0,0,0,0,0,0); // classe lavoratori
    AddPlayerClass(285,-1623.8357,666.9691,-4.9063,1.2388,0,0,0,0,0,0); // classe swat
    AddPlayerClass(287,-1306.3206,506.5734,11.1953,93.3626,0,0,0,0,0,0); // classe militari
    AddPlayerClass(61,-1321.4707,-622.1956,14.1440,354.8275,0,0,0,0,0,0); // classe piloti
    AddPlayerClass(296,-2686.8035,1379.3844,7.0978,269.7720,0,0,0,0,0,0); // classe papponi
    AddPlayerClass(155,-1803.7262,950.4432,24.8906,169.9164,0,0,0,0,0,0); // classe pizzaboy
    AddPlayerClass(50,-566.9418,-496.8059,25.5234,348.3723,0,0,0,0,0,0); // classe meccanici
    AddPlayerClass(1,-2351.4202,-1617.5758,484.9789,245.0588,0,0,0,0,0,0); // monte chilliad classe boscaiolo = woodman
And this is SetupPlayerForClassSelection

Код:
public SetupPlayerForClassSelection(playerid)
{
    GameTextForPlayer(playerid,"~w~Los Santos TDM",5000,5);
    SetPlayerInterior(playerid,14);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
    PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0);
}
Hope someone help me


Re: Problem with AddPlayerClass - Hobod - 08.09.2010

wouldnt the second bit be on OnPlayerRequestClass? at least thats where i put that stuff in my script


Re: Problem with AddPlayerClass - Face9000 - 08.09.2010

??I dont understand u


Re: Problem with AddPlayerClass - Face9000 - 08.09.2010

ALL DONE!

Thanks anyway