Raised This Month: $ Target: $400
 0% 

Plugin for Admin doesn't work.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kronos
Junior Member
Join Date: Jan 2006
Old 04-08-2006 , 20:24   Plugin for Admin doesn't work.
Reply With Quote #1

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.
Kronos is offline
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 04-08-2006 , 20:41  
Reply With Quote #2

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 )
__________________
plop
p3tsin is offline
Kronos
Junior Member
Join Date: Jan 2006
Old 04-08-2006 , 20:58  
Reply With Quote #3

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
Kronos is offline
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 04-08-2006 , 21:02  
Reply With Quote #4

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
__________________
plop
p3tsin is offline
Kronos
Junior Member
Join Date: Jan 2006
Old 04-08-2006 , 21:08  
Reply With Quote #5

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.
Kronos is offline
Reply


Thread Tools
Display Modes

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 16:38.


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