Quote:
Originally Posted by X0Left4dead0X
PHP Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <cstrike> #include <time> #define PLUGIN "Ammo regen" #define VERSION "1.3.3.7" #define AUTHOR "Left4Dead" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_dictionary("regen.txt") } public client_authorized(id) { //new task //task = set_task(4.0,"Ammofill") new time2count[31] get_time("0:120:0",time2count,32) //%H:%M:%S //time2count = time(0,120,0) client_print(id, print_chat, "%L", LANG_PLAYER, "AMMO_REGEN", time2count) //show_hudmessage(id, "Ammo regen in %s", Timer) }
Someone test my code please and print screen and report bugs
regen.txt goes in addons/amxmodx/data/lang if your newb at amxmodx.
|
This is scripting help, where you can ask help with your scripting. You don't ask here someone to test your code. What are you even doing, if you want this code for yourself, I doubt that you have a server to test this. You should really read the rules, because bump time is 2 weeks. I don't understand even what are you doing, why do you get that time into this? If you want to do it to make something every 2 mins, use set_task. Also as I said, don't use client_authorized.
EDIT: Btw:
Code:
public plugin_init()
set_task(120.0, "function", 0);
public function()
{
//loop alive players and make you thingys.
}