SA-MP Forums Archive
class section! - 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: class section! (/showthread.php?tid=282022)



class section! - persia_gamer - 09.09.2011

hey guys... i used a blank gamemode but it doesnt have class section! its just CJ in the class sections list and when charecter selecting part come it doesnt show the charecter you select is it possible to fix the script of this?


Re: class section! - Surferdude - 09.09.2011

Step 1: Under OnGameModeInit. [IMPORTANT] Your Skins have to be in order how you want them to appear!!
pawn Код:
public OnGameModeInit()
{
//Whatever you have here
AddPlayerClass(105,0,0,0,0,0,0,0,0,0,0); // 105 = skin ID, Don't worry about the 0's just add them!!
AddPlayerClass(106,0,0,0,0,0,0,0,0,0,0); // 106 = skin ID
return 1;
}
Step 2:
pawn Код:
public OnPlayerRequestClass
{
    switch (classid)
    {
        case 0,1: //This is saying the first 2 skins Up the Top I did
        {
            if(classid == 0 || classid == 1) //Class ID 0 id the first AddPlayerClass, Class ID 1 the 2nd
            {
                        SetPlayerPos(playerid, XCoord, YCoord,ZCoord);
        }
    }
    return 1;
}
Anything else? Just reply to this.


Re: class section! - persia_gamer - 09.09.2011

could you say more?! i didnt understand sry :S after i found that code what should i do?


Re: class section! - Surferdude - 09.09.2011

Quote:
Originally Posted by persia_gamer
Посмотреть сообщение
could you say more?! i didnt understand sry :S after i found that code what should i do?
Which part?


Re: class section! - persia_gamer - 09.09.2011

part 2 and part 1


Re: class section! - persia_gamer - 09.09.2011

i have this under ongamemodeint :
public OnGameModeInit()
{
SetGameModeText("Stunt-World");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;

what should i do now ?


Re: class section! - Horrible - 09.09.2011

Scripting beginer:
https://sampforum.blast.hk/showthread.php?tid=92


Re: class section! - Jack_Leslie - 09.09.2011

https://sampforum.blast.hk/showthread.php?tid=280700


Re: class section! - persia_gamer - 09.09.2011

thanks