25.10.2012, 14:47
@SuperViper, Explain more.
PHP код:
//Stock SetPlayerTeamFromClass.
stock SetPlayerTeamFromClass(playerid, classid)
{
switch(classid)
{
case 0:
{
gTeam[playerid] = TEAM_CIVIL;
}
case 1:
{
gTeam[playerid] = TEAM_COP;
}
case 2:
{
gTeam[playerid] = TEAM_ARMY;
}
case 3:
{
gTeam[playerid] = TEAM_CIA;
}
case 4:
{
gTeam[playerid] = TEAM_MEDIC;
}
case 5:
{
gTeam[playerid] = TEAM_FIRE;
}
}
return 1;
}