Raised This Month: $51 Target: $400
 12% 

Weapon-Specific Spawn Protection


Post New Thread Reply   
 
Thread Tools Display Modes
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 10-14-2011 , 16:55   Re: Weapon-Specific Spawn Protection
Reply With Quote #11

Thanks, fixed.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
vamppa
Senior Member
Join Date: Apr 2010
Location: The Netherlands
Old 10-18-2011 , 18:05   Re: Weapon-Specific Spawn Protection
Reply With Quote #12

Lo
thanks for the support.
I did not expect to receive any help :-]


The plugin is not working for me though.
bad load, I have tripple checked everything.
correct name, restarted server, created ini file myself.
I think it has to do with hamsandwhich module.

I use the default amxmodx latest build because I play half-life deathmatch
not cs, is there a difference in the hamsandwhich module?
perhaps some function calls or something?

cheers
vamppa is offline
vamppa
Senior Member
Join Date: Apr 2010
Location: The Netherlands
Old 10-18-2011 , 21:40   Re: Weapon-Specific Spawn Protection
Reply With Quote #13

L 10/18/2011 - 23:02:26: [AMXX] Plugin "weapon_spawn_protection.amxx" failed to load: Plugin uses an unknown function (name "RegisterHam") - check your modules.ini.
vamppa is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 10-18-2011 , 21:54   Re: Weapon-Specific Spawn Protection
Reply With Quote #14

go to modules.ini, and remove the semicolon (;) in front of "hamsandwich". If it's not there, then add it to the bottom of the file.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
vamppa
Senior Member
Join Date: Apr 2010
Location: The Netherlands
Old 10-18-2011 , 22:01   Re: Weapon-Specific Spawn Protection
Reply With Quote #15

Meta list, runs fine.

[ 1] AMX Mod X RUN - amxmodx_mm_i386. v1.8.1.3 ini Start ANY
[ 2] Ham Sandwich RUN - hamsandwich_amxx v1.8.1.3 pl1 ANY ANY
[ 3] Fun RUN - fun_amxx_i386.so v1.8.1.3 pl1 ANY ANY
[ 4] FakeMeta RUN - fakemeta_amxx_i3 v1.8.1.3 pl1 ANY
vamppa is offline
vamppa
Senior Member
Join Date: Apr 2010
Location: The Netherlands
Old 10-18-2011 , 22:07   Re: Weapon-Specific Spawn Protection
Reply With Quote #16

ok already tried to remove the ; same result.
hm its odd I had the same problem with 2 other plugins before.
http://forums.alliedmods.net/showthr...ght=spawn+glow

Infact I am starting to think hamsandwhich doesn't work with hldm ?
or what could be the problem?
can the module not inject right? I mean registerham is a correct function not?
where does it go wrong?

Last edited by vamppa; 10-18-2011 at 22:10.
vamppa is offline
vamppa
Senior Member
Join Date: Apr 2010
Location: The Netherlands
Old 10-18-2011 , 22:56   Re: Weapon-Specific Spawn Protection
Reply With Quote #18

ok in the hamdata.ini I have copied the valve section and renamed it to ag.
since the mod I play is "Adrenaline Gamer" which is basically valve hldm only with vote and match systems etc.

The plugin will load now.
though it does not protect against the explosion of weapon_tripmine yet.
tomorrow I will see if the plugin does its job for a normal weapon like the mp5 set in the spawn_protect_weapons.ini file.

most likely the section is just wrong for the mod but yeh
it is a step forward.
how would you create the right section?

hamdata.ini
Code:
@section ag linux
    pev 0
    base 0x60
    
    spawn 2
    precache 3
    keyvalue 4
    objectcaps 7
    activate 8
    setobjectcollisionbox 9
    classify 10
    deathnotice 11
    traceattack 12
    takedamage 13
    takehealth 14
    killed 15
    bloodcolor 16
    tracebleed 17
    istriggered 18
    mymonsterpointer 19
    mysquadmonsterpointer 20
    gettogglestate 21
    addpoints 22
    addpointstoteam 23
    addplayeritem 24
    removeplayeritem 25
    giveammo 26
    getdelay 27
    ismoving 28
    overridereset 29
    damagedecal 30
    settogglestate 31
    startsneaking 32
    stopsneaking 33
    oncontrols 34
    issneaking 35
    isalive 36
    isbspmodel 37
    reflectgauss 38
    hastarget 39
    isinworld 40
    isplayer 41
    isnetclient 42
    teamid 43
    getnexttarget 44
    think 45
    touch 46
    use 47
    blocked 48
    respawn 49
    updateowner 50
    fbecomeprone 51
    center 52
    eyeposition 53
    earposition 54
    bodytarget 55
    illumination 56
    fvisible 57
    fvecvisible 58
    
    player_jump 127
    player_duck 128
    player_prethink 129
    player_postthink 130
    player_getgunposition 121
    player_shouldfadeondeath 62
    player_impulsecommands 132
    player_updateclientdata  131
    
    item_addtoplayer 60
    item_addduplicate 61
    item_getiteminfo 62
    item_candeploy 63
    item_deploy 64
    item_canholster 65
    item_holster 66
    item_updateiteminfo 67
    item_preframe 68
    item_postframe 69
    item_drop 70
    item_kill 71
    item_attachtoplayer 72
    item_primaryammoindex 73
    item_secondaryammoindex 74
    item_updateclientdata 75
    item_getweaponptr 76
    item_itemslot 77
    
    weapon_extractammo 78
    weapon_extractclipammo 79
    weapon_addweapon 80
    weapon_playemptysound 81
    weapon_resetemptysound 82
    weapon_sendweaponanim 83
    weapon_isusable 84
    weapon_primaryattack 85
    weapon_secondaryattack 86
    weapon_reload 87
    weapon_weaponidle 88
    weapon_retireweapon 89
    weapon_shouldweaponidle 90
    weapon_usedecrement 91
@end
@section ag windows
    pev 4
    base 0x0
    
    spawn 0
    precache 1
    keyvalue 2
    objectcaps 5
    activate 6
    setobjectcollisionbox 7
    classify 8
    deathnotice 9
    traceattack 10
    takedamage 11
    takehealth 12
    killed 13
    bloodcolor 14
    tracebleed 15
    istriggered 16
    mymonsterpointer 17
    mysquadmonsterpointer 18
    gettogglestate 19
    addpoints 20
    addpointstoteam 21
    addplayeritem 22
    removeplayeritem 23
    giveammo 24
    getdelay 25
    ismoving 26
    overridereset 27
    damagedecal 28
    settogglestate 29
    startsneaking 30
    stopsneaking 31
    oncontrols 32
    issneaking 33
    isalive 34
    isbspmodel 35
    reflectgauss 36
    hastarget 37
    isinworld 38
    isplayer 39
    isnetclient 40
    teamid 41
    getnexttarget 42
    think 43
    touch 44
    use 45
    blocked 46
    respawn 47
    updateowner 48
    fbecomeprone 49
    center 50
    eyeposition 51
    earposition 52
    bodytarget 53
    illumination 54
    fvisible 55
    fvecvisible 56
    
    player_jump 125
    player_duck 126
    player_prethink 127
    player_postthink 128
    player_getgunposition 119
    player_shouldfadeondeath 60
    player_impulsecommands 130
    player_updateclientdata  129
    
    item_addtoplayer 58
    item_addduplicate 59
    item_getiteminfo 60
    item_candeploy 61
    item_deploy 62
    item_canholster 63
    item_holster 64
    item_updateiteminfo 65
    item_preframe 66
    item_postframe 67
    item_drop 68
    item_kill 69
    item_attachtoplayer 70
    item_primaryammoindex 71
    item_secondaryammoindex 72
    item_updateclientdata 73
    item_getweaponptr 74
    item_itemslot 75
    
    weapon_extractammo 76
    weapon_extractclipammo 77
    weapon_addweapon 78
    weapon_playemptysound 79
    weapon_resetemptysound 80
    weapon_sendweaponanim 81
    weapon_isusable 82
    weapon_primaryattack 83
    weapon_secondaryattack 84
    weapon_reload 85
    weapon_weaponidle 86
    weapon_retireweapon 87
    weapon_shouldweaponidle 88
    weapon_usedecrement 89
    
@end

Last edited by vamppa; 10-18-2011 at 23:01.
vamppa is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 10-18-2011 , 22:58   Re: Weapon-Specific Spawn Protection
Reply With Quote #19

Are you sure that it is running? Print the output of "amxx modules" in server console.

Also make sure that you are on the latest version of AMXX.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please

Last edited by nikhilgupta345; 10-18-2011 at 22:59.
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
vamppa
Senior Member
Join Date: Apr 2010
Location: The Netherlands
Old 10-19-2011 , 08:02   Re: Weapon-Specific Spawn Protection
Reply With Quote #20

nvm

Last edited by vamppa; 10-19-2011 at 22:07.
vamppa 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:41.


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