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

[Solved][ZP] Change BP ammo and Max Clip for weapons by Zombie plague without plugins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GAARA54
Veteran Member
Join Date: Oct 2009
Location: Everywhere
Old 06-30-2010 , 07:32   [Solved][ZP] Change BP ammo and Max Clip for weapons by Zombie plague without plugins
Reply With Quote #1

How to change BP ammo and Max Clip for weapons without additional plugins (Like http://forums.alliedmods.net/showthr...highlight=ammo and http://forums.alliedmods.net/showthread.php?t=82093) ?

I try to edit this lines in source of zp:

Code:
// Max BP ammo for weapons
new const MAXBPAMMO[] = { -1, 52, -1, 90, 1, 32, 1, 100, 90, 1, 120, 100, 100, 90, 90, 90, 100, 120,
            30, 120, 100, 32, 90, 120, 90, 2, 35, 90, 90, -1, 100 }

// Max Clip for weapons
new const MAXCLIP[] = { -1, 13, -1, 10, -1, 7, -1, 30, 30, -1, 30, 20, 25, 30, 35, 25, 12, 20,
            10, 30, 100, 8, 30, 30, 20, -1, 7, 30, 30, -1, 50 }
But it doesn't work...

Last edited by GAARA54; 12-12-2010 at 05:27.
GAARA54 is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 06-30-2010 , 07:35   Re: [ZP] Change BP ammo and Max Clip for weapons by Zombie plague without plugins
Reply With Quote #2

cs_set_user_bpammo(id, CSW_WEAPON, 200)
Vechta is offline
GAARA54
Veteran Member
Join Date: Oct 2009
Location: Everywhere
Old 06-30-2010 , 07:53   Re: [ZP] Change BP ammo and Max Clip for weapons by Zombie plague without plugins
Reply With Quote #3

Quote:
Originally Posted by Vechta View Post
cs_set_user_bpammo(id, CSW_WEAPON, 200)
I full zero in scripting... What i must do with this code ?
If i copy past it to zp source:
Code:
{
cs_set_user_bpammo(id, CSW_M249, 200)
}
This not work..
Attached Thumbnails
Click image for larger version

Name:	sdfsdfsdf.JPG
Views:	290
Size:	45.6 KB
ID:	68675  
__________________
GAARA54 is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 06-30-2010 , 07:55   Re: [ZP] Change BP ammo and Max Clip for weapons by Zombie plague without plugins
Reply With Quote #4

#include <cstrike>

Code:
if (get_user_weapon(id) == CSW_M249)
{
	cs_set_user_bpammo(id, CSW_M249, 200)
}
Vechta is offline
GAARA54
Veteran Member
Join Date: Oct 2009
Location: Everywhere
Old 06-30-2010 , 08:05   Re: [ZP] Change BP ammo and Max Clip for weapons by Zombie plague without plugins
Reply With Quote #5

I paste it after
Code:
public plugin_init()
{
But follow errors what on screen. You can explain more in detail as to do?
Attached Thumbnails
Click image for larger version

Name:	233243243243243243243243243243214324123213213213.JPG
Views:	225
Size:	87.9 KB
ID:	68676  
__________________
GAARA54 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 08:34.


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