two basic questions
1st Q. What is the most efficient way of seting the first set_task?
Example 1. PHP Code:
Example 2. PHP Code:
using an bool variable per client or introducing an new client cvar? |
Re: two basic questions
Depends on what you're trying to do / the situation
|
Re: two basic questions
Those two codes do not do the same thing and therefore cannot be compared. You cannot create client variables (other than setinfo if you are still able to access it but it is limited and should be avoided).
|
Re: two basic questions
why should setinfo be avoided?
and I can not create an client cvar or client variable? PHP Code:
PHP Code:
the first: setting an global timed task from the server then cycling through the users to get an ID? the 2nd: setting an user timed task directly on id? (does the set_task in this example use the clients CPU for calculating when to fire off the task aswell? |
Re: two basic questions
Quote:
Quote:
|
Re: two basic questions
thanks lordofnothing
ok so there is no such an thing as registering an client cvar? and for client put in server I can easily add this to that right? PHP Code:
|
Re: two basic questions
Quote:
Quote:
Quote:
|
Re: two basic questions
ok for the cvar
PHP Code:
had an feeling register_cvar("spec_auto","0") would be an server only cvar, but ofcourse testing this locally it works. how can I handle it so it will actually work on an hosted server? ive tried with an bool variable instead of the cvar but didn't work. maybe I forgot something that makes it worth to try it again but its time consuming. considering the other couple of things I got left to do : ) |
Re: two basic questions
ps. sometimes it is difficult for me to give out examples due to two reasons.
a) theres wanker in our community stealing my ideas and code then releasing as if it was his own, without leaving any credits. b) cheaters that create specific hax I dont want to help out neither with any possibility so as easy thumb rule I keep on changing some things after I posted code. |
Re: two basic questions
Quote:
Quote:
Quote:
b) Cheaters can't make hacks based on your plugins unless you have coded it to be able to be hacked. Quote:
|
| All times are GMT -4. The time now is 06:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.