Hallo,
egal wie oft ich nach rechts oder Links drücke, es bleibt einfach bei "BALLAS".
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0:
{
SetPlayerPos(playerid,2068.7678,-1770.4219,17.2656);
SetPlayerFacingAngle(playerid,266.1898);
SetPlayerSkin(playerid, 102);
InterpolateCameraPos(playerid, 2080.508300, -1770.675415, 21.305747, 2072.433349, -1770.615112, 18.449674, 2000);
InterpolateCameraLookAt(playerid, 2075.827392, -1770.689453, 19.548332, 2067.589599, -1770.685791, 17.211372, 2000);
gTeam[playerid] = TEAM_BALLAS; // FrontYard Ballas(102,103,104)
SendClientMessage(playerid, -1,"BALLAS!");
}
case 1:
{
SetPlayerPos(playerid,2494.2607,-1692.3323,23.6833);
SetPlayerFacingAngle(playerid,3.9591);
InterpolateCameraPos(playerid, 2494.229248, -1675.041625, 30.090682, 2494.307373, -1686.206054, 26.451690, 2000);
InterpolateCameraLookAt(playerid, 2494.139404, -1679.788940, 28.523782, 2494.271972, -1691.024658, 25.117563, 2000);
gTeam[playerid] = TEAM_GROVE; // Grove Street Family(105,106,107)
SetPlayerSkin(playerid, 105);
SendClientMessage(playerid, -1,"GROVE!");
}
case 2:
{
SetPlayerPos(playerid,2627.2686,-1069.0608,75.9696);
SetPlayerFacingAngle(playerid,269.5862);
InterpolateCameraPos(playerid, 2640.679931, -1069.494873, 81.089004, 2631.218505, -1069.198364, 78.690437, 2000);
InterpolateCameraLookAt(playerid, 2635.858886, -1069.415405, 79.765930, 2626.574707, -1069.089477, 76.840423, 2000);
gTeam[playerid] = TEAM_VAGOS; // Los Santos Vagos(108,109,110)
SendClientMessage(playerid, -1,"VAGOS!");
}
}
return 1;
}