Raised This Month: $ Target: $400
 0% 

Change server response


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Decak
Senior Member
Join Date: Sep 2012
Old 06-12-2015 , 10:08   Change server response
Reply With Quote #1

Hi, how I can hook and change response of server? For example, when player type 'status' in console, server give response:

Code:
# playerNumber playerNick playerID playerSteamID
How to edit in this:

Code:
Nick: <playernick> SteamID: <steamid> ID: <playerid
??

Thanks.
Decak is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 06-12-2015 , 10:26   Re: Change server response
Reply With Quote #2

You should hook Host_Status_f() function with Okapi / Orpheu, supercede the function call and recreate the function using your own code to display the desired text.
There are examples in the forums, just search for Host_Status_f.
klippy is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 06-12-2015 , 10:41   Re: Change server response
Reply With Quote #3

Here you have half of the job done.

https://forums.alliedmods.net/showpo...21&postcount=6
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode