Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [Code]Custom PPAGE
[Code]Custom PPAGE [message #449210] Tue, 28 June 2011 14:05 Go to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
This function will sent custom a specified message (with specified custom colours) and a specified sound that emulates PPAGE, if the player who is being paged doesn't have scripts 2.9 or later installed, it will fallback to using PPAGE. There's also a convenience function with the same name that takes less arguments and has defaults for the custom sound and message colour.

This is about the same code as the ones used in YaRR & OnOeS and it's based off that so credits go to their author(s).

.cpp:

Toggle Spoiler

.h:
Toggle Spoiler

And then in your start-up code, add the version hook somewhere, e.g.:
void Plugin_Load() {
...
   AddVersionHook(VersionHook); 
...
}


Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases

[Updated on: Sat, 06 August 2011 10:49]

Report message to a moderator

Re: [Code]Custom PPAGE [message #449212 is a reply to message #449210] Tue, 28 June 2011 14:39 Go to previous messageGo to next message
sla.ro(master) is currently offline  sla.ro(master)
Messages: 610
Registered: September 2010
Location: Romania
Karma: 0
Colonel
i use this PPage function on Lua but similar codded, it creates a table where stores info about player's scripts versions and checks if player has scripts when the function is called and does the action. nice to see it and on C++

edit: based on YARR? my script is based on YALB (who is similar to YARR)


Creator of Mutant Co-Op
Developer of LuaTT

[Updated on: Tue, 28 June 2011 14:41]

Report message to a moderator

Re: [Code]Custom PPAGE [message #449216 is a reply to message #449212] Tue, 28 June 2011 15:58 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
Yeah.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: [Code]Custom PPAGE [message #449227 is a reply to message #449210] Wed, 29 June 2011 03:37 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
BRenBot does the same (if enabled in config), sending cmsgs when a players scripts.dll version supports it and a standard page otherwise.

http://steamsignature.com/card/1/76561197975867233.png
Re: [Code]Custom PPAGE [message #449246 is a reply to message #449210] Wed, 29 June 2011 12:31 Go to previous message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
It's a pity SSGM doesn't use it, though. :/ It's really annoying to get paged with the dark blue message and the paging sound when it's just random bot/regulator stuff like getting a vehicle bound to you.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Previous Topic: [SSGM Plugin]Taunts Fix
Next Topic: [SSGM Plugin]Pre-Processing Damage Hook
Goto Forum:
  


Current Time: Thu Apr 18 11:32:57 MST 2024

Total time taken to generate the page: 0.00677 seconds