AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Plugin for Admin doesn't work. (https://forums.alliedmods.net/showthread.php?t=26764)

Kronos 04-08-2006 20:24

Plugin for Admin doesn't work.
 
Code:
<snip>

What is wrong with this code? It compiles fine, but it does nothing. This is what it is supposed to do: The admin can see expanding blue rings from every player.

p3tsin 04-08-2006 20:41

well first of all, u dont have ESP_loop() actually looped :)
Code:
set_task(2.0,"ESP_loop", 0, "", 0, "b")

and u cant get user's steamid before he is authorized, until that its just STEAM_ID_PENDING or sumtin.. so change client_connect() to client_authorized()
(though i had a problem with client_authorized(), the id was still pending.. so if it doesnt work for u either, maybe set a task to check the access later 8) )

Kronos 04-08-2006 20:58

Code:
set_task(2.0,"ESP_loop", 0, "", 0, "b")
Will I need to also put this at the bottom before 'return PLUGIN_HANDLED'?
Thanks for the help :)

p3tsin 04-08-2006 21:02

oh, just looked it quickly through and didnt see u had it tasked again at the end :)
but having it looped with the "b" flag is much better, and no, then u dont need to have it at the end of the function

Kronos 04-08-2006 21:08

These are things I changed:
The Loop was changed to:
Code:
<snip>

The Client Connect is now:
Code:
<snip>

Is there anything else I should change? I am testing it now.

The code now works. Thank you very much for your help.


All times are GMT -4. The time now is 16:38.

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