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

Solved RQ: warmup plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 02-27-2018 , 17:28   Re: RQ: warmup plugin
Reply With Quote #11

Quote:
Originally Posted by numbster View Post
same errors at compiler
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 hudtimer, cvar, hudhandler, mp_freezetime, value public plugin_init()  {     register_plugin(PLUGIN, VERSION, AUTHOR)               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(2, message, charsmax(message))           if(equal(message, "#Game_Commencing"))     {         hudtimer = get_pcvar_num(cvar)                   if(hudtimer == -1)             return                   formatex(message, charsmax(message), "Now M4A1 warump will start!")              set_msg_arg_string(2, message)                   set_task(1.0, "restart", TASKID, _, _, "b")                  set_pcvar_num(mp_freezetime, 0)              }     if(equal(message, "#Game_will_restart_in"))     {         formatex(message, charsmax(message), "Warump was end...")              set_msg_arg_string(2, message)     } } public restart() {                  if(hudtimer <= 0)     {         remove_task(TASKID)         set_cvar_num("sv_restartround", 1)         set_pcvar_num(mp_freezetime, value)              }      else      {         set_hudmessage(255,255,255,-1.0,0.9,0,6.0,1.0,0.1,0.2)              ShowSyncHudMsg(0, hudhandler, "[ 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)     } }
__________________
Relaxing is offline
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 02-27-2018 , 23:13   Re: RQ: warmup plugin
Reply With Quote #12

Relaxing bro ...
He wants m249 xD
instinctpt1 is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 02-28-2018 , 02:07   Re: RQ: warmup plugin
Reply With Quote #13

I just took a post and edited the code. Then overwrite m4a1 with m249.
__________________
Relaxing is offline
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 02-28-2018 , 06:57   Re: RQ: warmup plugin
Reply With Quote #14

Quote:
Originally Posted by soumyadip77 View Post
samjha nahi kiu event ka no chng kiya ??
29 = knife
20 = m249

search cs weapon information
indraraj striker is offline
numbster
Member
Join Date: Dec 2016
Old 02-28-2018 , 07:37   Re: RQ: warmup plugin
Reply With Quote #15

compile is fine, but non stop given you a new weapon.

example: https://imgur.com/a/A4VNU
numbster is offline
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 02-28-2018 , 13:26   Re: RQ: warmup plugin
Reply With Quote #16

Quote:
Originally Posted by numbster View Post
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
then what is the use of warmup ? if players can switch/use other gun
indraraj striker is offline
numbster
Member
Join Date: Dec 2016
Old 02-28-2018 , 14:33   Re: RQ: warmup plugin
Reply With Quote #17

Quote:
Originally Posted by indraraj striker View Post
then what is the use of warmup ? if players can switch/use other gun
Instead a pistol they will have a machine, again just for fun. But if they wanna can buy another weapon.
If is hard to make this is not problem they start only with $16k.
numbster is offline
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 02-28-2018 , 23:29   Re: RQ: warmup plugin
Reply With Quote #18

Quote:
Originally Posted by numbster View Post
Instead a pistol they will have a machine, again just for fun. But if they wanna can buy another weapon.
If is hard to make this is not problem they start only with $16k.
what if i buy pistol again to play ? as you are allowing me to buy another gun
indraraj striker is offline
numbster
Member
Join Date: Dec 2016
Old 03-01-2018 , 05:41   Re: RQ: warmup plugin
Reply With Quote #19

Quote:
Originally Posted by indraraj striker View Post
what if i buy pistol again to play ? as you are allowing me to buy another gun
stay away of my topic... troll.
numbster is offline
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 03-02-2018 , 07:18   Re: RQ: warmup plugin
Reply With Quote #20

Okay have a good day!
indraraj striker 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 15:49.


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