Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
eroare plugin loadin_benners
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Fixed issues
Author
Message
447
Mihai94.
[Fondator ZP]
Status: Offline
(since 04-12-2019 07:04)
Joined: 20 Jan 2016
Posts: 1298
,
Topics: 159
Location:
Romania
Reputation:
191.6
Votes
: 88
Posted: 13-03-2016, 23:19:38
| Translate post to:
... (
Click for more languages
)
am incercat sa imi pun si eu pe server acest plugin loading_benner
Spoiler:
#include <amxmodx>
#define PLUGIN "Loading Game Banner"
#define VERSION "1.3"
#define AUTHOR "DJ_WEST"
#define MAX_SIZE 1012
#define BANNER_FILE "resource/images/imagineserver.tga"
#define TASKID 6892
new const g_Files[][64] =
{
"resource/LoadingDialog.res",
"resource/LoadingDialogNoBanner.res",
"resource/LoadingDialogVAC.res"
}
new g_Text[MAX_SIZE], g_CvarEnabled, g_ChangeDelay[33], bool:g_PlayerConnected[33]
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("change", "Change_LoadingGame")
g_CvarEnabled = register_cvar("amx_banner", "1")
if (get_pcvar_num(g_CvarEnabled))
set_task(0.1, "Read_LoadingGame")
}
public client_connect(id)
client_cmd(id, "cl_allowdownload 1")
public plugin_precache()
{
precache_generic(BANNER_FILE)
}
public Read_LoadingGame()
{
new i_File, s_File[128], s_Banner[32], i_Len
i_Len = strlen(BANNER_FILE)
get_configsdir(s_File, charsmax(s_File))
format(s_File, charsmax(s_File), "%s/loading_banner.ini", s_File)
formatex(s_Banner, i_Len - 4, "%s", BANNER_FILE)
i_File = fopen(s_File, "r")
fgets(i_File, g_Text, MAX_SIZE)
replace(g_Text, charsmax(g_Text), "banner_file", s_Banner)
fclose(i_File)
}
public client_putinserver(id)
{
if (get_pcvar_num(g_CvarEnabled))
{
if (is_user_hltv(id) || is_user_bot(id))
return PLUGIN_HANDLED
g_ChangeDelay[id] = 0
g_PlayerConnected[id] = true
set_task(3.0, "Change_LoadingGame", id)
}
return PLUGIN_HANDLED
}
public Change_LoadingGame(id)
{
set_task(1.0, "Change_LoadingGame_Delay", id + TASKID, "", 0, "a", 4)
}
public Change_LoadingGame_Delay(taskid)
{
new id, i
id = taskid - TASKID
if (!g_PlayerConnected[id])
return PLUGIN_HANDLED
i = g_ChangeDelay[id]
if (i == 3)
{
client_cmd(id, "motdfile motd.txt")
g_ChangeDelay[id] = 0
}
else
{
client_cmd(id, "motdfile %s", g_Files[i])
client_cmd(id, "motd_write %s", g_Text)
g_ChangeDelay[id]++
}
return PLUGIN_HANDLED
}
public client_disconnect(id)
{
g_PlayerConnected[id] = false
remove_task(id + TASKID)
}
stock get_configsdir(s_Name[], i_Len)
return get_localinfo("amxx_configsdir", s_Name, i_Len)
am facut tot benner-ul in format.tga cu rezolutia 340x56 si nu apare nmk atunci cand se incarca liniutele alea tot negru apare acolo dedesupt dar in consola primesc eroarea aceasta
Code:
Server tried to send invalid command:"motdfile resource/LoadingDialog.res
"Server tried to send invalid command: motd_write "Resource/LoadingDialog.res"{"LoadingDialog"{"ControlName" "Frame""xpos" "322""ypos" "249""wide" "380""tall" "200"}"SysMenu"{"ControlName" "Menu""wide" "64""tall" "24"}"InfoLabel"{"ControlName" "Label""xpos" "20""ypos" "34""wide" "340""tall" "24""dulltext" "1""labelText" "#GameUI_ParseBaseline"}"progress"{"ControlName" "ProgressBar""xpos" "20""ypos" "64""wide" "260""tall" "24"}"CancelButton"{"ControlName" "Button""xpos" "288""ypos" "64""wide" "72""tall" "24""labelText" "#GameUI_Cancel""command" "Cancel"}"Divider1"{"ControlName" "Divider""xpos" "20""ypos" "104""wide" "340""tall" "2"}"BannerAd"{"ControlName""HTML""fieldName""BannerAd""xpos" "0""ypos" "0""wide" "0""tall" "0"}"TimeRemainingLabel"{"ControlName" "Label""xpos" "20""ypos" "108""wide" "260""tall" "24"}"VACImage"{"ControlName" "ImagePanel""xpos" "20""ypos" "124""wide" "340""tall" "56""image" "resource/images/imaginezpa.tga"}}
Server tried to send invalid command:"motdfile resource/LoadingDialogNoBanner.res
"Server tried to send invalid command: motd_write "Resource/LoadingDialog.res"{"LoadingDialog"{"ControlName" "Frame""xpos" "322""ypos" "249""wide" "380""tall" "200"}"SysMenu"{"ControlName" "Menu""wide" "64""tall" "24"}"InfoLabel"{"ControlName" "Label""xpos" "20""ypos" "34""wide" "340""tall" "24""dulltext" "1""labelText" "#GameUI_ParseBaseline"}"progress"{"ControlName" "ProgressBar""xpos" "20""ypos" "64""wide" "260""tall" "24"}"CancelButton"{"ControlName" "Button""xpos" "288""ypos" "64""wide" "72""tall" "24""labelText" "#GameUI_Cancel""command" "Cancel"}"Divider1"{"ControlName" "Divider""xpos" "20""ypos" "104""wide" "340""tall" "2"}"BannerAd"{"ControlName""HTML""fieldName""BannerAd""xpos" "0""ypos" "0""wide" "0""tall" "0"}"TimeRemainingLabel"{"ControlName" "Label""xpos" "20""ypos" "108""wide" "260""tall" "24"}"VACImage"{"ControlName" "ImagePanel""xpos" "20""ypos" "124""wide" "340""tall" "56""image" "resource/images/imaginezpa.tga"}}
Server tried to send invalid command:"motdfile resource/LoadingDialogVAC.res
"Server tried to send invalid command: motd_write "Resource/LoadingDialog.res"{"LoadingDialog"{"ControlName" "Frame""xpos" "322""ypos" "249""wide" "380""tall" "200"}"SysMenu"{"ControlName" "Menu""wide" "64""tall" "24"}"InfoLabel"{"ControlName" "Label""xpos" "20""ypos" "34""wide" "340""tall" "24""dulltext" "1""labelText" "#GameUI_ParseBaseline"}"progress"{"ControlName" "ProgressBar""xpos" "20""ypos" "64""wide" "260""tall" "24"}"CancelButton"{"ControlName" "Button""xpos" "288""ypos" "64""wide" "72""tall" "24""labelText" "#GameUI_Cancel""command" "Cancel"}"Divider1"{"ControlName" "Divider""xpos" "20""ypos" "104""wide" "340""tall" "2"}"BannerAd"{"ControlName""HTML""fieldName""BannerAd""xpos" "0""ypos" "0""wide" "0""tall" "0"}"TimeRemainingLabel"{"ControlName" "Label""xpos" "20""ypos" "108""wide" "260""tall" "24"}"VACImage"{"ControlName" "ImagePanel""xpos" "20""ypos" "124""wide" "340""tall" "56""image" "resource/images/imagineserver.tga"}}
Server tried to send invalid command: bind "" ""
Server tried to send invalid command: bind "" ""
Server tried to send invalid command: bind "" ""
Server tried to send invalid command:"motd
siti care ar fi problema de nu apare benner-ul?
p.s. pluginul l-am gasit tot pe comunitatea freakz printr-un post la o cerere de plugin..
0
0
Back to top
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Fixed issues
The time now is 21-05-2025, 08:04:18
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details