ma3ldesh ya shadow

ana ha7awel ma3ah ahoh
anta 3ayazhom yamsho men al arena emta ?
lama kolhom fehom yamot sa7 ?
yab2a t7otaha fel attack handlers maslan ? b nested conditions
hat3mal 3 level nested if conditions
if killed entity flag == player flag
if (hit points >= 0) aw if (attack >= hit points)
if team arena map list contain al map beta3hom
teleport bara
w momken t7otaha fel die method (3ala ma atzakar kanet bett3amlaha raise lama 7ad bymawt 7ad)
w hat3mal kman check law homa mayten 3alshan t3malhom rev abl mat3malhom teleport
3alshan law 3amlt rev ba3d ma ta3mal teleport hayro7o ll city default reving coords
w ma3lesh 7awal abl mats2al tafkar w tashof law feh 7aga fel source 3andak orayba men aly anta 3ayzo w dawar 3aleha w 7ot break point w shof al source bya3malha azay
w zay momken ta3mal aly alak 3aleh shadow ano anta ta7ot kol al teams aly 3amla sign up aly anta hat3malhom match f list
aw momken ashal men keda lama wa7ed yamot ta3mal scan
tagyb al map men killer map property
hat3mal scan
for each player in sever
if player map property == killer map
add player to gamestate entity directory
w kol lama wa7ed yamot 2a3mal nafs al scan
for each player in sever
if player map property == killer map
if player team != null , player is team leader
2a3mal foreach loop for each player in this team , law fehom wa7ed alive 2a3mal break w set entity bool property true , law kolhom mayten set that bool to false
law al bool true break , law al bool false revhom kolhom w announce winners w tele them back to previous map with previous x and previous y
leh bool property ? 3alashan anta mesh hayb2a 3andak arena wa7da dol kaza arena f nafs al wa2t
leh team arena map list ? 3alshan anta hat3mal new map each new match w mesh 1 arena l kol al server
leh hat3mal scan 3ala al server kolo ? 3alshan anta lazem ta3mal scan 3alshan t3mal check 3ala al players entity map id
momken ta3mal directory b <entity,mapid> 3alshan tab2a hyea 1 directory w feha al map ids
kol mahtfakar fel 7akayea w kol hatb2a programmer ashtar hat3rf ta3mal al quest a7san