Raised This Month: $ Target: $400
 0% 

knife only


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 06-30-2007 , 12:22   Re: knife only
Reply With Quote #1

this might work.
it removes all weapon and give you a knife if you pick upp something.
but it wuld be easyer if you used the event left mouse click but
i dont remaber how to do it.

Quote:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("WeapPickup","Pickup","be")
}
public Pickup(id)
{
new clip , ammo , weapon = get_user_weapon ( id , clip , ammo )

if ( weapon != CSW_KNIFE )
{
set_task(1.0, "strip", id)
}
if ( weapon == CSW_KNIFE )
{
return PLUGIN_HANDLED
}
}
public strip(id)
{
client_print(id,print_chat,"No Guns!")
strip_user_weapons(id)
give_item(id,"weapon_knife")
}
__________________
If one of my plugins become broken, contact me by mail. [email protected]

Last edited by fxfighter; 06-30-2007 at 16:46.
fxfighter is offline
Send a message via MSN to fxfighter
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 21:27.


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