client_authorized triggers twice?
Gah I'm really angry right now, because I've been making a simple* mind you simple plugin that redistributes weapons back to players on join.
Now I've tried setting tasks with "task_exists" and even global variables for stops....no matter what it always EXECUTES TWICE!?!?!?!? W#%(*@#(@$@(%#)$% I've been working with this for over 2 hours and I'm really annoyed at this point. Code:
Can anyone help me? Thanks. |
Re: client_authorized triggers twice?
Why don't you simply execute your give_weapons function on client_putinserver ? I think this may help you.
|
Re: client_authorized triggers twice?
my only guess is that your server has sv_downloadurl enabled so the user connects once and the server checks for files, then forces the user to reconnect. At least, that's what I think happens, I don't use sv_downloadurl so I'm not too sure what happens.
In anycase, buskfaus is probably right, just use client_putinserver |
Re: client_authorized triggers twice?
client put in server doesn't work with TS correctly for some odd reason.
|
Re: client_authorized triggers twice?
In my experience I've never had a problem with client_putinserver() using TS.
|
Re: client_authorized triggers twice?
I have a hunch. Try removing the give_weapons call and see if it still occurrs twice.
|
Re: client_authorized triggers twice?
Nope, I put a server_print() at the begining, and if its removed, it does nothing, if I put it in client_putinserver(id) it does it twice :S.
client_authorized(id) does the same, and does it twice. Code:
|
Re: client_authorized triggers twice?
you want it where when a client spawns, they get a gun? because you cant give a user a gun when they "authorize", because they are not alive and or in game to recieve a gun. if i am correct, client authorized indicates that the steam id is validated…
|
Re: client_authorized triggers twice?
Code:
Something feels wrong there. I'm thinking that first 'task_exists' is wrong. If the task does exist, do you want to do: Code:
or do you want: Code:
Also, should: Code:
have its && changed to a ||? I recommend writing out your thoughts on a piece of paper to clear out what makes sense and what does not. :| Draw a flowchart or something. Edit: And for the sake of the processor, change all those id+6500's to a single variable equalling id + 6500... for whatever reason you are doing that. |
| All times are GMT -4. The time now is 00:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.