Guten Tag.
Ich benutze Raven´s Roleplay und mir ist aufgefallen das das
LastSpawn drin ist. Ich möchte dies gerne ausschalten und den Spawn
woanders haben doch ich weiß nicht wie ich die Cordi
bekomme.
Hoffe ihr könnt mir helfen.
MfG DukeNukem
Guten Tag.
Ich benutze Raven´s Roleplay und mir ist aufgefallen das das
LastSpawn drin ist. Ich möchte dies gerne ausschalten und den Spawn
woanders haben doch ich weiß nicht wie ich die Cordi
bekomme.
Hoffe ihr könnt mir helfen.
MfG DukeNukem
MEinst du den lastspawn nach dem tutorial?.
oder wie.
Ehm neue koordinaten.
Du gehst ingame. Gehst dorthin wo er spawnen soll. Dann gibst du /save ein.
Danach gehst du auf EigeneDokumente/GTA San Andreas User Files/SAMP/Savepositions.txt
Die datei öffnest du.
Danach hast du diese zeile z.b stehen.
AddPlayerClass(1,376.2831,-2354.4465,20.1236,274.6266,0,0,0,0,0,0); //
Nun die xyz koordinaten.
AddPlayerClass(1,x,y,z,274.6266,0,0,0,0,0,0);//
X-Koordinate = 376.2831
Y-Koordinate = -2354.4465
Z-Koordinate = 20.1236
Genau nach dem TuT aber das verstehe ich nicht
Du musst unter public OnPlayerSpawn
bei SetPlayerPos die XYZ Koordinaten verändern
SetPlayerPos finde ich nicht
Müsste vorhanden sein.
drück mal ctrl+f und gib OnPlayerSpawn ein bzw SetPlayerpos Dies muss unter Public OnPlayerspawn stehen
public OnPlayerSpawn(playerid)
{
SetRealMoney(playerid, ScriptMoney[playerid]);
new pName[MAX_PLAYER_NAME];
new string[128];
InitLockDoors(playerid);
if(IsPlayerNPC(playerid)) return 1;
STDPlayer[playerid] = 0;
gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
if (gTeam[playerid] == 4) //medic / criminal reset team
Steht nur das da
Es geht doch weiter
füge mal die ganze onplayerspawn codeschnipsel ein
forward SmugglerExit(playerid);
forward SafeSetPlayerPos(playerid, Float:x, Float:y, Float:z);
Meinst du das
Zitatpublic OnPlayerSpawn(playerid)
von dem public OnPlayerSpawn den ganzen code
public OnPlayerSpawn(playerid)
{
SetRealMoney(playerid, ScriptMoney[playerid]);
new pName[MAX_PLAYER_NAME];
new string[128];
InitLockDoors(playerid);
if(IsPlayerNPC(playerid)) return 1;
STDPlayer[playerid] = 0;
gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
if (gTeam[playerid] == 4) //medic / criminal reset team
{
gTeam[playerid] = 3;
}
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "** ! Dieser Server erfordert eine Anmeldung vor dem spawnen sonst Kick ! **");
Kick(playerid);
}
if(PlayerInfo[playerid][pAdminDuty] == 1)
{
Delete3DTextLabel(DutyLabel[playerid]);
DutyLabel[playerid] = Create3DTextLabel("Admin im Einsatz \n Nicht Angreifen",0xFF000099,0,0,0,50,-1,1);
Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0,0,0);
}
else if(PlayerInfo[playerid][pTesterDuty] == 1)
{
Delete3DTextLabel(DutyLabel[playerid]);
DutyLabel[playerid] = Create3DTextLabel("Tester im Einsatz \n Nicht Angreifen",0x00AA0099,0,0,0,50,-1,1);
Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0,0,0);
}
if(!gPlayerAnimLibsPreloaded[playerid])
{
PreloadAnimLib(playerid,"BOMBER");
PreloadAnimLib(playerid,"RAPPING");
PreloadAnimLib(playerid,"SHOP");
PreloadAnimLib(playerid,"BEACH");
PreloadAnimLib(playerid,"SMOKING");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"ON_LOOKERS");
PreloadAnimLib(playerid,"DEALER");
PreloadAnimLib(playerid,"CRACK");
PreloadAnimLib(playerid,"CARRY");
PreloadAnimLib(playerid,"COP_AMBIENT");
PreloadAnimLib(playerid,"PARK");
PreloadAnimLib(playerid,"INT_HOUSE");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"PED");
PreloadAnimLib(playerid,"MISC");
PreloadAnimLib(playerid,"BLOWJOBZ");
PreloadAnimLib(playerid,"RIFLE");
PreloadAnimLib(playerid,"UZI");
PreloadAnimLib(playerid,"SHOTGUN");
PreloadAnimLib(playerid,"COLT45");
PreloadAnimLib(playerid,"SILENCED");
PreloadAnimLib(playerid,"GYMNASIUM");
PreloadAnimLib(playerid,"PARK");
PreloadAnimLib(playerid,"BSKTBALL");
PreloadAnimLib(playerid,"GANGS");
PreloadAnimLib(playerid,"FIGHT_D");
PreloadAnimLib(playerid,"PAULNMAC");
gPlayerAnimLibsPreloaded[playerid] = 1;
}
TextDrawHideForPlayer(playerid, Textdraw39[playerid]);
TextDrawHideForPlayer(playerid, Textdraw40[playerid]);
if(gTeam[playerid] == 11 && PlayerInfo[playerid][pLeader] < 1)
{
MedicBill[playerid] = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Sie sind nicht der Leader sie sind nur Zivilist !");
PlayerInfo[playerid][pTeam] = 3;
gTeam[playerid] = 3;
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
if(gTeam[playerid] == 5)
{
if(PlayerInfo[playerid][pMember] < 1)
{
MedicBill[playerid] = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Du bist kein Mitglied sonder ein Zivilist !");
PlayerInfo[playerid][pTeam] = 3;
gTeam[playerid] = 3;
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
}
if(gTeam[playerid] == 10)
{
if(PlayerInfo[playerid][pMember] != 8)
{
MedicBill[playerid] = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Du bist kein Mitglied sonder ein Zivilist !");
PlayerInfo[playerid][pTeam] = 3;
gTeam[playerid] = 3;
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
}
if(gTeam[playerid] == 2 && PlayerInfo[playerid][pMember] > 3)
{
MedicBill[playerid] = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Du bist kein Officer / FBI / National Guard, sondern ein Zivilist !");
PlayerInfo[playerid][pTeam] = 3;
gTeam[playerid] = 3;
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
if(PlayerInfo[playerid][pRegularCount] <= 72000 && PlayerInfo[playerid][pRegularRank] == 0)
{
PlayerInfo[playerid][pRegularRank] = 1;
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s wurde Automatisch hochgestuf auf Regulaerer spieler!", pName);
SendClientMessageToAll(COLOR_PINK, string);
GameTextForPlayer(playerid, "~y~PROMOTED ~n~~p~Regulaerer Spieler !!!!!", 10000, 5);
if (PlayerInfo[playerid][pHelper] == 0)
{
PlayerInfo[playerid][pHelper] = 1;
SendClientMessage(playerid, COLOR_PINK, "Du wurdest hochgestuft zu Helfer!");
}
if (PlayerInfo[playerid][pAchievement7] == 0)
{
TextDrawSetString(Textdraw64[playerid],"Herzlischen Glueckwunsch! ~n~~n~Du hast diese Medaile erhalten ~n~~b~Regulaerer Spieler (7) ~n~~n~~w~Du hast Gewonnen ~g~$200");
ShowAchievement(playerid);
SafeGivePlayerMoney(playerid,2500);
PlayerInfo[playerid][pAchievement7] = 1;
}
}
if(PlayerInfo[playerid][pRegularCount] <= 36000 && PlayerInfo[playerid][pRegularRank] == 1)
{
PlayerInfo[playerid][pRegularRank] = 2;
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s wurde Automatisch hochgestuf auf Regulaerer Spieler Level 2!", pName);
SendClientMessageToAll(COLOR_PINK, string);
GameTextForPlayer(playerid, "~y~PROMOTED ~n~~p~REGULAR PLAYER LEVEL 2!!!!!", 10000, 5);
if (PlayerInfo[playerid][pAchievement8] == 0)
{
TextDrawSetString(Textdraw64[playerid],"Herzlischen Glueckwunsch! ~n~~n~Du hast diese Medaile erhalten ~n~~b~Regulaerer Spieler Level 2 (8) ~n~~n~~w~Du hast gewonnen ~g~$5000");
ShowAchievement(playerid);
SafeGivePlayerMoney(playerid,5000);
PlayerInfo[playerid][pAchievement8] = 1;
}
}
if(PlayerInfo[playerid][pRegularCount] == 0 && PlayerInfo[playerid][pRegularRank] == 2)
{
PlayerInfo[playerid][pRegularRank] = 3;
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s wurde Automatisch hochgestuf auf Regulaerer Spieler Level 3!", pName);
SendClientMessageToAll(COLOR_PINK, string);
GameTextForPlayer(playerid, "~y~PROMOTED ~n~~p~REGULAR PLAYER LEVEL 3!!!!!", 10000, 5);
if (PlayerInfo[playerid][pHelper] == 1 || PlayerInfo[playerid][pHelper] == 0)
{
PlayerInfo[playerid][pHelper] = 2;
SendClientMessage(playerid, COLOR_PINK, "Du wurdest hochgestuft zu Master Helfer!");
}
}
if (PlayerInfo[playerid][pAchievement5] == 0 && PlayerInfo[playerid][pConnectSeconds] >= 3600)
{
TextDrawSetString(Textdraw64[playerid],"Herzlischen Glueckwunsch! ~n~~n~Du hast diese Medaile erhalten ~n~~b~ 1 Stunde! (5) ~n~~n~~w~Du hast Gewonnen ~g~$100");
ShowAchievement(playerid);
SafeGivePlayerMoney(playerid,100);
PlayerInfo[playerid][pAchievement5] = 1;
}
if (PlayerInfo[playerid][pAchievement6] == 0 && PlayerInfo[playerid][pConnectSeconds] >= 18000)
{
TextDrawSetString(Textdraw64[playerid],"Herzlischen Glueckwunsch! ~n~~n~Du hast diese Medaile erhalten ~n~~b~5 Stunden! (6) ~n~~n~~w~Du hast Gewonnen ~g~$250");
ShowAchievement(playerid);
SafeGivePlayerMoney(playerid,250);
PlayerInfo[playerid][pAchievement6] = 1;
}
if(gTeam[playerid] == 3)
{
if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Sie sind Teil einer Familie / Force, Sie haben die richtige Klasse + Charakter !");
MedicBill[playerid] = 0;
new model = PlayerInfo[playerid][pChar];
if(PlayerInfo[playerid][pMember] == 1) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
else if(PlayerInfo[playerid][pMember] == 2) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
else if(PlayerInfo[playerid][pMember] == 3) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
else if(PlayerInfo[playerid][pMember] == 4) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; }
else if(PlayerInfo[playerid][pMember] == 5) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[playerid][pMember] == 6) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[playerid][pMember] == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pMember] == 8) { SetSpawnInfo(playerid, 10, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; }
else if(PlayerInfo[playerid][pMember] == 9) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
else if(PlayerInfo[playerid][pMember] == 10) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
else if(PlayerInfo[playerid][pMember] == 11) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
else if(PlayerInfo[playerid][pMember] == 12) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; }
else if(PlayerInfo[playerid][pMember] == 13) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pMember] == 14) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[playerid][pMember] == 15) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[playerid][pMember] == 16) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[playerid][pLeader] == 1) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 2) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 3) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 4) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 5) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 6) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 8) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 9) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 10) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 11) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 12) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; }
else if(PlayerInfo[playerid][pLeader] == 13) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 14) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 15) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 16) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
//SetSpawnInfo(playerid, team, model,0.0,0.0,0.0,0,0,0,0,0,0,0);
SpawnPlayer(playerid);
}
}
//----------------------------------------------------------------------------------------------------------------------DEUTSCH----------------------------------//
if(PlayerInfo[playerid][pChar] > 0) { SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]); }
else { SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); }
SetPlayerWeapons(playerid);
SetPlayerSpawn(playerid);
SetPlayerToTeamColor(playerid);
PlayerFixRadio(playerid);
IsCopBanned(playerid);
return 1;
}
public CKLog(string[])
{
new entry[200];
format(entry, sizeof(entry), "%s\r\n",string);
new File:hFile;
hFile = fopen("LARP/Logs/ck.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}
public PayLog(string[])
{
new entry[200];
format(entry, sizeof(entry), "%s\r\n",string);
new File:hFile;
hFile = fopen("LARP/Logs/pay.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}
public KickLog(string[])
{
new entry[200];
format(entry, sizeof(entry), "%s\r\n",string);
new File:hFile;
hFile = fopen("LARP/Logs/kick.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}
public WarnLog(string[])
{
new entry[200];
format(entry, sizeof(entry), "%s\r\n",string);
new File:hFile;
hFile = fopen("LARP/Logs/warn.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}
such mal nach
public SetPlayerSpawn(playerid)
glaube da sind die ganzen spawn drinn
ok und von public SetPlayerSpawn(playerid) auch bitte
public SetPlayerSpawn(playerid)
{
new string[128], rand;
if(IsPlayerConnected(playerid))
{
if(!IsPlayerNPC(playerid))
{
if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0)
{
if(PlayerInfo[playerid][pAdminDuty] == 1) return 1;
if(FirstSpawn[playerid] != 1)
{
SetRealMoney(playerid, ScriptMoney[playerid]);
PlayerInfo[playerid][pDeaths] += 1;
SetPlayerHealth(playerid, 50.0);
SafeSetPlayerInterior(playerid, 3);
rand = random(sizeof(gMedicSpawns));
SafeSetPlayerPos(playerid, gMedicSpawns[rand][0], gMedicSpawns[rand][1], gMedicSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 0);
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~Sie muessen sich jetzt ausruhen ...", 5000, 3);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
if(PlayerInfo[playerid][pRegularRank] == 1)
{
SetTimerEx("ReleaseFromHospital", 20000, 0, "i", playerid);
}
else if(PlayerInfo[playerid][pRegularRank] == 2)
{
SetTimerEx("ReleaseFromHospital", 17500, 0, "i", playerid);
}
else if(PlayerInfo[playerid][pRegularRank] == 3)
{
SetTimerEx("ReleaseFromHospital", 15000, 0, "i", playerid);
}
else if(PlayerInfo[playerid][pAdmin] >= 1)
{
SetTimerEx("ReleaseFromHospital", 12500, 0, "i", playerid);
}
else if(PlayerInfo[playerid][pAdmin] >= 4)
{
SetTimerEx("ReleaseFromHospital", 10000, 0, "i", playerid);
}
else
{
SetTimerEx("ReleaseFromHospital", 25000, 0, "i", playerid);
}
PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);
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_GREY, "US 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_GREY, "US 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);
RegistrationStep[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTRED, "Willkommen auf Elite-Roleplay Server.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Willkommen im EinwanderungsZentrum von Los Santos, wir stellen dir nun ein paar Fragen.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Erste Frage: Bist du Male (Mann) oder Female (Frau)?");
SendClientMessage(playerid, COLOR_LIGHTRED, "Bitte gebe nun dein Geschlecht ein!");
PlayerInfo[playerid][pRegularCount] = 144000;
SafeGivePlayerMoney(playerid,10000);
das war doch nicht alles
{
if(PlayerInfo[playerid][pSpawn] == 3)
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid, 0);
SafeSetPlayerPos(playerid, 2731.5229,-2451.3643,17.5937);
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Fire/Ambulance spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid, 1174.9027,-1326.7284,14.5938);
SetPlayerFacingAngle(playerid, 0);
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//Surenos spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid, 5);
SafeSetPlayerPos(playerid, 2345.6570,-1185.5266,1027.9766);
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//La Famiglia Sinatra spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid, 15);
SafeSetPlayerPos(playerid, 1265.4475,-794.9257,1084.0078);
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)//Mayor spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid, 3);
SafeSetPlayerPos(playerid, 356.2998,151.9914,1025.7891);
PlayerInfo[playerid][pLocal] = 241;
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid, 1102.7017,-299.0774,73.9922);
SafeSetPlayerInterior(playerid,0);
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //News spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid,3);
SafeSetPlayerPos(playerid, 355.7899,204.0173,1008.3828);
SafeGivePlayerWeapon(playerid, 43, 20);
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pJob] == 13) //Taxi Cab Company spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid, 1754.99,-1894.19,13.55);
SafeSetPlayerInterior(playerid,0);
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11 || IsAnInstructor(playerid)) //Driving/Flying School spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid,3);
SafeSetPlayerPos(playerid, 1494.4991,1308.9163,1093.2845);
SetPlayerFacingAngle(playerid, 180);
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)//Yamaguchi spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid, 0);
SafeSetPlayerPos(playerid, 616.9447,-1538.7158,15.2904);
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)//Yamaguchi spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid, 0);
SafeSetPlayerPos(playerid, 683.0686,-473.8775,16.5363);
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)//Yamaguchi spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid, 3);
SafeSetPlayerPos(playerid, 962.8333,-60.0172,1001.1246);
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)//La.Cosa.Nostra spawn 3
{
if(PlayerInfo[playerid][pSpawn] == 3)
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid, 5);
SafeSetPlayerPos(playerid, 1293.1224, -832.3760, 1085.6328);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 24, 500);
SafeGivePlayerWeapon(playerid, 31, 2500);
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)//La Vice spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid, 2);
SafeSetPlayerPos(playerid, 455.8776,1413.6802,1084.3080);
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
}
}
else
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
}
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);
RegistrationStep[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTRED, "Willkommen auf Elite-Roleplay Server.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Willkommen im EinwanderungsZentrum von Los Santos, wir stellen dir nun ein paar Fragen.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Erste Frage: Bist du Male (Mann) oder Female (Frau)?");
SendClientMessage(playerid, COLOR_LIGHTRED, "Bitte gebe nun dein Geschlecht ein!");
PlayerInfo[playerid][pRegularCount] = 144000;
SafeGivePlayerMoney(playerid,10000);
{
if(PlayerInfo[playerid][pSpawn] == 3)
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid, 0);
SafeSetPlayerPos(playerid, 2731.5229,-2451.3643,17.5937); // Das sollte normalerweiße der Endspawn sein
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
Alles anzeigen