31.01.2011, 23:53
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...........)
.....
}