Servas,
Ich hätte manen Problem.Ich Spawne immer in der GS oder in der Luft mit einer Flascheodereinen Joind in der Hand.
Kann mirbitte wer helfen ?
LG Tempic
Servas,
Ich hätte manen Problem.Ich Spawne immer in der GS oder in der Luft mit einer Flascheodereinen Joind in der Hand.
Kann mirbitte wer helfen ?
LG Tempic
Wenn du so fragst bestimmt nicht, weil wir wissen ja nichtmal einen Teil des Scripts der den
Fehler auslösen könnte, schick einfach mal den Teil
OnPlayerSpawn
Hier Bitte
public SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
if(TVx[playerid] != 0.0)
{
SetPlayerInterior(playerid, TVint[playerid]);
SetPlayerVirtualWorld(playerid, TVvw[playerid]);
SetPlayerPos(playerid, TVx[playerid], TVy[playerid],TVz[playerid]);
SetPlayerHealth(playerid, TVhealth[playerid]);
SetPlayerArmour(playerid, TVarmor[playerid]);
for(new i; i<13; i++)
{
SafeGivePlayerWeapon(playerid, TVweapons[playerid][i][0],TVweapons[playerid][i][1]);
}
return 1;
}
if(PlayerInfo[playerid][pTut] == 0)
{
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
TogglePlayerControllable(playerid, 0);
RegistrationStep[playerid] = 1;
ShowPlayerDialog(playerid, 4, DIALOG_STYLE_MSGBOX , "Geschlecht", "Welches Geschlecht bist du?", "Männlich", "Weiblich");
}
new rand;
new house = PlayerInfo[playerid][pPhousekey];
if(PlayerPaintballing[playerid] != 0)
{
SafeResetPlayerWeapons(playerid);
SafeGivePlayerWeapon(playerid, 29, 999);
rand = random(sizeof(PaintballSpawns));
SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
return 1;
}
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,198.3396,162.2801,1003.0300);
SendClientMessage(playerid, COLOR_LIGHTRED, " Polizei Department:Zurück in die Zelle es wird nicht ausgebrochen! ");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 2)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,268.5777,1857.9351,9.8133);
SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811
return 1;
}
if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0)
{
MedicBill[playerid] = 0;
MedicTime[playerid] = 0;
NeedMedicTime[playerid] = 0;
PlayerInfo[playerid][pDeaths] += 1;
SetPlayerHealth(playerid, 75.0);
}
if(house !=255)
{
if(SpawnChange[playerid]) //If 1, then you get to your house, else spawn somewhere else
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,HouseInfo[house][hEntrancex],HouseInfo[house][hEntrancey],HouseInfo[house][hEntrancez]);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = house;
GivePlayerWeapons(playerid);
//SetPlayerInterior(playerid,HouseInfo[house][hInt]);
//SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
PlayerInfo[playerid][pLocal] = house;
//PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
//SetPlayerVirtualWorld(playerid,i);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)// LS Police spawn
{
GivePlayerWeapons(playerid);
SetPlayerPos(playerid, 1553.0665,-1694.6221,6.2188);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) //SF Police spawn
{
GivePlayerWeapons(playerid);
SetPlayerPos(playerid, -1592.9088,715.7770,-5.2422);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//Army spawn
{
GivePlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, -1336.0508,444.7277,7.1875);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Fire/Ambulance spawn
{
GivePlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1130.9204,-1332.0925,13.5810);
PlayerInfo[playerid][pInt] = 0;
SetPlayerArmour(playerid,100);
return 1;
}
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//LCN spawn
{
GivePlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 299.1069,-1155.2950,80.9099);
SetPlayerFacingAngle(playerid,358.4079);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//Uzunu spawn
{
SetPlayerHealth(playerid, 100.0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, -2638.4224,1394.6447,7.1016);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
if(PlayerInfo[playerid][pLeader] == 7)//Präsident spawn
{
GivePlayerWeapons(playerid);
SetPlayerInterior(playerid, 5);
SetPlayerPos(playerid,1274.9025,-792.1293,1089.9331);
PlayerInfo[playerid][pInt] = 5;
PlayerInfo[playerid][pLocal] = 241;
return 1;
}
if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman spawn
{
GivePlayerWeapons(playerid);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, -688.0806,943.5139,13.6328);
SetPlayerFacingAngle(playerid,2.8142);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //News spawn
{
GivePlayerWeapons(playerid);
SetPlayerPos(playerid, -2050.8962,460.0262,35.1719);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) //Taxi spawn
{
GivePlayerWeapons(playerid);
SetPlayerPos(playerid, -1967.6106,105.8539,151.5939);
SetPlayerFacingAngle(playerid,2.8660);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)//Fahrschule spawn
{
GivePlayerWeapons(playerid);
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, -2032.9375,-117.0294,1035.1719);
SetPlayerFacingAngle(playerid, 268.0652);
PlayerInfo[playerid][pInt] = 3;
return 1;
}
if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)//A-Team spawn
{
GivePlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 255.2038,-1366.5187,53.1094);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
Du solltest OnPlayerSpawn senden nicht SetPlayerSpawn
ER Hat GF deswegen SetPlayerSpawn... des passt schon..