Hallo zusammen,
wie kann ich machen das wenn jemand erschossen/stirbt das dieser nicht direkt wieder lebt(respawnt) sondern z.b. 2 Sekunden dort tot liegt?
LG Mr.Asdfg!
Hallo zusammen,
wie kann ich machen das wenn jemand erschossen/stirbt das dieser nicht direkt wieder lebt(respawnt) sondern z.b. 2 Sekunden dort tot liegt?
LG Mr.Asdfg!
Tut er doch?
Die Kamera geht dann doch so wackelig hoch
das sind 3 Sec ungefähr
Ne eben nicht, er wird sofort respawnt keine verzögerung nichts.
Das ja das komische.
lg
Das wurde dann warscheinlich so im Script gemacht..
Guck mal bei OnPlayerDeath nach
SpawnPlayer(playerid);
Das selbe habe ich auch gedacht, wäre schön blöd gewesen. Leider nichts zu finden dort.
dann schick mal den onpalyerdeath public
public OnPlayerDeath(playerid, killerid, reason)
{
//if(DMS[playerid] == 1)
///{
// SendDeathMessage(killerid, playerid, reason);
// }
if(PlayerInfo[playerid][pKopfgeld] > 0)
{
if(IsPlayerConnected(killerid))
{
if(PlayerInfo[killerid][pFaction] == 14)
{
new name[MAX_PLAYER_NAME];
new string[128];
new killer[MAX_PLAYER_NAME];
GetPlayerName(killerid, killer, sizeof(killer));
GivePlayerMoney(killerid, PlayerInfo[playerid][pKopfgeld]);
format(string, sizeof(string), "Hitman %s hat den Auftrag an %s erfüllt und bekommt: $%d",killer,name,PlayerInfo[playerid][pKopfgeld]);
SendTramMessage(COLOR_YELLOW, string);
PlayerInfo[playerid][pKopfgeld] = 0;
}
}
}
if(WantedLevel[playerid] > 0)
{
if(IsPlayerConnected(killerid))
{
if(PlayerInfo[killerid][pFaction] == 1 || PlayerInfo[killerid][pFaction] == 2)
{
new string[128];
PlayerInfo[playerid][pJailed] = 1;
PlayerInfo[playerid][pJailTime] = PlayerInfo[playerid][pWLevel] * 150;
new JailKosten;
JailKosten = PlayerInfo[playerid][pWLevel] * 100;
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid, 214.7836,108.9935,999.0156);
SetPlayerInterior(playerid, 2);
// SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
PlayerInfo[playerid][pWLevel] = 0;
format(string, sizeof(string), "Du wurdest eingesperrt! - Zeit: %d Sekunden. Preis: %d.00$", PlayerInfo[playerid][pPrisonTime], JailKosten);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
WantedLevel[playerid] = 0;
SetPlayerWantedLevel(playerid, 0);
GivePlayerMoney(playerid, -JailKosten);
}
}
}
if(PlayerInfo[playerid][pFaction] == 255) // Zvilist
{
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerPos(playerid, 214.2573,108.2698,1000.7222);
SetPlayerInterior(playerid, 2);
return 1;
}
// SpawnPlayer(playerid);
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
SetPlayerPos(playerid, -1968.5244,112.7431,27.6875);
SetPlayerHealth(playerid, 100);
return 1;
}
if(PlayerInfo[playerid][pFaction] == 1)// SFPD
{
if(PlayerInfo[playerid][pJailed] == 1) // SFPD
{
SetPlayerPos(playerid, 214.2573,108.2698,1000.7222);
SetPlayerInterior(playerid, 2);
return 1;
}
// SpawnPlayer(playerid);
SetPlayerPos(playerid, 228.2174,80.9218,1005.0391);
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
SetPlayerHealth(playerid, 100);
SetPlayerInterior(playerid, 0);
return 1;
}
if(PlayerInfo[playerid][pFaction] == 2) // FBI
{
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerPos(playerid, 214.2573,108.2698,1000.7222);
SetPlayerInterior(playerid, 2);
return 1;
}
// SpawnPlayer(playerid);
SetPlayerPos(playerid, 228.2174,80.9218,1005.0391);
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
SetPlayerHealth(playerid, 100);
SetPlayerInterior(playerid, 0);
return 1;
}
if(PlayerInfo[playerid][pFaction] == 3) // Bürgermeister
{
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerPos(playerid, 214.2573,108.2698,1000.7222);
SetPlayerInterior(playerid, 2);
return 1;
}
// SpawnPlayer(playerid);
SetPlayerPos(playerid, 1728.1504,-1670.5771,27.1953);
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
SetPlayerHealth(playerid, 100);
SetPlayerInterior(playerid, 0);
return 1;
}
if(PlayerInfo[playerid][pFaction] == 4) // Medics
{
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerPos(playerid, 214.2573,108.2698,1000.7222);
SetPlayerInterior(playerid, 2);
return 1;
}
// SpawnPlayer(playerid);
SetPlayerPos(playerid, 299.7195,191.1002,1007.1794);
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
SetPlayerHealth(playerid, 100);
SetPlayerInterior(playerid, 0);
return 1;
}
if(PlayerInfo[playerid][pFaction] == 5) // Miliz
{
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerPos(playerid, 214.2573,108.2698,1000.7222);
SetPlayerInterior(playerid, 2);
return 1;
}
// SpawnPlayer(playerid);
SetPlayerPos(playerid, -1684.9231,1323.2990,7.1875);
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
SetPlayerHealth(playerid, 100);
SetPlayerInterior(playerid, 0);
return 1;
}
if(PlayerInfo[playerid][pFaction] == 6) // News Reporter
{
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerPos(playerid, 214.2573,108.2698,1000.7222);
SetPlayerInterior(playerid, 2);
return 1;
}
// SpawnPlayer(playerid);
SetPlayerPos(playerid, -2055.4890,456.0122,35.1719);
SetPlayerHealth(playerid, 100);
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
SetPlayerInterior(playerid, 0);
return 1;
}
if(PlayerInfo[playerid][pFaction] == 7) // Hells Angels
{
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerPos(playerid, -1862.0996,-145.2117,11.8984);
SetPlayerInterior(playerid, 2);
return 1;
}
// SpawnPlayer(playerid);
SetPlayerPos(playerid,-1811.8207,-135.6321,6.1383);
SetPlayerHealth(playerid, 100);
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
return 1;
}
if(PlayerInfo[playerid][pFaction] == 8) // SF Rifa
{
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerPos(playerid, -1862.0996,-145.2117,11.8984);
SetPlayerInterior(playerid, 2);
return 1;
}
// SpawnPlayer(playerid);
SetPlayerPos(playerid, -2176.8247,642.5318,49.4375);
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
SetPlayerHealth(playerid, 100);
return 1;
}
if(PlayerInfo[playerid][pFaction] == 9) // Triaden
{
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerPos(playerid, -1862.0996,-145.2117,11.8984);
SetPlayerInterior(playerid, 2);
return 1;
}
// SpawnPlayer(playerid);
SetPlayerPos(playerid, -2642.5901,857.0774,64.0078);
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
SetPlayerHealth(playerid, 100);
return 1;
}
if(PlayerInfo[playerid][pFaction] == 10) // Da Nang Boys
{
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerPos(playerid, 214.2573,108.2698,1000.7222);
SetPlayerInterior(playerid, 2);
return 1;
}
// SpawnPlayer(playerid);
SetPlayerPos(playerid, -2458.0776,-136.7091,25.9899);
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
SetPlayerHealth(playerid, 100);
return 1;
}
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerPos(playerid, 214.2573,108.2698,1000.7222);
SetPlayerInterior(playerid, 2);
return 1;
}
// GetPlayerPos(playerid, deadx[playerid], deady[playerid], deadz[playerid]);
// JustDied[playerid] = 1;
// DeadInt[playerid] = GetPlayerInterior(playerid);
// DeadWorld[playerid] = GetPlayerVirtualWorld(playerid);
return 1;
}
Bitte ;D