Raised This Month: $ Target: $400
 0% 

Gun Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
point.blank
Member
Join Date: Oct 2007
Old 11-10-2007 , 03:04   Gun Help
Reply With Quote #1

I need a code that says to give the user a p228 with 1 bullet, all i have so far is

Code:
{
 give_item(id, "weapon_p228");
}
i know it's not much.. but bear with me
__________________
point.blank is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 11-10-2007 , 11:36   Re: Gun Help
Reply With Quote #2

And WHEN will this user be given a p228?
[ --<-@ ] Black Rose is offline
point.blank
Member
Join Date: Oct 2007
Old 11-10-2007 , 12:44   Re: Gun Help
Reply With Quote #3

Quote:
Originally Posted by [ --<-@ ] Black Rose View Post
And WHEN will this user be given a p228?
when a person says /gun but once every 5 minutes

edit:
i have
Code:
{
 new weapon_id = find_ent_by_owner(1, "weapon_p228", id); 
 if(weapon_id) 
  { 
   cs_set_weapon_ammo(weapon_id, 1); 
  } 
 give_item(id, "weapon_p228");
}
it gives a gun but with 1/52, leaving the rest of thje clip
__________________

Last edited by point.blank; 11-10-2007 at 13:36.
point.blank is offline
Old 12-10-2008, 22:30
ColdPro
This message has been deleted by Exolent[jNr]. Reason: Last Post: 11-10-07. I'm sure he figured it out.
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-10-2007 , 11:52   Re: Gun Help
Reply With Quote #5

You must use "cs_set_weapon_ammo(...)" , http://www.amxmodx.org/funcwiki.php?...ammo&go=search
__________________
Still...lovin' . Connor noob! Hello
Alka 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 01:19.


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