AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Can someone help me with this (https://forums.alliedmods.net/showthread.php?t=220429)

asdfdsdf 07-10-2013 15:11

Can someone help me with this
 
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");
    }



baneado 07-10-2013 16:47

Re: Can someone help me with this
 
don't use fakemeta_util, it isn't efficient.

kimilover 07-11-2013 08:03

Re: Can someone help me with this
 
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")
    } 




All times are GMT -4. The time now is 06:28.

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