AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   anti blocker.. need help. (https://forums.alliedmods.net/showthread.php?t=82053)

.kamex. 12-16-2008 10:34

anti blocker.. need help.
 
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 :|

SnoW 12-16-2008 10:57

Re: anti blocker.. need help.
 
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"

MPNumB 12-17-2008 06:23

Re: anti blocker.. need help.
 
Probably player with id 1 is not connected, so it writes errorlog...

SnoW 12-17-2008 09:14

Re: anti blocker.. need help.
 
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
}


.kamex. 12-19-2008 08:01

Re: anti blocker.. need help.
 
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. 12-19-2008 08:15

Re: anti blocker.. need help.
 
oh Thank you.. now its work :)


All times are GMT -4. The time now is 09:04.

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