Thank you for your help, but I can not get the event of player contact with the ladder.
I tried the code:
PHP Code:
RegisterHam(Ham_Touch, "player", "Ham_Touch_Ladder_Pre", 0);
RegisterHam(Ham_Touch, "player", "Ham_Touch_Ladder_Pre", 1);
public Ham_Touch_Ladder_Pre(id,ent)
{
if (is_user_alive(id)) {
new classname[32]
pev(ent,pev_classname,classname,31)
client_print(id, print_chat, "=======Touch===Test====%s====",classname);
}
}
And:
PHP Code:
register_forward( FM_Touch, "fwdTouch" );
public fwdTouch(ent, id) {
if (is_user_alive(id)) {
new classname[32]
pev(ent,pev_classname,classname,31)
client_print(id, print_chat, "=======Touch===Test====%s====",classname);
}
}
But all fails, please continue to help me!