Принятый ответ
function IsPlayer takes player p, mapcontrol c, playerslotstate s returns boolean if not (GetPlayerController(p) == c) then return false endif if not (GetPlayerSlotState(p) == s) then return false endif return true endfunction
Что так сложно-то.
function IsPlayer takes player p, mapcontrol c, playerslotstate s returns boolean
return GetPlayerController(p) == c and GetPlayerSlotState(p) == s
endfunction
`
ОЖИДАНИЕ РЕКЛАМЫ...
Чтобы оставить комментарий, пожалуйста, войдите на сайт.
Ред. PT153