Raised This Month: $ Target: $400
 0% 

Remove Weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 04-14-2013 , 01:09   Re: Remove Weapon
Reply With Quote #1

You should use Ham_Spawn
PHP Code:
#include <fun>
#include <fakemeta>
#include <hamsandwich>

public plugin_init(){
    
RegisterHam(Ham_Spawn"player""ham_spawn_player_post"1)
}

public 
ham_spawn_player_post(id){
    if (
is_user_alive(id)){
        
strip_user_weapons(id)
        
set_pdata_int(id1160)
        
give_item(id"weapon_knife")
        switch(
get_user_team(id)){
            case 
1give_item(id"weapon_galil")
            case 
2give_item(id"weapon_famas")
        }
    }

__________________
  • ZapTic - Paintball (Version 7.1.3 b1303)
  • Your #1 CS Paintball Server since 2008
  • 85.131.163.101:27015

Last edited by Leon M.; 04-14-2013 at 01:09.
Leon M. 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 10:54.


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