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

Solved RQ: warmup plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
numbster
Member
Join Date: Dec 2016
Old 02-26-2018 , 16:43   RQ: warmup plugin
Reply With Quote #1

Hi, I searching for WarmUP plugin: respawn with m249 and $16k.

I like this one but can't change it. - https://forums.alliedmods.net/showthread.php?p=950354

Last edited by numbster; 03-12-2018 at 19:43. Reason: never will be solve, better to be delete
numbster is offline
soumyadip77
Senior Member
Join Date: Jul 2017
Location: INDIA,KOLKATA
Old 02-26-2018 , 20:49   Re: RQ: warmup plugin
Reply With Quote #2

Try This One

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

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta_util>

#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_event("CurWeapon","switchweapon","be","1=1","2!29"
    
    
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), "Now M4A1 warump will 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), "Warump was 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"[ M4A1 now... Still in %i seconds ]"hudtimer)
    }    
    
hudtimer--
}

public 
switchweapon(id)
{
    if(
task_exists(TASKID)) 
    {
        
fm_strip_user_weapons(id
        
fm_give_item(id"weapon_m4a1")
        
cs_set_user_money(ID"16000")
        
cs_set_user_bpammo(id,CSW_M4A1,240)
    }

soumyadip77 is offline
Send a message via Skype™ to soumyadip77
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 02-26-2018 , 23:56   Re: RQ: warmup plugin
Reply With Quote #3

he is talking about m249 not m4a1

PHP Code:

    register_event
("CurWeapon","switchweapon","be","1=1","2!29"
to

PHP Code:
    register_event("CurWeapon","switchweapon","be","1=1","2!20"
also change in give_item to m249
indraraj striker is offline
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 02-26-2018 , 23:59   Re: RQ: warmup plugin
Reply With Quote #4

Quote:
Originally Posted by numbster View Post
Hi, I searching for WarmUP plugin: respawn with m249 and $16k.

I like this one but can't change it. - https://forums.alliedmods.net/showthread.php?p=950354
why do want to give them 16k ? you are forcing them to use m249 only there is no use of 16K as they can't switch gun during warmup
indraraj striker is offline
soumyadip77
Senior Member
Join Date: Jul 2017
Location: INDIA,KOLKATA
Old 02-27-2018 , 01:42   Re: RQ: warmup plugin
Reply With Quote #5

Quote:
Originally Posted by indraraj striker View Post
he is talking about m249 not m4a1

PHP Code:

    register_event
("CurWeapon","switchweapon","be","1=1","2!29"
to

PHP Code:
    register_event("CurWeapon","switchweapon","be","1=1","2!20"
also change in give_item to m249
samjha nahi kiu event ka no chng kiya ??
soumyadip77 is offline
Send a message via Skype™ to soumyadip77
numbster
Member
Join Date: Dec 2016
Old 02-27-2018 , 06:13   Re: RQ: warmup plugin
Reply With Quote #6

Quote:
Originally Posted by indraraj striker View Post
why do want to give them 16k ? you are forcing them to use m249 only there is no use of 16K as they can't switch gun during warmup
I wont forcing them to use only m249. M249 is just for fun, but if someone else wanna use another weapeon is not a problem.


errors with the compile
Code:
//c:/...../.sma(90) : error 017: undefined symbol "ID"
//c:/...../.sma(90) : warning 215: expression has no effect
//c:/...../.sma(90) : error 001: expected token: ";", but found ")"
//c:/...../.sma(90) : error 029: invalid expression, assumed zero
//c:/...../.sma(90) : fatal error 107: too many error messages on one line

Last edited by numbster; 02-27-2018 at 06:25.
numbster is offline
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 02-27-2018 , 08:56   Re: RQ: warmup plugin
Reply With Quote #7

Try :

PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta_util>

#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_event("CurWeapon","switchweapon","be" 
    
    
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), "Now M4A1 warump will 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), "Warump was 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"[ M4A1 now... Still in %i seconds ]"hudtimer)
    }    
    
hudtimer--
}

public 
switchweapon(id)
{
    if(
task_exists(TASKID)) 
    {
        
fm_strip_user_weapons(id
        
fm_give_item(id"weapon_m249")
        
cs_set_user_money(id16000)
        
cs_set_user_bpammo(id,CSW_M249,240)
    }

instinctpt1 is offline
numbster
Member
Join Date: Dec 2016
Old 02-27-2018 , 11:19   Re: RQ: warmup plugin
Reply With Quote #8

server
Code:
L 02/27/2018 - 18:13:54: [AMXX] Run time error 3 (plugin "simple_warmup.amxx") - debug not enabled!
L 02/27/2018 - 18:13:54: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 02/27/2018 - 18:13:54: [AMXX] Run time error 3 (plugin "simple_warmup.amxx") - debug not enabled!
L 02/27/2018 - 18:13:54: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 02/27/2018 - 18:13:54: [AMXX] Run time error 3 (plugin "simple_warmup.amxx") - debug not enabled!
L 02/27/2018 - 18:13:54: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
Code:
fatal error - dedicated server

ED_Alloc: no free edits
numbster is offline
soumyadip77
Senior Member
Join Date: Jul 2017
Location: INDIA,KOLKATA
Old 02-27-2018 , 11:40   Re: RQ: warmup plugin
Reply With Quote #9

Quote:
Originally Posted by soumyadip77 View Post
Try This One

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

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta_util>

#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_event("CurWeapon","switchweapon","be","1=1","2!29"
    
    
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), "Now M4A1 warump will 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), "Warump was 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"[ M4A1 now... Still in %i seconds ]"hudtimer)
    }    
    
hudtimer--
}

public 
switchweapon(id)
{
    if(
task_exists(TASKID)) 
    {
        
fm_strip_user_weapons(id
        
fm_give_item(id"weapon_m4a1")
        
cs_set_user_money(ID"16000")
        
cs_set_user_bpammo(id,CSW_M4A1,240)
    }

try this one it will work just change gun
soumyadip77 is offline
Send a message via Skype™ to soumyadip77
numbster
Member
Join Date: Dec 2016
Old 02-27-2018 , 16:01   Re: RQ: warmup plugin
Reply With Quote #10

same errors at compiler
numbster 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 22:27.


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