hey leute, hab ne frage:
Und zwar, hab ich beim Moderntopia, diese skin auswahl entfällt, allerdings entfällt sie auch bei F4 und dann tot -.-: Hab hier mal ein Beispiel aus PRS.
Ich hab 2 stunden lang gebastelt und das nit hin bekommen. Wie mach ich das Die Skin auswahl am anfang beim login/register entfällt aber nit bei F4. Wenn das nicht geht. Wie mach ich das man mit /clothes den skin changen kann? BItte helft mir -.- ich hab sonst niemanden ausser euch
public OnPlayerRequestClass(playerid, classid)
{
new string[128];
PlayerPlaySound(playerid, 1131, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pModel] = Peds[classid][0];
if (classid == 1)
{
format(string, sizeof(string), "~b~ Polizeileitung ~r~>STAAT<");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 2)
{
format(string, sizeof(string), "~b~ Geheimdienst ~r~>STAAT<");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 3)
{
format(string, sizeof(string), "~b~ Bundeswehrleitung ~r~>STAAT<");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 4)
{
format(string, sizeof(string), "~b~ Sanitaeterleitung ~r~>STAAT<");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 5)
{
format(string, sizeof(string), "~b~ La Cosa Nostra Boss~g~>Mafia<");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 6)
{
format(string, sizeof(string), "~b~ Yakuza Boss ~g~>Mafia<");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 7)
{
format(string, sizeof(string), "~y~ Staatsoberhaupt");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 8)
{
format(string, sizeof(string), "~b~ Firmenleitung ~g~>Mafia<");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 9)
{
format(string, sizeof(string), "~b~ Reporter Leitung Neutral");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 10)
{
format(string, sizeof(string), "~b~ Taxileitung Neutral");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 11)
{
format(string, sizeof(string), " ~r~ Adminstratorische Fraktion");
GameTextForPlayer(playerid,string,3500,6);
}
else
{
format(string, sizeof(string), "~r~Zivilisten des Servers");
GameTextForPlayer(playerid,string,3500,6);
}
SetPlayerTeamFromClass(playerid,classid);
SetupPlayerForClassSelection(playerid);
return 1;
}
public SetupPlayerForClassSelection(playerid)
{
switch (gTeam[playerid])
{
case TEAM_BLUE:
{
SetPlayerInterior(playerid,5);
SetPlayerPos(playerid,323.4,305.6,999.1);
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerCameraPos(playerid,323.4-1.5-1.0,305.6,999.1+0.7);
SetPlayerCameraLookAt(playerid,323.4-1.0,305.6,999.1+0.7);
}
case TEAM_ADMIN:
{
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,-744.0428,487.4761,1371.7231);
SetPlayerFacingAngle(playerid, 235.7871);
SetPlayerCameraPos(playerid,-740.1805,485.9630,1371.8333);
SetPlayerCameraLookAt(playerid,-743.1526,487.7991,1371.7958);
}
default:
{ //-------------[Login Class}------------ Mount Chilliad - San Fiero
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,-744.0428,487.4761,1371.7231); // Login Fenster - Postion des Spielers
SetPlayerFacingAngle(playerid,235.7871);
SetPlayerCameraPos(playerid, -740.1805,485.9630,1371.8333); // Kamera Postion
SetPlayerCameraLookAt(playerid,-743.1526,487.7991,1371.7958); // Von wo die Postion schaut.
}
}
}
//---------------------------------------------------------
public SetPlayerTeamFromClass(playerid,classid)
{
if (classid >= 1 && classid <= 11)
{
gTeam[playerid] = 11; //admin
PlayerInfo[playerid][pTeam] = 11;
}
else
{
gTeam[playerid] = 3;
PlayerInfo[playerid][pTeam] = 3;
}
}