Raised This Month: $ Target: $400
 0% 

Fakemeta and Ham


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 11-05-2011 , 13:57   Fakemeta and Ham
Reply With Quote #1

In one plugin i have all fakemeta and only when player respawning and dieing i use Ham hamsandwich
Should i use All fakemeta like :
PHP Code:
register_forwardFM_Spawn"fw_PlayerSpawn")
 
register_forwardFM_ClientKill"fw_PlayerKilled"
?

Or use
PHP Code:
RegisterHam(Ham_Killed"player""killed")
 
RegisterHam(Ham_Spawn"player""spawn"
And if two modules will it be that
efficient?
__________________

Last edited by edgaras85; 11-05-2011 at 13:58.
edgaras85 is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 11-05-2011 , 14:35   Re: Fakemeta and Ham
Reply With Quote #2

Use the one you are more comfortable with.

Note that both of the those forwards are not identical at all.

FM_Spawn - called when any entity spawns
FM_ClientKill - called when player uses the kill command in console

Ham_Killed - called when the specified entity class is killed
Ham_Spawn - called when the specified entity class is spawned
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 11-05-2011 , 14:39   Re: Fakemeta and Ham
Reply With Quote #3

Quote:
Originally Posted by Emp` View Post
Use the one you are more comfortable with.

Note that both of the those forwards are not identical at all.

FM_Spawn - called when any entity spawns
FM_ClientKill - called when player uses the kill command in console

Ham_Killed - called when the specified entity class is killed
Ham_Spawn - called when the specified entity class is spawned
Oh thanks i was using fakemeta for player
Then need to use Ham because fakemeta like you explained called when player use kill command and i can't detect when player killed
Thanks
P.S. I thought they are identical ;)
__________________
edgaras85 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 21:50.


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