DoD Plugins

Go Back   DoD Plugins > DoD Plugins > Developers Plugins > Player/Server Management Plugins

Player/Server Management Plugins Plugins that interact with players or give you control over various server-related aspects

» Navigation
 > FAQ
» Forum Actions
» Programming
 > VERC
» Server Links
For Linking to Us
AvaMods
=|[76AD]|=
GameSpy Rangers
{DFH} Clan
AMX Mod X
Reply
 
Thread Tools Display Modes
  #1  
Old 03-23-2009, 04:50 PM
Dr.G's Avatar
Dr.G Dr.G is offline
in love with diamond
Developer
 
Join Date: Nov 2007
Location: Denmark
Posts: 774
Player spawn

this is how you catch when a player spawn with hamsandwich:

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <hamsandwich>

#define PLUGIN "Spawn test"
#define VERSION "1.0"
#define AUTHOR "Dr.G"


public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
/* reg. ham_spawn */
    
RegisterHam(Ham_Spawn,"player","func_HamSpawn")
    
/*        *1      *2        *3
    
    *1 - Register an entity spawn = Ham_Spawn
    *2 - Entity named: player
    *3 - Function to forward to: func_HamSpawn  */
}

public 
func_HamSpawn(id)
{
    if(
get_user_team(id))
        
client_print(id3"***Spawn")


where did your post about this go D-O?????
Reply With Quote
  #2  
Old 03-23-2009, 05:28 PM
diamond-optic's Avatar
diamond-optic diamond-optic is offline
AvaMods.com Admin
Developer
Admin
 
Join Date: May 2005
Location: Upstate New York
Posts: 2,056
ehhh i think i posted it in Wilson's Spawn Forward fix thread.. where no one probably would ever see it :P
__________________




| AvaMods | dodplugins | amxx plugins |

Reply With Quote
  #3  
Old 03-23-2009, 05:32 PM
Dr.G's Avatar
Dr.G Dr.G is offline
in love with diamond
Developer
 
Join Date: Nov 2007
Location: Denmark
Posts: 774
hehehe ok.. well another thing...do you know why all ham functions need that team check? or have an idea about it..
Reply With Quote
  #4  
Old 03-23-2009, 05:59 PM
diamond-optic's Avatar
diamond-optic diamond-optic is offline
AvaMods.com Admin
Developer
Admin
 
Join Date: May 2005
Location: Upstate New York
Posts: 2,056
i havent noticed they all need it, tho i havent checked for it either.... but i did notice a lot of them get triggered at wierd times and sometimes they pass strange variables too
__________________




| AvaMods | dodplugins | amxx plugins |

Reply With Quote
  #5  
Old 03-23-2009, 06:16 PM
Dr.G's Avatar
Dr.G Dr.G is offline
in love with diamond
Developer
 
Join Date: Nov 2007
Location: Denmark
Posts: 774
ok well i played around with Ham_TakeDamage again yesterday and this function needed it aswell to work:

PHP Code:
public func_TakeDamage(ididinflictoridattackerFloat:damagedamagebits)
{
    if( 
is_user_alive(id) && get_user_team(id) && (damagebits DMG_BURN)) 
    {
        
damage = (get_pcvar_float(p_percent) / 100 damage)
        
        
SetHamParamFloat(4,damage)
        
        
client_print(id,3,"fire dmg??")
        return 
HAM_HANDLED
    
}
    return 
HAM_IGNORED


Reply With Quote
Reply

Bookmarks

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
random spawn coal505 Requests for DoD Plugins 2 03-05-2008 11:27 AM
spawn protection meathead Requests for DoD Plugins 2 01-21-2008 07:50 PM
Spawn Protection johnnyskid Requests for DoD Plugins 2 01-13-2008 11:01 AM
Spawn protection blobby Requests for DoD Plugins 14 05-02-2007 08:47 AM
Spawn Protection Mr. White Requests for DoD Plugins 8 12-28-2006 10:04 AM

» Donations
If you like this website, and would like to give something in return, you can make a donation. Your donation will be used to pay for hosting service, domain, & maintenance costs only!

$

Select your donation amount and then press the Donate button.




» Log in
User Name:

Password:

Not a member yet?
Register Now!
Powered by vBadvanced CMPS v3.2.3

All times are GMT -3. The time now is 04:33 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
dodplugins.net