Raised This Month: $ Target: $400
 0% 

Ham not work on svencoop 5.0?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pklfo123
Junior Member
Join Date: Jan 2012
Old 01-24-2016 , 13:36   Ham not work on svencoop 5.0?
Reply With Quote #1

here is my code
HTML Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fakemeta>

public plugin_init()
{
	register_plugin("h", "1.0", "hh")
	register_forward(FM_EmitSound, "fw_EmitSound")
}

public fw_EmitSound(id, channel, sample[], Float:volume, Float:attn, flags, pitch)
{
	client_print(0, print_chat, "%s", sample)
}
something gone wrong?
pklfo123 is offline
pklfo123
Junior Member
Join Date: Jan 2012
Old 01-24-2016 , 13:37   Re: Ham not work on svencoop 5.0?
Reply With Quote #2

and this

HTML Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fakemeta>

public plugin_init()
{
	register_plugin("Zss", "2.0", "ss")
	RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage_Post", 1)
}

public fw_TakeDamage_Post(victim, inflictor, attacker, Float:damage, damage_type)
{
	client_print(0, print_center, "sd")
	client_print(0, print_chat, "sd")
}
not work too....what happen =[

Last edited by pklfo123; 01-24-2016 at 13:38.
pklfo123 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-24-2016 , 15:18   Re: Ham not work on svencoop 5.0?
Reply With Quote #3

As said in the news:
Quote:
Metamod is currently not compatible with Sven Co-op 5.0 servers. We're working on updating it, but for now do not attempt to use it.
But a dev posted a modified version on their forum, are you using that? http://forums.svencoop.com/showthrea...amod-P-for-5-0
It looks like even with this version, this are still some issues. Until issues are understood by svencoop team, you should probably wait.
__________________

Last edited by Arkshine; 01-24-2016 at 15:19.
Arkshine is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 01-25-2016 , 04:33   Re: Ham not work on svencoop 5.0?
Reply With Quote #4

Hamsandwich relies on indices into the virtual table of an object, and these indices are pretty much hardcoded. Sven Co-op team has changed the game A LOT internally since the 4.8 update, breaking a lot of stuff. These indices have probably also changed. If I had a Linux binary, I would give it a try using IDA to update the virtual table for Ham.
EmitSound most likely doesn't work because the enginefuncs_s structure has been updated in 5.0. This should be fixed just by using the new Metamod Arkshine linked in his post.

Also, you should run a Windows server, if possible. People reported that Linux is a bit unstable and crashes. New Metamod for Linux supposedly works even worse.

Last edited by klippy; 01-25-2016 at 04:34.
klippy is offline
pklfo123
Junior Member
Join Date: Jan 2012
Old 01-25-2016 , 06:14   Re: Ham not work on svencoop 5.0?
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
As said in the news:


But a dev posted a modified version on their forum, are you using that? http://forums.svencoop.com/showthrea...amod-P-for-5-0
It looks like even with this version, this are still some issues. Until issues are understood by svencoop team, you should probably wait.
ya. i am useing Metamod-P-for-5-0
amxx base function work fine, but some hook seen need to be update

btw..sorry for my bad english..I'm not a local
pklfo123 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:42.


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