Raised This Month: $ Target: $400
 0% 

How to set user can't on ladder


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wwzw
Member
Join Date: Feb 2009
Old 04-16-2012 , 00:43   Re: How to set user can't on ladder
Reply With Quote #3

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(idprint_chat"=======Touch===Test====%s====",classname);
 }

And:
PHP Code:
register_forwardFM_Touch"fwdTouch" );
public 
fwdTouch(entid) { 
 if (
is_user_alive(id)) {
  new 
classname[32]
  
pev(ent,pev_classname,classname,31)
  
client_print(idprint_chat"=======Touch===Test====%s====",classname);
 } 

But all fails, please continue to help me!
wwzw is offline
 



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 00:21.


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