Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
[rezolvat]Cerere edit plugin
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
Author
Message
1001
vitanfitt
[Veni Vidi Vici]
Status: Offline
(since 09-10-2018 20:27)
Joined: 13 Oct 2016
Posts: 214
,
Topics: 25
Location:
Gym
Reputation:
46.8
Votes
: 20
Posted: 16-11-2016, 16:48:23
| Translate post to:
... (
Click for more languages
)
Salut, ajutati-ma va rog cu un edit la acest plugin:
Code:
/* This plugin is made by xakintosh with Amxmodx Studio 1.4.3 (final) */
// Thanks to @He3aBucuM
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
new hud_rgb, hud_x, hud_y, hud_effects,maxplayers,hudsync, curr_uptime[22], g_round = 1;
public plugin_init() {
register_plugin("Server Side Info","1.6","xakintosh")
hud_rgb = register_cvar( "srv_hud_rgb", "0 255 0" )
hud_x = register_cvar( "srv_hud_x", "0.11" )
hud_y = register_cvar( "srv_hud_y", "0.01" )
hud_effects = register_cvar( "srv_hud_effects", "0" )
hudsync = CreateHudSyncObj()
maxplayers = get_maxplayers()
set_task(0.1, "Fwd_StartFrame", 1, "", 0, "b")
set_task(0.1, "check_uptime", _, _, _, "b")
register_forward(FM_StartFrame, "Fwd_StartFrame")
register_event("HLTV", "event_newround", "a", "1=0", "2=0");
}
public event_newround() {
g_round++
}
public Fwd_StartFrame(id) {
new timestring[31]
get_time("%H:%M:%S",timestring,8)
static Float:GameTime, Float:FramesPer = 0.0
static Float:Fps
GameTime = get_gametime()
if(FramesPer >= GameTime)
Fps += 1.0;
else {
FramesPer = FramesPer + 1.0
for( new id = 1; id <= maxplayers; id++ ) {
new ip[42],red, green, blue
new const admins = GetTotalAdmins()
new timeleft = get_timeleft()
get_hud_color(red, green, blue)
get_user_ip(0, ip, 31, 1)
set_hudmessage(red,green,blue,get_pcvar_float(hud_x),get_pcvar_float(hud_y),get_pcvar_num(hud_effects),6.0,1.0)
ShowSyncHudMsg(id,hudsync,"|* --------------------* RESPAWN.Freakz.Ro *-------------------- *|^n|* Timeleft: %d:%02d | Thetime: %s^n|* Server FPS: %.1f | Server IP: %s^n|* Server Uptime: %s^n|* Frags: %i | Deaths: %i | Admins: %i | Round: %d",timeleft / 60, timeleft % 60,timestring,Fps,ip,curr_uptime,get_user_frags(id),get_user_deaths(id),admins,g_round)
}
Fps = 0.0
}
}
get_hud_color(&r, &g, &b) {
new color[20]
static red[5], green[5], blue[5]
get_pcvar_string(hud_rgb, color, charsmax(color))
parse(color, red, charsmax(red), green, charsmax(green), blue, charsmax(blue))
r = str_to_num(red)
g = str_to_num(green)
b = str_to_num(blue)
}
static GetTotalAdmins() {
new iPlayers[32],iNum,Admins
get_players(iPlayers,iNum)
for(new Count;Count < iNum;Count++)
if(is_user_admin(iPlayers[Count]))
Admins++
return Admins
}
public check_uptime() {
new Float:ft = Float:engfunc(EngFunc_Time)
new it = floatround(ft)
new m = (it / 60) % 60
new h = (it / 3600) % 24
new d = it / 86400
format(curr_uptime, 21, "%id:%ih:%im", d, h, m)
}
sa scoateti "Round:" si sa adaugati "Speed:" viteza cu care merge jucatorul, am bhop pe server si de aia, numai cand scoateti Round sa scoateti si variabilele sau tot ce tine de acel "Round" altfel o sa aibe bug..
multumesc!
Maybe you should train as hard as you hate
0
0
Back to top
JonSnow
[King in the North]
Status: Offline
(since 28-04-2021 17:29)
Joined: 09 Jul 2015
Posts: 12905
,
Topics: 75
Location:
Winterfell.
Reputation:
10609.9
Votes
: 429
Posted: 17-11-2016, 19:21:21
| Translate post to:
... (
Click for more languages
)
Poftim.
----------------------------
Download
"We have no king but the King in the North, whose name is Stark.
I don't care if he's a bastard;
Ned Stark's blood runs through his veins.
He's my king, from this day until his last day!"
0
0
Back to top
vitanfitt
[Veni Vidi Vici]
Status: Offline
(since 09-10-2018 20:27)
Joined: 13 Oct 2016
Posts: 214
,
Topics: 25
Location:
Gym
Reputation:
46.8
Votes
: 20
Posted: 17-11-2016, 19:47:04
| Translate post to:
... (
Click for more languages
)
Multumesc pentru ajutor dar din pacatenu merge, ramane blocat viteza la 0.000, nu arata
Maybe you should train as hard as you hate
0
0
Back to top
JonSnow
[King in the North]
Status: Offline
(since 28-04-2021 17:29)
Joined: 09 Jul 2015
Posts: 12905
,
Topics: 75
Location:
Winterfell.
Reputation:
10609.9
Votes
: 429
Posted: 17-11-2016, 20:20:44
| Translate post to:
... (
Click for more languages
)
Incearca-l pe asta :
Download
"We have no king but the King in the North, whose name is Stark.
I don't care if he's a bastard;
Ned Stark's blood runs through his veins.
He's my king, from this day until his last day!"
0
0
Back to top
vitanfitt
[Veni Vidi Vici]
Status: Offline
(since 09-10-2018 20:27)
Joined: 13 Oct 2016
Posts: 214
,
Topics: 25
Location:
Gym
Reputation:
46.8
Votes
: 20
Posted: 18-11-2016, 04:00:21
| Translate post to:
... (
Click for more languages
)
Tot ramane blocat...tot pe 0.000 sta...
Maybe you should train as hard as you hate
0
0
Back to top
destroi112
[DEV]
Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042
,
Topics: 119
Location:
---------
Reputation:
515.9
Votes
: 118
Posted: 10-12-2016, 21:37:47
| Translate post to:
... (
Click for more languages
)
Ia vezi a
Spoiler:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
new hud_rgb, hud_x, hud_y, hud_effects,maxplayers,hudsync, curr_uptime[22];
public plugin_init() {
register_plugin("Server Side Info","1.6","xakintosh")
hud_rgb = register_cvar( "srv_hud_rgb", "0 255 0" )
hud_x = register_cvar( "srv_hud_x", "0.11" )
hud_y = register_cvar( "srv_hud_y", "0.01" )
hud_effects = register_cvar( "srv_hud_effects", "0" )
hudsync = CreateHudSyncObj()
maxplayers = get_maxplayers()
set_task(0.1, "Fwd_StartFrame", 1, "", 0, "b")
set_task(0.1, "check_uptime", _, _, _, "b")
register_forward(FM_StartFrame, "Fwd_StartFrame")
}
public Fwd_StartFrame(id) {
new timestring[31]
get_time("%H:%M:%S",timestring,8)
static Float:GameTime, Float:FramesPer = 0.0
static Float:Fps
GameTime = get_gametime()
if(FramesPer >= GameTime)
Fps += 1.0;
else {
FramesPer = FramesPer + 1.0
for( new id = 1; id <= maxplayers; id++ ) {
new ip[42],red, green, blue
new const admins = GetTotalAdmins()
new timeleft = get_timeleft()
get_hud_color(red, green, blue)
get_user_ip(0, ip, 31, 1)
set_hudmessage(red,green,blue,get_pcvar_float(hud_x),get_pcvar_float(hud_y),get_pcvar_num(hud_effects),6.0,1.0)
ShowSyncHudMsg(id,hudsync,"|* --------------------* RESPAWN.Freakz.Ro *-------------------- *|^n|* Timeleft: %d:%02d | Thetime: %s^n|* Server FPS: %.1f | Server IP: %s^n|* Server Uptime: %s^n|* Frags: %i | Deaths: %i | Admins: %i | Speed:%.2f",timeleft / 60, timeleft % 60,timestring,Fps,ip,curr_uptime,get_user_frags(id),get_user_deaths(id),admins,PlayerSpeed(id))
}
Fps = 0.0
}
}
stock Float:PlayerSpeed(id)
{
new Float:fVect[3]
pev(id, pev_velocity,fVect)
return floatsqroot(fVect[0]*fVect[0]+fVect[1]*fVect[1])
}
get_hud_color(&r, &g, &b) {
new color[20]
static red[5], green[5], blue[5]
get_pcvar_string(hud_rgb, color, charsmax(color))
parse(color, red, charsmax(red), green, charsmax(green), blue, charsmax(blue))
r = str_to_num(red)
g = str_to_num(green)
b = str_to_num(blue)
}
static GetTotalAdmins() {
new iPlayers[32],iNum,Admins
get_players(iPlayers,iNum)
for(new Count;Count < iNum;Count++)
if(is_user_admin(iPlayers[Count]))
Admins++
return Admins
}
public check_uptime() {
new Float:ft = Float:engfunc(EngFunc_Time)
new it = floatround(ft)
new m = (it / 60) % 60
new h = (it / 3600) % 24
new d = it / 86400
format(curr_uptime, 21, "%id:%ih:%im", d, h, m)
}
Am dat copy - paste dp telefon.
Retired from Amxmodx
0
0
Back to top
vitanfitt
[Veni Vidi Vici]
Status: Offline
(since 09-10-2018 20:27)
Joined: 13 Oct 2016
Posts: 214
,
Topics: 25
Location:
Gym
Reputation:
46.8
Votes
: 20
Posted: 12-12-2016, 00:18:39
| Translate post to:
... (
Click for more languages
)
asta e bun
merge
mss fain
Maybe you should train as hard as you hate
0
0
Back to top
Topic locked
Topic is closed, you cannot post any messages in it anymore
Locked by
destroi112
, 12 December 2016 14:41
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
The time now is 28-04-2024, 04:42:51
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