Raised This Month: $ Target: $400
 0% 

ham help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 07-14-2008 , 20:12   ham help
Reply With Quote #1

Ok
ham_give_weapon(id, "weapon_ak47");

if(user_has_weapon(id, CSW_M4A1))
{
ham_strip_weapon(id, "weapon_m4a1");
}

so can you do something like this

PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <hamsandwich>

public plugin_init() {
 
register_plugin("Roast Beef Stripper""1.0""NcB Plugin team")
 
 
register_cvar("rbs_strip""1")
 
}
public 
rbs_strips(id)
{
 if(!
user_has_weapon(idCSW_KNIFE))
{
    
ham_strip_weapon(id"weapon_m4a1"); // Strip all weapons but knife.

The strip weapon event i wasnt sure how you would write that part so i left the original part in there.
Doc-Holiday is offline
Old 07-14-2008, 20:32
atomen
This message has been deleted by atomen.
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 07-14-2008 , 22:47   Re: ham help
Reply With Quote #2

You must call rbs_strips(id) function.

While do you want to strip weapons?
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 07-14-2008 , 22:51   Re: ham help
Reply With Quote #3

im just trying to figure out how to use it... i was thinking about makeing a plugin sorta like wc3 but


Using different people

Speed
Muscle
Tacticle
Geek

going by xp you chose your class and then each one on each lvl up to ten lvls you get special powers.

so on select class i wanted it to strip weapons and give the weapon for the class.
Doc-Holiday 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 05:38.


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