Quote:
Originally Posted by fysiks
server.cfg
What are you trying to change? Explain in detail what you are trying to do.
You can find the arguments required for a forward from the link presented to you or by looking in include/ham_cosnt.inc. It is denoted as "Forward params:"
|
As for using server.cfg, thats a no go since I want to make a mod witch configures it self on plugin load, I know sourcemod has OnPluginLoad() but is there really no alternative for doing it on amxmodx?
As for the sentence with mapchanging, its all about setting the cvars(example, sv_airacceleration), if theres no way to do it on load via an event I'll have to try something that happens every round.
Reading the forward params tells me a lot but I have no idea on how to get the idattacker and the others, I very green on this, its my absolute first real project and a snippet would be lovely, when it comes to what I'm trying to do, when a player is attacked by a gun(any gun), holds shift or holds duck, hes speed decreases, increases or whatever, I might even have the wrong impression of how they're supposed to be working.
Just to make it clear, I allready wrote all the code for the
actions, it gives no errors and should work just as I intended, I'm just trying to make them execute when player is shot, walks or ducks.
I've fixed the
PHP Code:
RegisterHam(Ham_TakeDamage, "action2", "player")
by adding this to the fuction,
PHP Code:
public action2(victim, inflictor, attacker, Float:fDamage, bitDamage)
Now it seems that my only presisting issue is with the
PHP Code:
RegisterHam(Ham_Player_Duck, "action")
RegisterHam(Ham_IsSneaking, "action")
Error:
Code:
// C:\hlds\cstrike\addons\amxmodx\scripting\huanmod.sma(19) : error 088: number
of arguments does not match definition
// C:\hlds\cstrike\addons\amxmodx\scripting\huanmod.sma(20) : error 088: number
of arguments does not match definition