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

Ammo Pack for CT every 60 Seconds for Normal Mod?


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 10-21-2017 , 08:21   Ammo Pack for CT every 60 Seconds for Normal Mod?
#1

Hello, i found only those Ammo Packs about ZP .... Anyone have a link for SWARM Mod or could create one ?

It should be good when the Messages are in color when u get one Ammo Pack . And maybe with a cfg file that i can add spawns and save it... and a model file...

Last edited by Godofwar; 10-21-2017 at 10:24.
Godofwar is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-21-2017 , 09:49   Re: Ammo Pack for CT every 60 Seconds for Normal Mod?
#2

I didn't know that normal mod had ammo packs. What normal mod are you talking about?!
__________________

Last edited by OciXCrom; 10-21-2017 at 09:49.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 10-21-2017 , 09:55   Re: Ammo Pack for CT every 60 Seconds for Normal Mod?
#3

Mh normal mod was wrong name maybe... i need it for a Zombie Mod but for a Swarm Mod ^^
Godofwar is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 10-21-2017 , 10:06   Re: Ammo Pack for CT every 60 Seconds for Normal Mod?
#4

mh did zombie swarm mod had also ammo pack D: !!!??
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-21-2017 , 10:13   Re: Ammo Pack for CT every 60 Seconds for Normal Mod?
#5

Well for me (and probably everyone else) normal zombie mod is Zombie Plague. Anyways, post your mod's .inc file.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 10-21-2017 , 10:20   Re: Ammo Pack for CT every 60 Seconds for Normal Mod?
#6

OxiCrom i am not sure for what u need the .inc file about the mod? That Swarm Mod dont have a .inc file. And it runs with GunxpMod so i think u mean the gunxpmod.inc to create those ammo packs?
Godofwar is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 10-21-2017 , 10:20   Re: Ammo Pack for CT every 60 Seconds for Normal Mod?
#7

he mean gun ammo probably so i maked a simple code for it
PHP Code:
#include <amxmodx>  
#include <amxmisc>  
#include <cstrike>  

new cvar_ammocvar_teamcvar_time 

public plugin_init() 
{  
    
register_plugin("ammo gun","3.0","DeXTeR"
     
    
cvar_ammo          register_cvar("ammo","60"// how mutch ammo give 
    
cvar_team          register_cvar("team","3")  // 1 = CT / 2 = T / 3 = CT/T 
    
cvar_time          register_cvar("time","60")  // give ammo every 60 Secound as default 

    
register_logevent("round_start",2,"1=Round_Start"
    
register_logevent("round_end",2,"1=Round_End"


public 
round_end() 

    
remove_task(1337


public 
round_start()  

    
set_task(get_pcvar_float(cvar_time), "round_ammo"1337__"b")  


public 
round_ammo(id

    if(
get_user_team(id) != get_pcvar_num(cvar_team)) 
    { 
       
cs_set_weapon_ammo(idget_pcvar_num(cvar_ammo)); 
    }

__________________

Last edited by D3XT3R; 10-21-2017 at 14:25. Reason: fix code and it work and tested.
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-21-2017 , 10:47   Re: Ammo Pack for CT every 60 Seconds for Normal Mod?
#8

Quote:
Originally Posted by D3XT3R View Post
he mean gun ammo probably so i maked a simple code for it
PHP Code:
#include <amxmodx> 
#include <amxmisc> 
#include <cstrike> 

new cvar_ammocvar_teamcvar_time

public plugin_init()

    
register_plugin("ammo gun","3.0","DeXTeR")
    
    
cvar_ammo          register_cvar("ammo","60"// how mutch ammo give
    
cvar_team          register_cvar("team","3")  // 1 = CT / 2 = T / 3 = CT/T
    
cvar_time          register_cvar("time","60")  // give ammo every 60 Secound as default

    
register_logevent("round_start",2,"1=Round_Start")
    
register_logevent("round_end",2,"1=Round_End")
}

public 
round_end()
{
    
remove_task(1337)
}

public 
round_start() 
{
    if(
get_user_team(id) != get_pcvar_num(cvar_team))
    {
        
set_task(get_pcvar_float(cvar_time), "round_ammo"1337__"b"
    }
}

public 
round_ammo()
{
    
cs_set_weapon_ammo(0get_pcvar_num(cvar_ammo));

You are pro dexter but sadly it wont even compile or work...
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 10-21-2017 , 12:13   Re: Ammo Pack for CT every 60 Seconds for Normal Mod?
#9

code fixet
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-21-2017 , 13:04   Re: Ammo Pack for CT every 60 Seconds for Normal Mod?
#10

Quote:
Originally Posted by D3XT3R View Post
code fixet
Now it Wont work
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Closed Thread



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 20:51.


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