public OnPlayerDeath(playerid, killerid, reason){SetTimerEx( \"korhazbaraktimer\", 4500, false, \"i\", playerid); Rendorszolg[playerid] = false; JatekosInfo[playerid][meghivas_aktiv] = false; JatekosInfo[playerid][visz] = false;JatekosInfo[playerid][Animban] = 0;JatekosInfo[playerid][Korhazban] = 5;return 1;}public korhazbaraktimer (playerid);public korhazbaraktimer (playerid){ SetPlayerPos(playerid,-204.2514,-1779.7922,675.7687); SetPlayerInterior(playerid, 3);SetPlayerFacingAngle(playerid,0.0);SetCameraBehindPlayer(playerid);SendFormattedMessage(playerid,COLOR_LIGHTBLUE,\"(( Súlyosan megsérültél, ezért kórházba kerültél. ))\");SetTimerEx(\"korhazido\", 5000, false, \"i\", playerid);}public korhazido (playerid);public korhazido (playerid){JatekosInfo[playerid][Korhazban] -= 1;if(JatekosInfo[playerid][Korhazban] > 0){SetTimerEx( \"korhazido\", 5000, false, \"i\", playerid);}}
#include <a_samp>new bool:meghalt[MAX_PLAYERS];new Float:pPos[MAX_PLAYERS][4];new Float:pos[MAX_PLAYERS][4];forward KiemhetAKorhazbol(playerid);public OnPlayerSpawn(playerid) {if(meghalt[playerid] == true) {meghalt[playerid] = false; SetPlayerPos(playerid,-204.2514,-1779.7922,675.7687); SetPlayerInterior(playerid, 3);SetPlayerFacingAngle(playerid,0.0);SetCameraBehindPlayer(playerid);SetTimerEx(\"KiemhetAKorhazbol\", 60000*5, false, \"i\", playerid); // 5 Perc}return 1;}public OnPlayerDeath(playerid, killerid, reason) {GetPlayerPos(playerid, pos[playerid][0], pos[playerid][1], pos[playerid][2]);GetPlayerFacingAngle(playerid, pos[playerid][3]);pPos[playerid][0] = pos[playerid][0];pPos[playerid][1] = pos[playerid][1];pPos[playerid][2] = pos[playerid][2];pPos[playerid][3] = pos[playerid][3]; meghalt[playerid] = true;return 1;}public KiemhetAKorhazbol(playerid) {GetPlayerPos(playerid, pPos[playerid][0], pPos[playerid][1], pPos[playerid][2]);GetPlayerFacingAngle(playerid, pPos[playerid][3]);SendClientMessage(playerid, -1, \"Az orvos szabadlábra helyezett de üzeni, hogy vigyázz magadra!\");return 1;}