class section!
#1

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?
Reply
#2

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.
Reply
#3

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

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?
Reply
#5

part 2 and part 1
Reply
#6

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 ?
Reply
#7

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

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

thanks
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)