Moin breadfisher,
Ich hab nen eigenartigen bug beim Skin auswählen undzwar ist das wetter und die skins sowie das Teambuggy, wenn ich Z.B nen Cop auswähle hab ich Z.B die fähigkeiten von nen Zombie (anderes Team)
hier der code:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerInterior(playerid,0);
if(Team[playerid] == TEAM_ZOMBIE)
{
SetPlayerHealth(playerid,100);
SetWeather(-19);
zombie[playerid] = 1;
SetPlayerColor(playerid,COLOR_PURPLE);
}
if(classid >= 0 && classid <= 4)
{
Team[playerid] = TEAM_ZOMBIE;
SetPlayerColor(playerid,COLOR_GREEN);
zombie[playerid] = 1;
GameTextForPlayer(playerid,"ZOMBIE",3000,3);
}
if(Team[playerid] == TEAM_SURVIVAL)
{
SetPlayerHealth(playerid,100);
SetWeather(265);
zombie[playerid] = 0;
SetPlayerColor(playerid,COLOR_GREEN);
}
if(classid >= 5 && classid <= 9)
{
Team[playerid] = TEAM_SURVIVAL;
SetPlayerColor(playerid,COLOR_PURPLE);
zombie[playerid] = 0;
GameTextForPlayer(playerid,"SURVIVAL",3000,3);
}
SetPlayerPos(playerid, 2087.6096,1911.0695,12.4376);
SetPlayerFacingAngle(playerid, 288.8453);
SetPlayerCameraPos(playerid, 2094.1235,1911.8203,11.9379);
SetPlayerCameraLookAt(playerid, 2087.6096,1911.0695,12.4376);
return 1;
}