Hallo
ich habe das so gemacht da sman nac dem erfolgreichen login Spawnt und sein letzten skin bekommt.
nur ist das jetzt so man spawnt und amn sieht nix also es ist ein schwarzer bildschirm. ich weis nicht warum
else if(dialogid == login)
{
if(!response)
{
SendClientMessage(playerid,COLOR_RED,"[PsychoSys]Das Einloggen wurde abgebrochen.");
Kick(playerid);
return 1;
}
new name[128];
new pass[128];
GetPlayerName(playerid,name,sizeof(name));
if(!strcmp(inputtext, mysql_ReturnPasswort(name,pass), true))
{
loggedin[playerid] = true;
SendClientMessage(playerid,COLOR_GREEN,"*** [PsychoSys]Erfolgreich eingeloggt. ***");
LoadPlayer(playerid);
StopPlayerMusic();
SpawnPlayer(playerid);
SetPlayerSkin(playerid,pDaten[playerid][Skin]);
if(mjobtime[playerid] >= 1)
{
mjobtimerr = SetTimer("MullmanJobTimer", 1000, 1);
}
return 1;
}
else if(strcmp(inputtext, mysql_ReturnPasswort(name,pass), true))
{
SendClientMessage(playerid,COLOR_RED,"[PsychoSys]Passwort ist Falsch!");
PwWrong[playerid] += 1;
new msg[200];
if(PwWrong[playerid] >= MAX_WrongPW)
{
SendClientMessage(playerid,ADMIN_RED,"Zu oft das PW Falsch Bye.");
Kick(playerid);
}
format(msg,sizeof(msg),"Falsches Passwort.\n\nDu kannst dich jetzt einloggen.\nGib bitte dein Passwort ein.");
ShowPlayerDialog(playerid, login,DIALOG_STYLE_INPUT, "Einloggen:", msg, "Bestätigen", "Abbrechen");
return 1;
}
}//login zeigt immer erflolgreich an zu info
public OnPlayerRequestClass(playerid, classid)
{
if(pDaten[playerid][Tut] <= 0)
{
ShowPlayerDialog(playerid,DIALOG_TUTORIAL,DIALOG_STYLE_MSGBOX,"Tutorial","Wollen sie das Tutorial durch führen?\n Wenn ja kriegen sie als belohnung zum Startgeld noch 10000$ dazu.\n Nein? dann halt nicht auch eine gute wahl.\n Viel Spass auf dem Server","Ja","Nein");
}
if(pDaten[playerid][Team] == 0 && pDaten[playerid][leader] == 0)
{
AddPlayerClass(0, 1093.7148,-1514.2408,22.7455,347.8568, 0, 0, 0, 0, 0, 0);
AddPlayerClass(264, 1093.7148,-1514.2408,22.7455,347.8568, 0, 0, 0, 0, 0, 0);
..................
}
if(pDaten[playerid][Team] == 1 || pDaten[playerid][leader] == 1)
{
AddPlayerClass(281, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
AddPlayerClass(282, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
AddPlayerClass(283, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
AddPlayerClass(284, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
AddPlayerClass(280, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
AddPlayerClass(288, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][Team] == 5 || pDaten[playerid][leader] == 5)
{
AddPlayerClass(70, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
AddPlayerClass(274, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
AddPlayerClass(276, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][Team] == 6 || pDaten[playerid][leader] == 6)
{
AddPlayerClass(277, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
AddPlayerClass(278, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
AddPlayerClass(279, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][Team] == 7 || pDaten[playerid][leader] == 7)
{
AddPlayerClass(255, 916.3505,-1252.1595,15.6641,47.5550, 0, 0, 0, 0, 0, 0);
AddPlayerClass(261, 916.3505,-1252.1595,15.6641,47.5550, 0, 0, 0, 0, 0, 0);
AddPlayerClass(76, 916.3505,-1252.1595,15.6641,47.5550, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][Team] == 13 || pDaten[playerid][leader] == 13)
{
AddPlayerClass(102, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
AddPlayerClass(195, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
AddPlayerClass(104, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
AddPlayerClass(193, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][Team] == 2 || pDaten[playerid][leader] == 2)
{
AddPlayerClass(285, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][Team] == 3 || pDaten[playerid][leader] == 3)
{
AddPlayerClass(286, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][Team] == 12 || pDaten[playerid][leader] == 12)
{
AddPlayerClass(120, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
AddPlayerClass(121, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
AddPlayerClass(122, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
AddPlayerClass(123, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
AddPlayerClass(186, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
AddPlayerClass(228, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
AddPlayerClass(169, 1552.9022,-1675.3713,16.1953,77.1185, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][Team] == 4 || pDaten[playerid][leader] == 4)
{
AddPlayerClass(287, 295.8844,1825.7539,17.6406,154.9974, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][Team] == 8 || pDaten[playerid][leader] == 8)
{
AddPlayerClass(59, 748.9224,-1343.0051,13.2488,174.0103, 0, 0, 0, 0, 0, 0);
AddPlayerClass(60, 748.9224,-1343.0051,13.2488,174.0103, 0, 0, 0, 0, 0, 0);
AddPlayerClass(150, 748.9224,-1343.0051,13.2488,174.0103, 0, 0, 0, 0, 0, 0);
AddPlayerClass(76, 748.9224,-1343.0051,13.2488,174.0103, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][Team] == 14 || pDaten[playerid][leader] == 14)
{
AddPlayerClass(105, 2489.7927,-1662.6533,13.2109,174.0103, 0, 0, 0, 0, 0, 0);
AddPlayerClass(106, 2489.7927,-1662.6533,13.2109,174.0103, 0, 0, 0, 0, 0, 0);
AddPlayerClass(107, 2489.7927,-1662.6533,13.2109,174.0103, 0, 0, 0, 0, 0, 0);
AddPlayerClass(269, 2489.7927,-1662.6533,13.2109,174.0103, 0, 0, 0, 0, 0, 0);
AddPlayerClass(270, 2489.7927,-1662.6533,13.2109,174.0103, 0, 0, 0, 0, 0, 0);
AddPlayerClass(271, 2489.7927,-1662.6533,13.2109,174.0103, 0, 0, 0, 0, 0, 0);
AddPlayerClass(191, 2489.7927,-1662.6533,13.2109,174.0103, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][Team] == 15 || pDaten[playerid][leader] == 15)
{
AddPlayerClass(108, 748.9224,-1343.0051,13.2488,174.0103, 0, 0, 0, 0, 0, 0);
AddPlayerClass(109, 748.9224,-1343.0051,13.2488,174.0103, 0, 0, 0, 0, 0, 0);
AddPlayerClass(110, 748.9224,-1343.0051,13.2488,174.0103, 0, 0, 0, 0, 0, 0);
AddPlayerClass(226, 748.9224,-1343.0051,13.2488,174.0103, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][Team] == 16 || pDaten[playerid][leader] == 16)
{
AddPlayerClass(114, 748.9224,-1343.0051,13.2488,174.0103, 0, 0, 0, 0, 0, 0);
AddPlayerClass(115, 748.9224,-1343.0051,13.2488,174.0103, 0, 0, 0, 0, 0, 0);
AddPlayerClass(116, 748.9224,-1343.0051,13.2488,174.0103, 0, 0, 0, 0, 0, 0);
AddPlayerClass(298, 748.9224,-1343.0051,13.2488,174.0103, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][Team] == 17 || pDaten[playerid][leader] == 17)
{
AddPlayerClass(173, 748.9224,-1343.0051,13.2488,174.0103, 0, 0, 0, 0, 0, 0);
AddPlayerClass(174, 748.9224,-1343.0051,13.2488,174.0103, 0, 0, 0, 0, 0, 0);
AddPlayerClass(175, 748.9224,-1343.0051,13.2488,174.0103, 0, 0, 0, 0, 0, 0);
AddPlayerClass(214, 748.9224,-1343.0051,13.2488,174.0103, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][Team] == 9 || pDaten[playerid][leader] == 9)
{
AddPlayerClass(171, 1763.8624,-1930.2217,13.5696,6.5263, 0, 0, 0, 0, 0, 0);
AddPlayerClass(172, 1763.8624,-1930.2217,13.5696,6.5263, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][Team] == 18 && pDaten[playerid][leader] == 0)
{
AddPlayerClass(19, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
AddPlayerClass(40, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
AddPlayerClass(170, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
AddPlayerClass(180, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
AddPlayerClass(189, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
AddPlayerClass(190, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][Team] == 18 && pDaten[playerid][leader] == 18)
{
AddPlayerClass(49, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
AddPlayerClass(219, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][Team] == 19 && pDaten[playerid][leader] == 0)
{
AddPlayerClass(124, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
AddPlayerClass(125, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
AddPlayerClass(126, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][leader] == 19 && pDaten[playerid][Team] == 19)
{
AddPlayerClass(127, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][Team] == 20 || pDaten[playerid][leader] == 20)
{
AddPlayerClass(298, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
AddPlayerClass(272, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][Team] == 21 && pDaten[playerid][leader] == 0)
{
AddPlayerClass(181, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
AddPlayerClass(247, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
AddPlayerClass(254, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][leader] == 21 && pDaten[playerid][Team] == 21)
{
AddPlayerClass(248, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);//leader
}
if(pDaten[playerid][Team] == 10 && pDaten[playerid][leader] == 0)
{
AddPlayerClass(163, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
AddPlayerClass(164, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
AddPlayerClass(165, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
AddPlayerClass(166, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][leader] == 10 &&pDaten[playerid][Team] == 10)
{
AddPlayerClass(153, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);//präsi
}
if(pDaten[playerid][Team] == 22 && pDaten[playerid][leader] == 0)
{
AddPlayerClass(182, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
AddPlayerClass(241, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
AddPlayerClass(256, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
AddPlayerClass(299, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][leader] == 22 && pDaten[playerid][Team] == 22)
{
AddPlayerClass(183, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);//präsi
}
if(pDaten[playerid][Team] == 23 || pDaten[playerid][leader] == 23)
{
AddPlayerClass(214, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
AddPlayerClass(221, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][Team] == 24 && pDaten[playerid][leader] == 0)
{
AddPlayerClass(217, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
AddPlayerClass(193, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][leader] == 24 && pDaten[playerid][Team] == 24)
{
AddPlayerClass(144, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
}
if(pDaten[playerid][Team] == 11 || pDaten[playerid][leader] == 11)
{
AddPlayerClass(11, 227.7481,1031.8762,1084.0175,182.7191, 0, 0, 0, 0, 0, 0);
...
}
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
SetupPlayerForClassSelection(playerid);
return 1;
}
public SetupPlayerForClassSelection(playerid)
{
PlayerPlaySound(playerid, 1097,-119.9460,23.1096,12.2238);
SetPlayerInterior(playerid,0);
{
SetPlayerInterior(playerid,18);
pDaten[playerid][Skin] = GetPlayerSkin(playerid);
PlayerPlaySound(playerid, 1097,-119.9460,23.1096,12.2238);
SetPlayerPos(playerid,176.2181,-79.0973,1001.8047);
SetPlayerFacingAngle(playerid,123.8677);
SetPlayerCameraPos(playerid,174.2442,-81.4318,1001.8047);
SetPlayerCameraLookAt(playerid, 176.2181,-79.0973,1001.8047);
SetPlayerFacingAngle(playerid,130.7343);
}
}
so sieht die skin auswahl aus mehr weis ich net woran das liegen könnte
//edit
wieso wird es schwarz wenn ich mir bike cheate mit /obike oder so dannn sehe ich weider alles
keiner eine lösung
PS: wenn man in die skin auswahl komtm uind sich ein skin auswahlt ist alles inordnung aber will man die pübersprinegn kommt black screen