Thread: new respawn
View Single Post
man_s_our
Senior Member
Join Date: Jul 2017
Location: aim_taliban
Old 03-09-2018 , 20:35   Re: new respawn
Reply With Quote #12

Quote:
Originally Posted by HamletEagle View Post
1.You are using permanent tasks to respawn the player where you could simply hook Ham_Killed.
2.The way you get all players(loop with get_maxplayers) is wrong. In most cases you should use get_players.
3.Declaring variables in a loop.
4.If I remember right using spawn() on players has issues, but I don't feel like checking right now. Anyway, you should use Ham for this.
5.Creating different tasks with the same id.
6.Why are you using 2 tasks at 0.5 and at 0.7 seconds to respawn the player?
7.Why include cstrike if you are not going to use it?
either I didn't see Ham_killed tutorial or it was used in other respawn plugins and didn't work with the c4.
this is the first time I know about get_players(). after all I'm amature in amxx coding.
I declared the index in the loop starting only. if you mean somewhere else then I forgetted about.
when I searched for the set_task tutorials I didn't find the identification for the id but I found that setting the same id for two tasks (at least if they aren't different) doesn't effect.
__________________
man_s_our is offline