Raised This Month: $23 Target: $400
 5% 

How Would I: Make a Timer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
-Badboy-
Junior Member
Join Date: Dec 2005
Old 08-04-2006 , 14:03   How Would I: Make a Timer
Reply With Quote #1

Yes sorry but I am wondering how to make a timer for amxmodx. I am new and just learning so please help me.
__________________

Last edited by -Badboy-; 08-04-2006 at 16:05.
-Badboy- is offline
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 08-04-2006 , 14:15   Re: How Would I: Make a Timer
Reply With Quote #2

what do you mean by a timer explain more
k007 is offline
Send a message via MSN to k007
-Badboy-
Junior Member
Join Date: Dec 2005
Old 08-04-2006 , 14:47   Re: How Would I: Make a Timer
Reply With Quote #3

As in ...say if a player connects it calls the timer for every 60 seconds it will add ...say money.
__________________

Last edited by -Badboy-; 08-04-2006 at 16:05.
-Badboy- is offline
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 08-04-2006 , 15:48   Re: How Would I: Make a Timer
Reply With Quote #4

"cough" what kind of timer like a round timer a map limit timer"cough"
k007 is offline
Send a message via MSN to k007
-Badboy-
Junior Member
Join Date: Dec 2005
Old 08-04-2006 , 15:57   Re: How Would I: Make a Timer
Reply With Quote #5

A round timer
__________________

Last edited by -Badboy-; 08-04-2006 at 16:05.
-Badboy- is offline
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 08-04-2006 , 16:16   Re: How Would I: Make a Timer
Reply With Quote #6

http://forums.alliedmods.net/showthread.php?t=42257
k007 is offline
Send a message via MSN to k007
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 08-05-2006 , 00:38   Re: How Would I: Make a Timer
Reply With Quote #7

This is kind of related - http://forums.alliedmods.net/showthread.php?t=42662
__________________
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 08-05-2006 , 02:20   Re: How Would I: Make a Timer
Reply With Quote #8

Use my roundstart money plugin..it gives them the set amount of money every round...

If u want a version every 60 secs, I can modify this..

PHP Code:
#include <amxmodx>  
#include <amxmisc>  
#include <cstrike>  

#define PLUGIN "round_money"  
#define VERSION "0.4"  
#define AUTHOR "SweatyBanana"  

public plugin_init()   
{  
    
register_plugin(PLUGINVERSIONAUTHOR)  
    
register_cvar("round_money""16000")  
    
register_event("HLTV""new_round""a""1=0""2=0"
}  
public 
new_round()  
{  
    new 
cVar get_cvar_num("round_money");    
    new 
players[32], numiplaya;   
    
get_players(players,num);   
      
    for(
i=0;i<num;i++)
    {
        
playa players[i];
        if(
cs_get_user_money(playa) < cVar)   
            
cs_set_user_money(playacVar);
    } 

SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Reply


Thread Tools
Display Modes

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 17:06.


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