Closed Hexer10 closed 7 years ago
Sorry for the spaces, spedit automatically add them when reformatting
No problem, there are many correct (space) improvements, but not all. I recommend don't use an automatic to format or "clean" the code.
Btw. I forgot to suggest:
Instead of using a random players origin and add fClientOrigin[2] + 73
for the new teleport position, where players can stuck, - use the code I used for freekill repawn on MyJB, to teleport the player infront of an other player. The probability that a player stands directly in front of a wall is less than the probability by still adding +73 units.
https://github.com/shanapu/MyJailbreak/blob/master/addons/sourcemod/scripting/MyJailbreak/Modules/Request/freekill.sp#L429-L441
I added your new function by hand. easiest for both of us. Much thanks! keep coding!
Maybe i did some errors on the code, it's my first time that I edit this plugin. The only problem that a player can be stuck after teleporting. Idk why github says that I edit so much.