Changing szRejectReason in FM_ClientConnect
I'm trying to change szRejectReason ClientConnect, but in fact it does not change. How I can change it?
PHP Code:
|
Re: Changing szRejectReason in FM_ClientConnect
You have to call the function (engfunc) and supercede it (what you do already).
|
Re: Changing szRejectReason in FM_ClientConnect
Arkshine ClientConnect is gamedll function, if it returns false (but fakemeta change "true" to "false") engine will reject client with szRejectReason (it isn't const string):
fakemeta code: PHP Code:
PHP Code:
|
Re: Changing szRejectReason in FM_ClientConnect
2 Attachment(s)
Code:
PHP Code:
https://forums.alliedmods.net/attach...3&d=1404234688 Code: PHP Code:
https://forums.alliedmods.net/attach...4&d=1404234688 |
Re: Changing szRejectReason in FM_ClientConnect
Not sure what you mean. But to do what you want, I would supercede original call and call the function (engfunc) with new string.
|
Re: Changing szRejectReason in FM_ClientConnect
Quote:
|
Re: Changing szRejectReason in FM_ClientConnect
Amxmodx push in arguments copy of the string, not original string. When I change the copy, the original remains the same.
Metamod push in arguments original string. But how I can change original string in amxmodx plugin ? |
Re: Changing szRejectReason in FM_ClientConnect
Ah, yeah, you're right, confusing with something else. I understand better.
Well, I don't see any way, I guess we need a native to set param on the fly, like Ham. That's would be nice. |
Re: Changing szRejectReason in FM_ClientConnect
Quote:
|
| All times are GMT -4. The time now is 21:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.