Raised This Month: $ Target: $400
 0% 

need your help please :D


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-25-2007 , 14:24   Re: need your help please :D
Reply With Quote #1

This should be enough :
PHP Code:
#include <amxmod>
#include <fun> //This contains the function to give weapons

new PLUGIN[]="Knife Round"
new AUTHOR[]="Kristof"
new VERSION[]="1.00"

new sv_noweapons

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("CurWeapon","eCurWeapon","be" ,"1=1""2!29")
    
sv_noweapons register_cvar("sv_noweapons""0")
}

public 
eCurWeapon(id) {
    if(!
get_pcvar_num(sv_noweapons))
        return

    if(!
user_has_weapon(idCSW_KNIFE))
        
give_item(id"weapon_knife")

    
client_print(idprint_center"Wapens zijn niet toegelaten.Enkel Knife!")

    
engclient_cmd(id"weapon_knife")

ConnorMcLeod 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:13.


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