Resupplied
1 Attachment(s)
RESUPPLIED
Version 0.8 Changes: 0.8 - Recoded around ResetHUD Loop - Thanks Teame06 and VEN 0.7 - Properly declared precache sound. - Thanks DoomBringer 0.6 - Corrected Code accordingly. - Thanks DoomBringer & Emp` 0.5 - Initial Post and release. Test Resupplied Plugin: 209.160.72.191:27035 >> Sven-Coop Server Running with AMX Mod X 1.76c... Earlier versions might be supported. Modules: Fun Amxmodx Purpose: The purpose of resupplied, is to provide admins and or users with a new gameplay style. With resupplied, the admin will be able to turn on Spawn protection, which in many cases would help in those sven coop maps where the monsters and mobs spawn right beside or are camping in spawn. Not only is Spawn Protection a feature, but so is the Resupplying of ammo to the players. The resupply method is carried out the same way but instead of spawn protection, players will be able to get ammo bonuses on the field before spawn, to give them that extra kick to survive a little longer. The resupply code goes by a random number that is generated every time its called (by the timer). The players have 16 distinct chances to what they need, such as extra health, and extra ammo. Cvars: spawnprotection_timer <0 - 255> Default: 10.0 resupply_timer <0 - 255> Default: 60.0 ---- Note: The timers can go higher then 255 (more like float values) it's just a suggested max :) and 0 disables the timer, meaning it will and would be turned off. Note: Cleaned up the code abit according to emps` & Doombringers suggestions. |
Re: Resupplied
clean up code a bit (use switches and don't set a task of 0.0)
also for resupply (not sure how SC works, if there are more than 1 resethud events) you should either A: check if the task exists already for that player and don't make a new task or B: check if the task exists for that player and remove the old task edit: also doesn't look like you need to include amxmisc |
Re: Resupplied
There we go, re uploaded. Not sure if I corrected the A: check if the task exists already for that player and don't make a new task. But I did fix the rest of the code according to your suggestions emp`, switch instead of if statements and thanks for pointing out that i didn't need amxmisc :D also the task of 0.0 should be changed to 1.0. Thanks.
|
Re: Resupplied
Code:
Code:
|
Re: Resupplied
Thanks for pointing those out. Greatly appreciated ! :D
|
Re: Resupplied
Code:
Code:
|
Re: Resupplied
Thanks for that correction :D !
|
Re: Resupplied
|
Re: Resupplied
Thanks for pointing that out ven.
|
Re: Resupplied
you should just do
Code:
new health=get_user_health(id) |
| All times are GMT -4. The time now is 20:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.