/* ============================================================== *//* ==================== < Holtest Rendszer > ==================== *//* ======================= < Készítette > ======================= *//* =================== < RDash > =================== *//* ================== < NE TÖRÖLD KI > ================== *//* ============================================================== */ #include <a_samp>#include <streamer> new Gyilkos[MAX_PLAYERS], Holttest[MAX_PLAYERS], hObject[MAX_PLAYERS];new Halott[MAX_PLAYERS];new Float:Yh[MAX_PLAYERS], Float:Xh[MAX_PLAYERS], Float:Zh[MAX_PLAYERS];public OnPlayerDeath(playerid, killerid, reason){DestroyDynamicObject(hObject [playerid]);GetPlayerPos(playerid, Yh[playerid], Xh[playerid], Zh[playerid]);hObject[playerid] = CreateDynamicObject(2907, Yh[playerid], Xh[playerid], Zh[playerid]-0.8, 0, 0, 274);Gyilkos[playerid] = killerid;Holttest[playerid] = playerid;Halott[playerid] = 1;return 1;}//=================VÉGE=================
new hObject[MAX_PLAYERS];new timer_[MAX_PLAYERS];public OnPlayerDeath(playerid, killerid, reason){if(IsValidDynamicObject(hObject[playerid])){DestroyDynamicObject(hObject[playerid]); //töröljükhObject[playerid] = INVALID_OBJECT_ID;}new Float:POS_[4];GetPlayerFacingAngle(playerid,POS_[3]);GetPlayerPos(playerid,POS_[1],POS_[2],POS_[3]);hObject[playerid] = CreateDynamicObject(2907, POS_[1],POS_[2],POS_[3]-0.8, 0, 0,POS_[3]);timer_[playerid] = SetTimerEx(\"ObjectTorol\",15*1000,false,\"d\",playerid);return 1;}forward ObjectTorol(playerid);public ObjectTorol(playerid){if(IsValidDynamicObject(hObject[playerid])){DestroyDynamicObject(hObject[playerid]); //töröljükhObject[playerid] = INVALID_OBJECT_ID;timer_[playerid] = -1;}}public OnPlayerDisconnect(playerid, reason){if(timer_[playerid] != -1){KillTimer(timer_[playerid]);}if(IsValidDynamicObject(hObject[playerid])){DestroyDynamicObject(hObject[playerid]); //töröljükhObject[playerid] = INVALID_OBJECT_ID;} }
DestroyDynamicObject(hObject [playerid]);GetPlayerPos(playerid, Yh[playerid], Xh[playerid], Zh[playerid]);hObject[playerid] = CreateDynamicObject(2907, Yh[playerid], Xh[playerid], Zh[playerid]-0.8, 0, 0, 274);Gyilkos[playerid] = killerid;Holtest[playerid] = playerid;
DestroyDynamicObject(hObject [playerid]); GetPlayerPos(playerid, Yh[playerid], Xh[playerid], Zh[playerid]); hObject[playerid] = CreateDynamicObject(2907, Yh[playerid], Xh[playerid], Zh[playerid]-0.8, 0, 0, 274); Gyilkos[playerid] = killerid; Holtest[playerid] = playerid;