Hy leute wenn ich bei der Skin auswahl auswählen tue, und bei dem Mafia skin ankomme dann crash mein server.
Jemand ne ahnung warum?
classid 3
public OnPlayerRequestClass(playerid, classid)
{
if(classid == 0) // ZIVI
{
SetPlayerPos(playerid,1525.0278,-1019.6340,23.9104); // Hier Steht der Spieler
SetPlayerCameraPos(playerid, 1527.0496,-1022.3273,23.9446); // Da steht die kamera
SetPlayerCameraLookAt(playerid, 1525.0278,-1019.6340,23.9104); // Dort hin schaut die kamera
SetPlayerFacingAngle( playerid, 200 );
GameTextForPlayer(playerid,"~w~Zivilist",3500,4);
}
else if(classid == 1) // Grove street
{
SetPlayerPos(playerid, 2494.1638,-1689.5361,21.7856);
SetPlayerInterior(playerid, 0);
SetPlayerCameraPos(playerid, 2494.1545,-1692.4380,23.6395); // Da steht die kamera
SetPlayerCameraLookAt(playerid, 2494.1638,-1689.5361,21.7856); // Dort hin schaut die kamera
SetPlayerFacingAngle( playerid, 180 );
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
if(PlayerInfo[playerid][pTeam] != 5)
{
GameTextForPlayer(playerid,"~r~Nur fuer Grove Street Member!",3000,4);
}
else
{
GameTextForPlayer(playerid,"~g~Grove Street Family",3000,6);
}
}
else if(classid == 2) // Ballas
{
SetPlayerPos(playerid, 1943.7805,-1109.8802,35.2578);
SetPlayerInterior(playerid, 0);
SetPlayerCameraPos(playerid, 1947.5490,-1110.9174,35.684); // Da steht die kamera
SetPlayerCameraLookAt(playerid, 1943.7805,-1109.8802,35.2578); // Dort hin schaut die kamera
SetPlayerFacingAngle( playerid, 250 );
if(PlayerInfo[playerid][pTeam] != 4)
{
GameTextForPlayer(playerid,"~r~Nur fuer Ballas Member!",3000,4);
}
else
{
GameTextForPlayer(playerid,"~l~Ballas",3000,6);
}
}
else if(classid == 3) // Mafia
{
SetPlayerPos(playerid, 1094.0288,-2037.1584,82.7520);
SetPlayerInterior(playerid, 0);
SetPlayerCameraPos(playerid, 1085.3008,-2044.4779,85.7301); // Da steht die kamera
SetPlayerCameraLookAt(playerid, 1094.0288,-2037.1584,82.7520); // Dort hin schaut die kamera
SetPlayerFacingAngle( playerid, 130 );
if(PlayerInfo[playerid][pTeam] != 2)
{
GameTextForPlayer(playerid,"~r~Nur fuer die Mafia!",3000,4);
}
else
{
GameTextForPlayer(playerid,"~b~Mafia",3000,6);
}
}
else if(classid == 4) // Polizei
{
SetPlayerPos(playerid, 1564.7263,-1675.4044,61.8872);
SetPlayerInterior(playerid, 0);
SetPlayerCameraPos(playerid, 1571.4678,-1678.3634,63.0776); // Da steht die kamera
SetPlayerCameraLookAt(playerid, 1564.7263,-1675.4044,61.8872); // Dort hin schaut die kamera
SetPlayerFacingAngle( playerid, 230 );
if(PlayerInfo[playerid][pTeam] != 3)
{
GameTextForPlayer(playerid,"~r~Nur Fuer Polizei beamte!",3000,4);
}
else
{
GameTextForPlayer(playerid,"~b~Polizei",3000,6);
}
}
return 1;
}