Raised This Month: $ Target: $400
 0% 

anti blocker.. need help.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
.kamex.
New Member
Join Date: Dec 2008
Old 12-16-2008 , 10:34   anti blocker.. need help.
Reply With Quote #1

Hi, i am writing hns anti-blocker plugin.So need help, how to check if some on is on ladder ?... i use
PHP Code:
maxplayers get_maxplayers()
 for(new 
i=1<= maxplayersi++){
if(
pev(ipev_movetype) == MOVETYPE_FLY) {........}

but it won't work correctly
.kamex. is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 12-16-2008 , 10:57   Re: anti blocker.. need help.
Reply With Quote #2

It would make no sense if FM wouldn't work and this would, still this was tested somewhere and I thought it worked...
Code:
if(entity_get_int(id,EV_INT_movetype) == MOVETYPE_FLY)
Still it's just how it didn't work? I mean "correctly"

Last edited by SnoW; 12-16-2008 at 11:06.
SnoW is offline
Send a message via MSN to SnoW
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 12-17-2008 , 06:23   Re: anti blocker.. need help.
Reply With Quote #3

Probably player with id 1 is not connected, so it writes errorlog...
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 12-17-2008 , 09:14   Re: anti blocker.. need help.
Reply With Quote #4

How about like this:
Code:
public client_PreThink(id) 
{
    if(!is_user_alive(id)) 
       return;

    if(entity_get_int(id,EV_INT_movetype) == MOVETYPE_FLY)
     //Thingys
}
SnoW is offline
Send a message via MSN to SnoW
.kamex.
New Member
Join Date: Dec 2008
Old 12-19-2008 , 08:01   Re: anti blocker.. need help.
Reply With Quote #5

I need to check if someon is on ladder. my code works only for first player. i tested it with potti and real players. it just won't work
.kamex. is offline
.kamex.
New Member
Join Date: Dec 2008
Old 12-19-2008 , 08:15   Re: anti blocker.. need help.
Reply With Quote #6

oh Thank you.. now its work
.kamex. 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 09:04.


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