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

Warmup


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Elinaz
Junior Member
Join Date: Sep 2018
Old 09-06-2018 , 19:46   Warmup
Reply With Quote #1

Hello. This is my first topic in alliedmodders, but I have been using it (downloading stuff from it) for like 6 years .. By the way.

I need a warmup for the first round with 60 seconds and with guns (players can buy guns), moreover. with a $16000 money.

I've been using this one.

simple_warmup.sma
simple_warmup.txt

PS: I've searched alot so please don't complain about this.

Last edited by Elinaz; 09-06-2018 at 19:49.
Elinaz is offline
Elinaz
Junior Member
Join Date: Sep 2018
Old 09-07-2018 , 04:41   Re: Warmup
Reply With Quote #2

So no one is gonna help?
Elinaz is offline
SHIELD755
Veteran Member
Join Date: Feb 2018
Location: FROM MARVEL STUDIO
Old 09-07-2018 , 06:10   Re: Warmup
Reply With Quote #3

PHP Code:
  /* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Simple Knife Warump"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"

#define TASKID 1234

new hudtimercvarhudhandlermp_freezetimevalue

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
        
    
register_message(get_user_msgid("TextMsg") ,"message_TextMsg")    
    
    
register_dictionary("simple_warmup.txt")
    
    
cvar register_cvar("warmup_timer""60")
    
    
hudhandler CreateHudSyncObj()
}

public 
plugin_cfg() 
{
    
mp_freezetime get_cvar_pointer("mp_freezetime")
    
    
set_task(10.0"read_vars")
}

public 
read_vars()
{    
    
value get_pcvar_num(mp_freezetime)
}

public 
message_TextMsg(const MsgId, const MsgDest, const MsgEntity)
{    
    static 
message[64]
    
get_msg_arg_string(2messagecharsmax(message))
    
    if(
equal(message"#Game_Commencing"))
    {
        
hudtimer get_pcvar_num(cvar)
        
        if(
hudtimer == -1)
            return
        
        
formatex(messagecharsmax(message), "%L"LANG_PLAYER"WARUMP_START")    
        
set_msg_arg_string(2message)
        
        
set_task(1.0"restart"TASKID__"b")        
        
set_pcvar_num(mp_freezetime0)        
    }
    if(
equal(message"#Game_will_restart_in"))
    {
        
formatex(messagecharsmax(message), "%L"LANG_PLAYER"WARUMP_END")    
        
set_msg_arg_string(2message)
    }
}

public 
restart()
{            
    if(
hudtimer <= 0)
    {
        
remove_task(TASKID)
        
set_cvar_num("sv_restartround"1)
        
set_pcvar_num(mp_freezetimevalue)        
    } 
    else 
    {
        
set_hudmessage(255,255,255,-1.0,0.9,0,6.0,1.0,0.1,0.2)    
        
ShowSyncHudMsg(0hudhandler"%L"LANG_PLAYER"COUNTING"hudtimer)
    }    
    
hudtimer--



i just remove current wepone event maybe it can help try it
__________________
SED LYF !!!
SHIELD755 is offline
Elinaz
Junior Member
Join Date: Sep 2018
Old 09-07-2018 , 07:30   Re: Warmup
Reply With Quote #4

Thank you
Elinaz is offline
Old 09-07-2018, 07:38
Elinaz
This message has been deleted by Elinaz. Reason: error solved
Elinaz
Junior Member
Join Date: Sep 2018
Old 09-07-2018 , 07:44   Re: Warmup
Reply With Quote #5

The plugin wont work as if there is no warmup plugin ..
Any solution ?
Elinaz is offline
SHIELD755
Veteran Member
Join Date: Feb 2018
Location: FROM MARVEL STUDIO
Old 09-07-2018 , 09:38   Re: Warmup
Reply With Quote #6

What happen
__________________
SED LYF !!!
SHIELD755 is offline
Elinaz
Junior Member
Join Date: Sep 2018
Old 09-07-2018 , 10:38   Re: Warmup
Reply With Quote #7

Quote:
Originally Posted by SHIELD755 View Post
What happen
Warmup didn't work at all..
Elinaz 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 05:25.


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