Class ID's
#3

Better do it like this;

pawn Код:
switch(classid)
    {
        case 0 .. 2:
        {
            gTeam[playerid] = BALLA;
        }
        case 3 .. 7:
        {
            gTeam[playerid] = GROVE;
        }
        case 8 .. 10:
        {
            gTeam[playerid] = VAGOS;
        }
The cases are directed to the Playerclasses you've created under "OnGameModeInit"...Then you'll set the gTeam for the player to a special team. Change your code to the one I've posted, it's way more effecient and easier!
Reply


Messages In This Thread
closed. :) - by WarriorEd22 - 23.04.2012, 14:22
Re: Class ID's - by BleverCastard - 23.04.2012, 14:24
Re: Class ID's - by Twisted_Insane - 23.04.2012, 14:27
Re: Class ID's - by WarriorEd22 - 23.04.2012, 18:18
Re: Class ID's - by Twisted_Insane - 23.04.2012, 18:34
Re: Class ID's - by WarriorEd22 - 23.04.2012, 20:45
Re: Class ID's - by AlonGlenn - 03.12.2016, 01:27

Forum Jump:


Users browsing this thread: 2 Guest(s)