Nach dem man diesen Command eingibt
if(strcmp(cmd, "/tutorialabbruch", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(TutTime[playerid] >= 1)
{
TutTime[playerid] = 80;
TutTime[playerid] = 0; PlayerInfo[playerid][pTut] = 1;
gOoc[playerid] = 0; gNews[playerid] = 0; gFam[playerid] = 0;
TogglePlayerControllable(playerid, 1);
UnFreezePlayer(playerid);
SetCameraBehindPlayer(playerid);
MedicBill[playerid] = 0;
AfterTutorial[playerid] = 1;
SetPlayerSpawn(playerid);
SetPlayerPos(playerid,1133.0924,-2037.1101,69.0078);
SetTimerEx("UnsetAffterTutorial", 2500, false, "i", playerid);
SetTimerEx("UnsetFirstSpawn", 20000, false, "i", playerid);
SetPlayerSpawn(playerid);
SetPlayerInterior(playerid,0);
SetPlayerHealth(playerid,100);
PlayerInfo[playerid][pLevel] = 1;
//PlayerInfo[playerid][pHatJob] = 0;
PlayerInfo[playerid][pSHealth] = 0.0;
PlayerInfo[playerid][pHealth] = 100.0;
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
PlayerInfo[playerid][pTeam] = 3;
PlayerInfo[playerid][pModel] = 101;
PlayerInfo[playerid][pPhousekey] = 255;
//PlayerInfo[playerid][pPtankekey] = 255;
PlayerInfo[playerid][pPbiskey] = 255;
PlayerInfo[playerid][pAccount] = 50000;
PlayerInfo[playerid][pMuted] = 0;
//PlayerInfo[playerid][pPunkte] = 0;
GivePlayerMoney(playerid, 50000+random(1000));
SendClientMessage(playerid,COLOR_GRAD1,"Du hast das Tutorial abgebrochen. Wir wünschen dir viel Spaß am spielen!");
SendClientMessage(playerid, COLOR_WHITE, "Dir wurde auf der Karte eine Position Markiert, was du als");
SendClientMessage(playerid, COLOR_WHITE, "nächstes erledigen kannst, begieb dich zum Marker!");
SendClientMessage(playerid, COLOR_WHITE, "Ziel: Besorge dir einen Personalausweis & suche nach einem Job!");
SetPlayerCheckpoint(playerid,592.8692,-1241.7865,17.9761,5.0);
return 1;
}
else
{
SendClientMessage(playerid,COLOR_GRAD1,"Du befindest dich nicht im Tutorial!");
return 1;
}
}
return 1;
}
Spawnt man zwar aber der Bildschirm ist unten und oben schwarz Wieso?