Raised This Month: $ Target: $400
 0% 

Can someone help me with this


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
asdfdsdf
AlliedModders Donor
Join Date: Aug 2010
Location: Belgium
Old 07-10-2013 , 15:11   Can someone help me with this
Reply With Quote #1

Hello i have a gunbug in my jailbreak server some of the terrorosits spawns with a glock can someone fix this i found this plugin but i dont know if this is good i only dont want them to spawn with any guns grtz
PHP Code:
#include <amxmodx>
#include <amxmisc>


#include <hamsandwich>
#include <fakemeta_util>


public plugin_init() {
    
register_plugin("JB weapon strip""-""VMANcentral.com");
    
    
    
RegisterHam(Ham_Spawn"player""fwHamPlayerSpawnPost"1);
}


public 
fwHamPlayerSpawnPost(id
{
    if(
cs_get_user_team(id) == CS_TEAM_T )) 
    {
        
fm_strip_user_weapons(id);
        
set_pdata_int(id1160);
        
fm_give_item(id"weapon_knife");
    }

asdfdsdf is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 07-10-2013 , 16:47   Re: Can someone help me with this
Reply With Quote #2

don't use fakemeta_util, it isn't efficient.
baneado is offline
kimilover
Junior Member
Join Date: Oct 2010
Old 07-11-2013 , 08:03   Re: Can someone help me with this
Reply With Quote #3

man you use the fuctions cs_get_user_team and others without include the true inc files..
here you need the <cstrike> && <fun>...
i try to fix your code i hope to work..
PHP Code:
#include <amxmodx> 
#include <amxmisc> 
#include <hamsandwich> 
#include <cstrike>
#include <fun>


public plugin_init() { 
    
register_plugin("JB weapon strip""-""VMANcentral.com"); 
     
     
    
RegisterHam(Ham_Spawn"player""fwHamPlayerSpawnPost"1); 



public 
fwHamPlayerSpawnPost(id)  

    if(
cs_get_user_team(id) == CS_TEAM_T )  
    { 
        
strip_user_weapons(id)
    
give_item(id"weapon_knife")
    } 


Last edited by kimilover; 07-11-2013 at 08:06.
kimilover is offline
Reply


Thread Tools
Display Modes

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 06:28.


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