Raised This Month: $51 Target: $400
 12% 

Fail Spawn Protector + Team Limiter


Post New Thread Reply   
 
Thread Tools Display Modes
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-06-2015 , 06:07   Re: Fail Spawn Protector v1.1
Reply With Quote #31

Looks ok for me.
Approved.
__________________

Last edited by HamletEagle; 12-06-2015 at 06:10.
HamletEagle is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-06-2015 , 06:16   Re: Fail Spawn Protector v1.1
Reply With Quote #32

Really appreciate it, HamletEagle.

Phant, I find this code. So, what your opinion?

https://forums.alliedmods.net/showpo...31&postcount=7
zmd94 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-06-2015 , 06:37   Re: Fail Spawn Protector v1.1
Reply With Quote #33

Precache is too early for this, try something like that:
Spoiler


I am not sure if this is the best way, I have to check something, but I don't have time right now. Based on his ideea, see what you can do with this. It will create entities until they number is 32, only if the default number is < 16.
__________________

Last edited by HamletEagle; 12-06-2015 at 06:38.
HamletEagle is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-06-2015 , 06:41   Re: Fail Spawn Protector v1.1
Reply With Quote #34

Alright, HamletEagle. Will test it.
zmd94 is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 12-06-2015 , 07:19   Re: Fail Spawn Protector v1.1
Reply With Quote #35

also some custome maps have like 26T spawn 6 CT spawn it will be greate if we can choose how many max spawn points for each team.
__________________
JusTGo is offline
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 12-06-2015 , 07:39   Re: Fail Spawn Protector v1.1
Reply With Quote #36

I think if you create spawnpoints later than plugin_precache(), then these spawnpoints will NOT work.
You should create spawnpoints inside plugin_precache(), but we need coordinates of exist spawnpoints, plugin_precache() too early for this . Interesting situation.
Phant is offline
Send a message via ICQ to Phant
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-06-2015 , 10:09   Re: Fail Spawn Protector v1.1
Reply With Quote #37

Now, it will become more complicated.

\o/

Will release the beta version soon.
zmd94 is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 12-06-2015 , 11:10   Re: Fail Spawn Protector v1.1
Reply With Quote #38

Quote:
Originally Posted by Phant View Post
I think if you create spawnpoints later than plugin_precache(), then these spawnpoints will NOT work.
You should create spawnpoints inside plugin_precache(), but we need coordinates of exist spawnpoints, plugin_precache() too early for this . Interesting situation.
idk mayby creating the spawn point at random origin in plugin_precahse() then after that get spawn point origine and edit the oigin of new spawn points ?
__________________

Last edited by JusTGo; 12-06-2015 at 11:11.
JusTGo is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-07-2015 , 05:27   Re: Fail Spawn Protector v1.1
Reply With Quote #39

Alright.
zmd94 is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 12-14-2015 , 17:16   Re: Fail Spawn Protector v1.1
Reply With Quote #40

If plugin_precache() is too early, and plugin_init() is too late, try hooking "info_player_deathmatch" and "info_player_start" Spawn, and do stuff in there. That's probably the best moment for doing it.

By the way, great job.

Last edited by klippy; 12-14-2015 at 17:17.
klippy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode