Raised This Month: $ Target: $400
 0% 

No Weapon Pickup ... Not Working ..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
uNy
Member
Join Date: Dec 2009
Old 05-17-2010 , 20:10   Re: No Weapon Pickup ... Not Working ..
Reply With Quote #1

Ok, i suck that bad ... can someone put that together please ?
__________________
AlliedModders is The BEST !
That's what she said.
steam://connect/80.96.216.53:27015
uNy is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-17-2010 , 20:17   Re: No Weapon Pickup ... Not Working ..
Reply With Quote #2

This will work but can be done more efficiently.
PHP Code:
public FwdHamPlayerWeaponTouch( const iEntity, const id )
    return ( ( 
<= id <= g_iMaxPlayers ) && ( cs_get_user_teamid ) == CS_TEAM_T ) ) ? HAM_SUPERCEDE HAM_IGNORED
__________________
Bugsy is offline
uNy
Member
Join Date: Dec 2009
Old 05-17-2010 , 20:21   Re: No Weapon Pickup ... Not Working ..
Reply With Quote #3

So, this is the final thing that i got .. and i can't compile it .. errors everywhere ...


PHP Code:
#include < amxmodx >
#include < hamsandwich >

new g_iMaxPlayers;

public 
plugin_init( ) {
    
register_plugin"No Weapon Pickup""1.0""xPaw" );
 

 
g_iMaxPlayers get_maxplayers( );
    
    
RegisterHamHam_Touch"weaponbox""FwdHamPlayerWeaponTouch" );
    
RegisterHamHam_Touch"armoury_entity""FwdHamPlayerWeaponTouch" );
}


public 
FwdHamPlayerWeaponTouch( const iEntity, const id )
    return ( ( 
<= id <= g_iMaxPlayers ) && ( cs_get_user_teamid ) == CS_TEAM_T ) ? HAM_SUPERCEDE HAM_IGNORED


Errors:

/groups/amxmodx/tmp3/textKEDH34.sma(10) : warning 217: loose indentation
/groups/amxmodx/tmp3/textKEDH34.sma(12) : warning 217: loose indentation
/groups/amxmodx/tmp3/textKEDH34.sma(1 : error 017: undefined symbol "cs_get_user_team"
__________________
AlliedModders is The BEST !
That's what she said.
steam://connect/80.96.216.53:27015

Last edited by uNy; 05-17-2010 at 20:23.
uNy is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-17-2010 , 20:34   Re: No Weapon Pickup ... Not Working ..
Reply With Quote #4

PHP Code:
#include < amxmodx >
#include < hamsandwich >
#include < cstrike >

new g_iMaxPlayers;

public 
plugin_init( ) 
{
    
register_plugin"No Weapon Pickup""1.0""xPaw" );
    
    
g_iMaxPlayers get_maxplayers( );
    
    
RegisterHamHam_Touch"weaponbox""FwdHamPlayerWeaponTouch" );
    
RegisterHamHam_Touch"armoury_entity""FwdHamPlayerWeaponTouch" );
}

public 
FwdHamPlayerWeaponTouch( const iEntity, const id )
    return ( ( 
<= id <= g_iMaxPlayers ) && ( cs_get_user_teamid ) == CS_TEAM_T ) ) ? HAM_SUPERCEDE HAM_IGNORED
__________________
Bugsy 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 03:39.


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