Skill Change don't work
#5

No didnt help. My skill...W/E is set up like this:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerTeamFromClass(playerid, classid);
    SetPlayerInterior(playerid,3);
    SetPlayerPos(playerid,1206.9768,-32.5926,1000.9531);
    SetPlayerFacingAngle(playerid,249.3010);
    SetPlayerCameraPos(playerid,1209.1083,-33.8061,1000.9531);
    SetPlayerCameraLookAt(playerid,1206.9768,-32.5926,1000.9531);

    switch (classid)
    {
        case 0, 1, 2, 3, 4:
        {
            GameTextForPlayer(playerid, "something", 3000, 5);
        }
        case 5:
        {
            GameTextForPlayer(playerid, "something", 3000, 5);
        }
        case 6:
        {
            GameTextForPlayer(playerid, "something", 3000, 5);
        }
        case 7:
        {
            GameTextForPlayer(playerid, "something", 3000, 5);
        }
        case 8:
        {
            GameTextForPlayer(playerid, "something", 3000, 5);
        }
        case 9:
        {
            GameTextForPlayer(playerid, "something", 3000, 5);
        }
        case 10:
        {
            GameTextForPlayer(playerid, "something", 3000, 5);
        }
        case 11:
        {
            GameTextForPlayer(playerid, "something", 3000, 5);
        }
    }
    return 1;
}

SetPlayerTeamFromClass(playerid, classid)
{
    if(classid == 0 || classid == 1 || classid == 2 || classid == 3 || classid == 4)
    {
        gTeam[playerid] = TEAM_SOMETHING;
        return 1;
    }
   
    else if(classid == 5 || classid == 6)
    {
        gTeam[playerid] = TEAM_SOMETHING;
        return 1;
    }

    else if(classid == 7)
    {
        gTeam[playerid] = TEAM_SOMETHING;
        return 1;
    }
   
    else if(classid == 8)
    {
        gTeam[playerid] = TEAM_SOMETHING;
        return 1;
    }
   
    else if(classid == 9)
    {
        gTeam[playerid] = TEAM_SOMETHING;
        return 1;
    }
   
    else if(classid == 10)
    {
        gTeam[playerid] = TEAM_SOMETHING;
        return 1;
    }
   
    else if(classid == 11)
    {
        gTeam[playerid] = TEAM_SOMETHING;
        return 1;
    }
    return 0;
}

...OnPlayerSpawn
{
    if(gTeam[playerid... = something])
    {
         SeatPlayerColor(...)
    }
    else if(gteam...........)
    .....
}
Reply


Messages In This Thread
Skill Change don't work - by Unknown123 - 31.01.2011, 22:56
Re: Skill Change don't work - by Krx17 - 31.01.2011, 23:01
Re: Skill Change don't work - by Unknown123 - 31.01.2011, 23:30
Re: Skill Change don't work - by David5290 - 31.01.2011, 23:34
Re: Skill Change don't work - by Unknown123 - 31.01.2011, 23:53
Re: Skill Change don't work - by David5290 - 31.01.2011, 23:58
Re: Skill Change don't work - by Unknown123 - 01.02.2011, 00:17
Re: Skill Change don't work - by Marricio - 01.02.2011, 00:21
Re: Skill Change don't work - by jamesbond007 - 01.02.2011, 11:00
Re: Skill Change don't work - by Unknown123 - 01.02.2011, 11:02

Forum Jump:


Users browsing this thread: 1 Guest(s)