-- Prevents Player Entering Zone function playerblockingzone_init(e) end function playerblockingzone_main(e) if g_Entity[e]['plrinzone']==1 then --PlaySoundIfSilent(e,0) Prompt("can't go this way") -- Prevent player entering zone area SetGamePlayerControlPushangle((math.deg(math.atan2(g_Entity[e]['x']-GetPlrObjectPositionX(),g_Entity[e]['z']-GetPlrObjectPositionZ()))+180)%360) SetGamePlayerControlPushforce(1.0) end end