Way to detect which player is host?

Status
Not open for further replies.
lol its simple just ask in the lobby who the hell is host or look at in it in the game description before you join the game
 
JASS:
function GetHost takes nothing returns nothing
    local gamecache g = InitGameCache("Map.w3v")
    call StoreInteger ( g, "Map", "Host", GetPlayerId(GetLocalPlayer ())+1)
    call TriggerSyncStart ()
    call SyncStoredInteger ( g, "Map", "Host" )
    call TriggerSyncReady ()
    set udg_Host = Player( GetStoredInteger ( g, "Map", "Host" )-1)
    call FlushGameCache( g )
    set g = null
endfunction
--found on this website in less than 3 minutes.
 
Status
Not open for further replies.
Back
Top