Raised This Month: $ Target: $400
 0% 

How to change default ammo of mp5_navy?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
danonix
Senior Member
Join Date: Dec 2012
Old 01-25-2013 , 06:48   How to change default ammo of mp5_navy?
Reply With Quote #1

Hello guys,

Normally for mp5 you are gaining 30/120 ammo, buy I want to make it 50/120 all the time for player with flag ADMIN_LEVEL_H

Code:
public SpawnedEventPreVip(id){
	if(gRound>=0){
		set_user_gravity(id, 500.0/800.0);
		give_item(id, "weapon_hegrenade");
		give_item(id, "weapon_smokegrenade");
		if(get_user_team(id)==1){
			give_item(id, "weapon_glock18");
			give_item(id, "ammo_9mm");
			weapon_id=find_ent_by_owner(-1, "weapon_glock18", id);
			if(weapon_id)cs_set_weapon_ammo(weapon_id, 20);
			cs_set_user_bpammo(id, CSW_GLOCK18, 120);
		}
		give_item(id, "weapon_mp5navy");
		give_item(id, "ammo_9mm");
		weapon_id=find_ent_by_owner(-1, "weapon_mp5navy", id);
		if(weapon_id)cs_set_weapon_ammo(weapon_id, 50);
		cs_set_user_bpammo(id, CSW_MP5NAVY, 200);
	}
}
I have got this code, but it gives only at start, not whole game.

Thanks

Last edited by danonix; 01-25-2013 at 06:48.
danonix is offline
 



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:35.


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