shanapu / MyJailShop

MyJailShop is a redux rewrite of Dkmuniz Jail Shop and provide you a high customizable shop with credits system intended for jailbreak server.
https://forums.alliedmods.net/showthread.php?t=288712
GNU General Public License v3.0
13 stars 9 forks source link

Versison 1.3.2 - Added Teleport Random T #32

Closed Hexer10 closed 7 years ago

Hexer10 commented 7 years ago

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.

Hexer10 commented 7 years ago

Sorry for the spaces, spedit automatically add them when reformatting

shanapu commented 7 years ago

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

shanapu commented 7 years ago

I added your new function by hand. easiest for both of us. Much thanks! keep coding!