BombTrak wrote:Well, here's all the info I can find.
Gungame Version: 5.0.577
gg_winner_display Version: 1.0.3
I use the default php setting running off of the gungame5 server.
These screenshots show what I am talking about:
It looks like the web page is treating the <OC> tag as an html tag and that is why I threw in the replace statements.
Here is a copy of the gg_winner_display.py file that I was using when I took the screenshots:''' (c) 2008 by the GunGame Coding Team
Title: gg_winner_display
Version: 1.0.3
Description: Custom addon.
'''
# ==============================================================================
# IMPORTS
# ==============================================================================
# Python imports
# EventScripts imports
import es
import gamethread
import usermsg
# GunGame imports
import gungamelib
# ==============================================================================
# ADDON REGISTRATION
# ==============================================================================
# Register this addon with EventScripts
info = es.AddonInfo()
info.name = 'Winner Display Addon for GunGame 5'
info.version = '1.0.3'
info.url = 'http://forums.gungame5.com/viewtopic.php?f=17&t=162'
info.basename = 'gungame/custom_addons/gg_winner_display'
info.author = 'Sc0pE'
es.ServerVar('gg_winner_display_ver', info.version).makepublic()
# ==============================================================================
# GAME EVENTS
# ==============================================================================
def gg_win(event_var):
# Format variables
attacker = event_var['attacker']
attackername = es.getplayername(attacker).replace('&','%26')
username = es.getplayername(event_var['userid']).replace('&','%26')
steamid = es.getplayersteamid(attacker)
wins = gungamelib.getWins(steamid)
place = gungamelib.getWinnerRank(steamid) if steamid != 'BOT' else 'BOT'
totalPlaces = gungamelib.getTotalWinners()
# Send MOTD
gamethread.delayed(0.5, sendDisplay, (attackername, username, wins, place, totalPlaces))
# ==============================================================================
# HELPER FUNCTIONS
# ==============================================================================
def sendDisplay(attackername, username, wins, place, totalPlaces):
for userid in es.getUseridList():
usermsg.motd(userid, 2, 'GunGame Winner', '%s?winnerName=%s&loserName=%s&wins=%s&place=%s&totalPlaces=%s' % (gungamelib.getVariableValue('gg_winner_display_page'), attackername, username, wins, place, totalPlaces))
// Enable / Disable gg_winner_display
// Enable = 1 / Disable = 0
gg_winner_display 1
// Custom web page
// Leave this as default unless you want to have a customised winner page (hosted on your own web server).
// If you want to host the file on your web server, the file is here: viewtopic.php?f=17&t=162
//
// Default = http://gungame5.com/gg5_win.php
gg_winner_display_page "http://fdgaming.com/Wonder/gg5_win.php"
gg_winner_display.cfg wrote:// Default = http://gungame5.com/gg5_win.php
gg_winner_display_page "http://gungame5.com/gg5_win.php"
Warren wrote:You can choose in ../cfg/gungame5/custom_addon_configs/gg_winner_display.cfggg_winner_display.cfg wrote:// Default = http://gungame5.com/gg5_win.php
gg_winner_display_page "http://gungame5.com/gg5_win.php"
Users browsing this forum: No registered users and 3 guests