name blocking, changing
Hi,
I have this function , using which you can change player name to the one you want , also blocking name changing for players. It works also for dead people , what is pretty handy for me, but causes server lags , chokes , sometimes (not always ) even svc_bad's. Is there a better solution for the aim I want, or can my function be optimised in any ways? Thank You. Working, but still laggy solution: PHP Code:
|
Re: name blocking, changing
If you are going to be putting stats in someones name then you should do it using engclient_cmd(id, "name", newname) and you can also, when they change their name just re-add the stats to it. (not really helping on your issue but that's my thoughts).
You can also change: Code:
if ( SKL < 100 )Code:
formatex(neimas, charsmax(neimas), "[%03i].%s", SKL, player_name[id]) |
Re: name blocking, changing
Whats the difference between engclient_cmd ant client_cmd ?
Quote:
Code:
formatex(neimas, charsmax(neimas), "[%02i].%s", SKL, player_name[id])%02i - what exactly does this do ? |
Re: name blocking, changing
Quote:
2 = minimum length ("3" -> " 3". notice the space) 0 = replace spacers with zeros ("3" -> "03") It actually should be "%03i" for 3 digits. |
Re: name blocking, changing
#manager @aitvaras ??? :3:3
|
Re: name blocking, changing
@Exolent[jNr]
Thank You, will use :) @reinert Taip ;) To thread Still lagg problem exists. |
| All times are GMT -4. The time now is 11:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.