Beginner - TDM
#1

I have some problems. I've finally learned how to script a TDM, but with 2 classes only. I know how to add more classes, but not how to make the three first classes to the first team (Grove) and the rest to the second team (Ballas).
Reply
#2

pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
    if (classid == 0||classid == 1||classid == 2)
    {
        gTeam[playerid] = TEAM_GROVE;
    }
    else if(classid == 3||classid == 4||classid == 5)
    {
        gTeam[playerid] = TEAM_BALLA;
    }
}

OnPlayerRequestClass(playerid,classid)
{
SetPlayerTeamFromClass(playerid, classid);
}
Reply
#3

Quote:
Originally Posted by Justas [SiJ
]
pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
    if (classid == 0||classid == 1||classid == 2)
    {
        gTeam[playerid] = TEAM_GROVE;
    }
    else if(classid == 3||classid == 4||classid == 5)
    {
        gTeam[playerid] = TEAM_BALLA;
    }
}

OnPlayerRequestClass(playerid,classid)
{
SetPlayerTeamFromClass(playerid, classid);
}
Oh.. Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)