Hallo Breadfish!
Da mir ja anscheinen freiwillig keiner Helfen will, obwohl ich schon mehrere Beiträge geschrieben hab, biete ich nun eine kleine gegenleistung, die ich mit dem jenigen, der mir Hilft, Besprechen werde
Es geht um folgendes: Rießen Problem mit Spawn System :( [Bitte Lesen]
Ich hoffe, es hilft mir jemand, den ich verzweifle solangsam daran!
MFG,
Razor!
Großes Problem | Bin am Verzweifeln
- Shanon
- 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
-
-
Schreib bitte die Zeilen hier rein, damit wir dir helfen können. Die Zeilen von deinem .pwn Script.
-
Von Public den? Er Spawnt immer da, wo er Off gegangen ist!
Ich kann es auf em TS erklären, IP: 85.31.187.152:1363
Ich biete den jenigen auch Geld wenn er will!
Kommt drauf -
poste einfach deinen Code, und mach hier nich sonen aufstand, ohne Code kann man dir nich helfen, und nich jeder geht immer zu jedem auf nen TS oder ähnliches ..... -.-
-
Du sagst auch selbst, das es gedownloadet ist.
Welches Script?
Im Notfall Uploade es -.- -
Hier, alles kann ich nicht posten, code ist zu lang!
public SetPlayerSpawn(playerid)
{
new string[128];
if(IsPlayerConnected(playerid))
{
if(!IsPlayerNPC(playerid))
{
if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0)
{
if(FirstSpawn[playerid] != 1)
{
SetRealMoney(playerid, ScriptMoney[playerid]);
PlayerInfo[playerid][pDeaths] += 1;
SetPlayerHealth(playerid, 15.0);
TodStatus[playerid] = 1;
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~Du bist gestorben!", 5000, 3);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
SetTimerEx("ReleaseFromHospital", 20000, 0, "i", playerid);
return 1;
}
}
if(PlayerInfo[playerid][pAdminDuty] == 1 && PlayerInfo[playerid][pAdmin] >= 3)
{
SetPlayerSkin(playerid, 294);
if(PlayerInfo[playerid][pAdmin] >= 6)
{
SafeResetPlayerWeapons(playerid);
SafeGivePlayerWeapon(playerid, 42, 10000);
SafeGivePlayerWeapon(playerid, 39, 10000);
SafeGivePlayerWeapon(playerid, 38, 10000);
SafeGivePlayerWeapon(playerid, 34, 10000);
SafeGivePlayerWeapon(playerid, 31, 10000);
SafeGivePlayerWeapon(playerid, 29, 10000);
SafeGivePlayerWeapon(playerid, 27, 10000);
SafeGivePlayerWeapon(playerid, 24, 10000);
SafeGivePlayerWeapon(playerid, 40, 1);
SafeGivePlayerWeapon(playerid, 10, 1);
SafeGivePlayerWeapon(playerid, 9, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 1000);
SetPlayerHealth(playerid, 99999);
SetPlayerArmour(playerid, 99999);
}
}if(Spectate[playerid] != 255)
{
SafeSetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
SafeSetPlayerInterior(playerid, Interior[playerid]);
SetPlayerVirtualWorld(playerid, VirWorld[playerid]);
if(PlayerInfo[playerid][pAdmin] >= 6)
{
if(PlayerInfo[playerid][pAdminDuty] == 1)
{
SetPlayerHealth(playerid, SpHealth[playerid]);
SetPlayerArmour(playerid, SpArmour[playerid]);
}
else
{
SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
SetPlayerArmour(playerid, PlayerInfo[playerid][pArmour]);
}
}
else
{
SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
SetPlayerArmour(playerid, PlayerInfo[playerid][pArmour]);
}
SetPlayerWeapons(playerid);
SetPlayerToTeamColor(playerid);
Spectate[playerid] = 255;
TextDrawShowForPlayer(playerid, Textdraw44);
TextDrawShowForPlayer(playerid, Textdraw45);
TextDrawShowForPlayer(playerid, Textdraw55);
TextDrawShowForPlayer(playerid, Textdraw51[playerid]);
TextDrawHideForPlayer(playerid, Textdraw54[playerid]);
if(PlayerInfo[playerid][pWatch] >= 1)
{
TextDrawShowForPlayer(playerid, Textdraw56);
TextDrawShowForPlayer(playerid, Textdraw57);
TextDrawShowForPlayer(playerid, Textdraw58);
}
return 1;
}
if(PlayerInfo[playerid][pAndro] == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "Projekt Airlines: Die Medics haben dich Gerettet!");
SafeSetPlayerInterior(playerid, PlayerInfo[playerid][pInt]);
SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][pVirWorld]);
SafeSetPlayerPos(playerid, 315.745,984.969,1958.919);
return 1;
}
if(PlayerInfo[playerid][pJet] == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "Projekt Airlines: Die Medics haben dich Gerettet!");
SafeSetPlayerInterior(playerid, PlayerInfo[playerid][pInt]);
SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][pVirWorld]);
SafeSetPlayerPos(playerid, 3.7333,23.0483,1199.6012);
return 1;
}
if(PlayerInfo[playerid][pTut] == 0)
{
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
SafeSetPlayerInterior(playerid, 3);
SafeSetPlayerPos(playerid, 330.6825,163.6688,1014.1875);
SetPlayerFacingAngle(playerid, 280);
TogglePlayerControllable(playerid, 0);
new geschlecht[] = "Welchem Geschlecht gehörst du an?";
ShowPlayerDialog(playerid,515,DIALOG_STYLE_MSGBOX,"Geschlecht",geschlecht,"Männlich","Weiblich");
PlayerInfo[playerid][pRegularCount] = 144000;
SafeGivePlayerMoney(playerid,5000);
return 1;
}
new house = PlayerInfo[playerid][pPhousekey];
if(PlayerInfo[playerid][pJailed] == 1)
{
SafeSetPlayerInterior(playerid, 6);
SafeSetPlayerPos(playerid,264.6288,77.5742,1001.0391);
SendClientMessage(playerid, COLOR_LIGHTRED, "Unvollständige Gefängnisstrafe, zurück ins Gefängnis.");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 2)
{
SafeSetPlayerInterior(playerid, 0);
SafeSetPlayerPos(playerid,268.5777,1857.9351,9.8133);
SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453);
return 1;
}
if(PlayerInfo[playerid][pJailed] == 3)
{
SafeSetPlayerInterior(playerid, 3);
SafeSetPlayerPos(playerid,197.7956,175.0676,1003.0234);
SendClientMessage(playerid, COLOR_LIGHTRED, "Unvollständige Gefängnisstrafe, zurück ins Gefängnis.");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 4)
{
SafeSetPlayerInterior(playerid, 10);
SafeSetPlayerPos(playerid,214.8052,108.9046,999.0156);
SendClientMessage(playerid, COLOR_LIGHTRED, "Unvollständige Gefängnisstrafe, zurück ins Gefängnis.");
return 1;
}
if(JustDied[playerid] == 1)
{
if(GetPlayerVirtualWorld(playerid) != 0 || PlayerInfo[playerid][pVirWorld] != 0)
{
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pVirWorld] = 0;
}
SafeSetPlayerPos(playerid, 1182.5638,-1323.5256,13.5790);
SetPlayerFacingAngle(playerid, 270.0);
SafeSetPlayerInterior(playerid,0);
TogglePlayerControllable(playerid, 1);
return 1;
}
if(TutTime[playerid] == 0 && PlayerInfo[playerid][pTut] == 1 && RegistrationStep[playerid] == 0 && AfterTutorial[playerid] == 0 && FirstSpawn[playerid] == 1)
{
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "~w~Willkommen, ~b~%s, ~n~~y~in Los Santos!", plname);
GameTextForPlayer(playerid, string, 5000, 1);
return 1;
}
if(house != 9999)
{//-----------SPAWNPLäTZE--------------------------------------------------------------------------------------------------------------//
if(PlayerInfo[playerid][pSpawn] == 1) //Wenn 1, Das spawnen sie zuhause, sonst wo anders
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[house][hWorld]);
PlayerInfo[playerid][pLocal] = house;
HouseEntered[playerid] = house;
return 1;
}
else if(PlayerInfo[playerid][pSpawn] == 0)
{
SetPlayerToTeamColor(playerid);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
else if(PlayerInfo[playerid][pSpawn] == 2)
{
new family = PlayerInfo[playerid][pFMember];
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid, FamilyInfo[family][FamilyInterior]);
SetPlayerFacingAngle(playerid, FamilyInfo[family][FamilySpawn][3]);
return 1;
}
else if(PlayerInfo[playerid][pSpawn] == 3)
{
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//SAPD Spawn
{
if(PlayerInfo[playerid][pFrakSpawn] == 0)
{
SafeSetPlayerInterior(playerid,6);
SetPlayerVirtualWorld(playerid,0);
SafeSetPlayerPos(playerid, 237.9638,80.8914,1005.0391);
SetPlayerFacingAngle(playerid, 166.4415);
new originalskin = PlayerInfo[playerid][pModel];
SetPlayerSkin(playerid, originalskin);
SetCameraBehindPlayer(playerid);
return 1;
}
else if(PlayerInfo[playerid][pFrakSpawn] == 1)
{
SafeSetPlayerInterior(playerid,10);
SetPlayerVirtualWorld(playerid,0);
SafeSetPlayerPos(playerid, 237.8563,122.8008,1003.2188);
SetPlayerFacingAngle(playerid, 178.8850);
new originalskin = PlayerInfo[playerid][pModel];
SetPlayerSkin(playerid, originalskin);
SetCameraBehindPlayer(playerid);
return 1;
}
}Dann geht es mit den anderen fraks weiter
//E: Ravens Roleplay, ging wie ich es runtergeladen habe, habs nun schon seit 5 monaten editiert, es funzt fast alles außer spawn!
Das Komische ist, es geht manchmal, und manchmal nicht!
-
breadfish.de
Hat das Thema geschlossen.