duydat00211068
Youtube Master Race
- 20/7/08
- 19
- 0
khi đang đánh trên gg mà 1 đứa thoát ra thì làm sao để toàn bô quân của đứa thoát ra biến mất vĩnh viên trên bản đồ vậy ai biết chỉ em đi em mò hoài mà không được
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.


hôm nào có up lên làm ví dụ cho em nha anh thanks anh nhiêu lắm::)A ko có WE ở đây.
Variable... Ấn Ctrl-B mở ra, rồi add new variable đặt tên là G_Left, dưới dạng Unit Group![]()
PlayerLose
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A town-hall-type unit) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Dying unit)) Equal to Player X
Then - Actions
Game - Display to (All players) the text: ((Name of (Owner of (Triggering unit))) + |cffff0000Has been defeated!!|r)
Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit))) and do (Unit - Kill (Picked unit))
Player Group - Remove (Owner of (Triggering unit)) from (All players)
Else - Actions
. Còn Kill thì cậu thấy unit lăn đùng ra chết 
Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ((Picked player) slot status) Not equal to Is playing Then - Actions Game - Display to (All players) the text: ((Name of (Picked player)) + Has left the game.) Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit))) and do (Unit - Remove (Picked unit) from the game) Player Group - Remove (Picked player) from (All players) Else - Actions Do nothing[/QUOTE nói:chỗ này em chưa hiêu lắm!!anh nói kỹ lại cái
Slot Player đó ko còn nữa ( tức là đã out/left game )((Picked player) slot status) Not equal to Is playing
Tất cả Player sẽ thấy 1 dòng chữ xuất hiên : Tên Player has Left the gameGame - Display to (All players) the text: ((Name of (Picked player)) + Has left the game.)
Hơi khó nói chút : kíck hoạt từng unit thuộc sỡ hữu của Player Left và remove unit đó điUnit Group - Pick every unit in (Units owned by (Owner of (Triggering unit))) and do (Unit - Remove (Picked unit) from the game)
Nếu Player Left đó nằm trong 1 Player Group nào đó thì lệnh này có tác dụng bỏ Player này ra khỏi Group. Ko rõ lắmPlayer Group - Remove (Picked player) from (All players)

Cái này là sai... "not equal to is playing" chỉ có nghĩa là slot đó ko được dùng, ko phải là đã left.((Picked player) slot status) Not equal to Is playing
LeftGame
Events
Player - Player 1 (Red) leaves the game
Player - Player 2 (Blue) leaves the game
Player - Player 3 (Teal) leaves the game
Player - Player 4 (Purple) leaves the game
Player - Player 5 (Yellow) leaves the game
Player - Player 6 (Orange) leaves the game
Player - Player 7 (Green) leaves the game
Player - Player 8 (Pink) leaves the game
Player - Player 9 (Gray) leaves the game
Player - Player 10 (Light Blue) leaves the game
Player - Player 11 (Dark Green) leaves the game
Player - Player 12 (Brown) leaves the game
Conditions
Actions
Set G_Left = (Units owned by (Triggering player))
Unit Group - Pick every unit in G_Left and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Custom script: call DestroyGroup(udg_G_Left)
Game - Display to (All players) the text: ((Name of (Picked player)) + Has left the game.)
, cái kia cần 2 máy nên cũng ko quan tâm lắm. Vậy là cái Trigger 1 đùng còn Trigger 2 thì bị sai . Cám ơn Zeka nha , tớ cũng chỉnh lại map mình luôn hehe , đỡ 1 bug 

Hê hê , sorry mà , làm gì ghê thếcái của anh Zekareisoujin có lý hơn vì cái kia 5 giây là spam tên nhân vật has left the game 1 lần



http://forum.gamevn.com/showthread.php?t=475215Custom script: call DestroyGroup(udg_G_Left) là sao vậy em chưa hiểu lắm đến đây rồi
, bảo đảm sẽ hiểu 

Memory Leaks là sự thất thoát (leak) những "handle object" (tạm dịch là vật có tính chất "handle", hay nói cách khác có type handle)
Nếu bạn dùng xong handle này mà ko remove đi thì bạn đã bị thất thoát bộ nhớ và nếu thất thoát quá nhiều sẽ gây ra lag, rất nghiêm trọng.
Custom Script đây là 1 "action" trong GUI cho phép ta viết 1 dòng JASS. Vì sự hạn chế của GUI nên ta phải sử dụng action này để "viết 1 dòng JASS" trong GUI và để xóa hết các "thất thoát bộ nhớ" (Memory Leaks)
Custom script: call DestroyGroup(udg_G_Left) là sao vậy em chưa hiểu lắm đến đây rồi
Phần action, câu lệnh,custom script
bạn paster nguyên vô:call DestroyGroup(G_Left)
Cần thiết thì thêm: (Triggering player) has left the game
![]()
Hức, sao em tìm hoài kô ra cái phần Player - Player 1 (Red) leaves the game vậy ???? ::(