hey ne Frage wieso werde ich jedes mal wenn ich mich ein Logge auf den Friedhof gespawnt ?

richtig hässlig
- Cr4zy0ne
- Geschlossen
- Erledigt
Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!
Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
-
-
zeig mal
- OnPlayerRequestClass
und
- OnGameModeInit
-
hier OnPlayerRequestClass
if(IsPlayerNPC(playerid))
{
SpawnPlayer(playerid);
return 1;
}
if(gPlayerAccount[playerid] == 1 && gPlayerLogged[playerid] == 0)
{
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Bitte logge dich in deinen Account ein!","Login","Abbrechen");
}
else if(gPlayerAccount[playerid] == 0 && gPlayerLogged[playerid] == 0)
{
ShowPlayerDialog(playerid,DIALOG_REG,DIALOG_STYLE_MSGBOX,"Account","Du benötigst einen Account, um auf diesem Server zu spielen!","Erstellen","Abbrechen");
}PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pModel] = Peds[classid][0];
SetPlayerTeamFromClass(playerid,classid);
SetupPlayerForClassSelection(playerid);
return 1;
}Function 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,3);
SetPlayerPos(playerid,-2654.4,1424.2,912.4);
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerCameraPos(playerid,-2654.4-1.5,1424.2,912.4+0.7);
SetPlayerCameraLookAt(playerid,-2654.4,1424.2,912.4+0.7);
}
default:
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,3572.8022,-1636.4513,1.4201);
SetPlayerFacingAngle(playerid,267.0788);
SetPlayerCameraPos(playerid, 3579.6821,-1636.8357,0.8035);
SetPlayerCameraLookAt(playerid,3572.8022,-1636.4513,1.4201);
}
}*/
if(AtClothes[playerid] == 0)
{
switch(random(3))
{
case 0:
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1082.9263,-938.7471,78.3270);
SetPlayerFacingAngle(playerid,98.5031);
SetPlayerCameraPos(playerid,1126.0131,-968.1362,85.0211);
SetPlayerCameraLookAt(playerid,1084.8552,-938.3252,74.4566);
}
case 1:
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1103.1376,-831.7477,114.0657);
SetPlayerFacingAngle(playerid,264.4628);
SetPlayerCameraPos(playerid,1093.6143,-818.2294,116.1581);
SetPlayerCameraLookAt(playerid,1103.1376,-831.7477,114.0657);
}
default:
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1082.9263,-938.7471,78.3270);
SetPlayerFacingAngle(playerid,89.4192);
SetPlayerCameraPos(playerid,1126.0131,-968.1362,85.0211);
SetPlayerCameraLookAt(playerid,1084.8552,-938.3252,74.4566);
}
}
/*SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1192.1588,-2077.6628,69.0078);
SetPlayerCameraPos(playerid,1212.513184, -2069.156738, 112.511337);
SetPlayerCameraLookAt(playerid,1175.060303, -2038.934937, 78.353287);
*/
}
else
{
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerCameraPos(playerid,256.0815,-43.000,1003.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
}
}und GameMode init is viel zu lang
-
breadfish.de
Hat das Thema geschlossen.