Raised This Month: $ Target: $400
 0% 

Module: Rage


Post New Thread Reply   
 
Thread Tools Display Modes
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-11-2012 , 11:09   Re: Module: Rage
Reply With Quote #51

Quote:
Originally Posted by Doc-Holiday View Post
Tested your module.

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




public plugin_init()
{
    
RegisterHam(Ham_Killed"czbot""fwdPlayerKilled"1);
    
RegisterHam(Ham_Spawn"czbot""fwdPlayerSpawn"1);
    
    
RegisterHam(Ham_Killed"player""fwdPlayerKilled"1);
    
RegisterHam(Ham_Spawn"player""fwdPlayerSpawn"1);
}




public 
fwdPlayerKilled(iVictimiKilleriShouldGib)
{
    
client_print(0print_chat"%s died", (is_user_bot(iVictim) ? "Bot" "Human"));
}




public 
fwdPlayerSpawn(iClient)
{
    
client_print(0print_chat"%s Spawn", (is_user_bot(iClient) ? "Bot" "Human"));

Console after test
Code:
Human Spawn
Bot Spawn
Bot Spawn
Bot Spawn
................
*** .:XvG:. SavSin killed Graham with a headshot from ak47 ***
Time Left: 19:50 min. Next Map: de_dust2_cz
Bot died
] kill
.:XvG:. SavSin
You mean that it doesn't appear "Human died"?
I guess not because it appears for me and this doesn't have any reason to work.
joaquimandrade is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 03-11-2012 , 13:48   Re: Module: Rage
Reply With Quote #52

No it worked lol Just missed the copy/paste of the human died text. i meant to say that it worked lol.. Just didnt copy far enough down.

Last edited by Doc-Holiday; 03-11-2012 at 13:48.
Doc-Holiday is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-11-2012 , 15:39   Re: Module: Rage
Reply With Quote #53

Quote:
Originally Posted by Doc-Holiday View Post
No it worked lol Just missed the copy/paste of the human died text. i meant to say that it worked lol.. Just didnt copy far enough down.
Ok if you have problems tell me but the thing is pretty simple so should be ok for every situation
joaquimandrade is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 03-11-2012 , 16:24  
Reply With Quote #54

Would doing this be better then just creating a rage hook for spawn?
Doc-Holiday is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-11-2012 , 16:25   Re: Module: Rage
Reply With Quote #55

Quote:
Originally Posted by Doc-Holiday View Post
Would doing this be better then just creating a rage hook for spawn?
Yes. This is using hamsandwich normally with a litle tweak so its nice like that
joaquimandrade is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 03-11-2012 , 17:22  
Reply With Quote #56

So it wouldn't be possible to use claim name player to hook both? Like tweak it that way? Not that important but instead of having 2 hooks might b easier for some
Doc-Holiday is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-11-2012 , 17:59   Re: Module: Rage
Reply With Quote #57

Quote:
Originally Posted by Doc-Holiday View Post
So it wouldn't be possible to use claim name player to hook both? Like tweak it that way? Not that important but instead of having 2 hooks might b easier for some
That would be harder because it would require "hacking" hamsandwich. This way its just need to change a simple thing.
joaquimandrade is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 03-11-2012 , 18:46  
Reply With Quote #58

На ok thanks well it works perfectly
Doc-Holiday is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-11-2012 , 19:15   Re: Module: Rage
Reply With Quote #59

Will make the signature later.
__________________
Arkshine is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-11-2012 , 19:21   Re: Module: Rage
Reply With Quote #60

Quote:
Originally Posted by Arkshine View Post
Will make the signature later.
Thats the reason why they know you by "the signature maker" or "le signature fabricant"

Last edited by joaquimandrade; 03-11-2012 at 19:22.
joaquimandrade 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 17:53.


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