Need help with this simple problem.
#5

Thanks for your help. Would this work?
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    switch ( classid )
    {
        case 0:
        {
            GameTextForPlayer(playerid, "~b~ Human", 300, 1);
            SetPlayerTeam(playerid, TEAM_HUMANS);
        }
        case 1:
        {
            GameTextForPlayer(playerid, "~b~ Human", 300, 1);
            SetPlayerTeam(playerid, TEAM_HUMANS);
        }
        case 2:
        {
            GameTextForPlayer(playerid, "~b~ Human", 300, 1);
            SetPlayerTeam(playerid, TEAM_HUMANS);
        }
        case 3:
        {
            GameTextForPlayer(playerid, "~b~ Human", 300, 1);
            SetPlayerTeam(playerid, TEAM_HUMANS);
        }
        case 4:
        {
            GameTextForPlayer(playerid, "~r~ Zombie", 300, 1);
            SetPlayerTeam(playerid, TEAM_ZOMBIES);
        }
        case 5:
        {
            GameTextForPlayer(playerid, "~r~ Zombie", 300, 1);
            SetPlayerTeam(playerid, TEAM_ZOMBIES);
        }
        case 6:
        {
            GameTextForPlayer(playerid, "~r~ Zombie", 300, 1);
            SetPlayerTeam(playerid, TEAM_ZOMBIES);
        }
        case 7:
        {
            GameTextForPlayer(playerid, "~r~ Zombie", 300, 1);
            SetPlayerTeam(playerid, TEAM_ZOMBIES);
        }
    }
    return 1;
}
I've tested it, but when I go to chose my skin/class the skins don't show up. And yes, I do got them.
pawn Код:
//------------------------------HUMAN CLASS------------------------------------------
    AddPlayerClass(120,-1633.9758,-2237.3757,31.4766,106.9500,0,0,0,0,0,0); // Human Spawn 1 classid=0
    AddPlayerClass(35,-1675.7295,-2372.9072,94.6731,348.4488,0,0,0,0,0,0); // Human Spawn 2 classid=1
    AddPlayerClass(112,-1657.2673,-2034.8319,65.4988,166.2332,0,0,0,0,0,0); // Human Spawn 3 classid=2
    //-------------------------ZOMBIE CLASS---------------------------------------------
    AddPlayerClass(137,-1414.2123,-2543.9963,58.1086,262.9706,0,0,0,0,0,0); // Zombie Spawn 1 classid=3
    AddPlayerClass(135,-1723.3090,-2545.6929,9.4780,95.6908,0,0,0,0,0,0); // Zombie Spawn 2 classid=4
    AddPlayerClass(136,-1883.5908,-2409.6572,32.2462,318.2824,0,0,0,0,0,0); // Zombie Spawn 3 classid=5
Reply


Messages In This Thread
Need help with this simple problem. - by rangerxxll - 03.03.2012, 08:08
Re: Need help with this simple problem. - by R0FLC0PTER - 03.03.2012, 08:11
Re: Need help with this simple problem. - by rangerxxll - 03.03.2012, 08:25
Re: Need help with this simple problem. - by niels44 - 03.03.2012, 09:02
Re: Need help with this simple problem. - by rangerxxll - 03.03.2012, 09:11
Re: Need help with this simple problem. - by niels44 - 03.03.2012, 09:51

Forum Jump:


Users browsing this thread: 1 Guest(s)