Raised This Month: $ Target: $400
 0% 

Ammo regen in every 2 mins + The screen so you can when it goes down please help.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-10-2009 , 08:01   Re: Ammo regen in every 2 mins + The screen so you can when it goes down please help.
Reply With Quote #5

Quote:
Originally Posted by X0Left4dead0X View Post
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(PLUGINVERSIONAUTHOR)
    
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(idprint_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.
}

Last edited by SnoW; 01-10-2009 at 08:05.
SnoW is offline
Send a message via MSN to SnoW
 



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 09:15.


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