forcename bug
*code removed*
|
Re: forcename bug
Store player-related info like name, password, authid and on player connect and never change it.
PHP Code:
|
Re: forcename bug
Name can be changed, so you'll have to place it in client_infochanged().
Btw, what's "client_medvedputinserver" ? O.o Also, sending a hud message every damn client frame can be costly, server and client... you should add a static array variable of 33 cells and then you can either make it a float array and assign it to get_gametime() and check it by time or use increment values (inaccurate but faster). |
Re: forcename bug
Quote:
Quote:
|
Re: forcename bug
Oh actually, you're only trying to rename people... so you shouldn't use prethink in the first place, use client_infochanged() and there you get user's "name" setinfo with get_user_info() and then compare it with get_user_name() OR your last stored variable (preferable).
After that you just check your stuff... Still, holding information in names is tricky and exploitable, unrecommended. |
Re: forcename bug
Hunter-Digital
He also wants to show some hud when some button is pressed. But you are right about renaming. EXEQEDat Don't rename players on prethink. Rename them on connect or on spawn. |
Re: forcename bug
Quote:
on connect: Code:
* yERERERE:]] changed name to <14707>Code:
] name yeRERERE:]] |
Re: forcename bug
I wrote a plugin once as a request to put points in the name. I'm thinking it might have been for flamin' but I can't remember atm.
|
Re: forcename bug
remember please :p
|
Re: forcename bug
Quote:
http://forums.alliedmods.net/showthread.php?t=128498 |
| All times are GMT -4. The time now is 04:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.