The game does its very best to maintain the same gamestate between connected players, and this includes JASS variables. As such, it's very difficult to get things into the JASS context without a desync. There's probably a way to accomplish it through GetLocalPlayer and the memhack tools, but it'd be a lot of work and very prone to errors.
Any particular reason you'd want this in the first place? The regular game has decent tools for dropping lagging players, and bots have lots of additional tools for measuring ping, messing with latency, and dropping players.