Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
[rezolvat]modificare plugin
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Fixed issues
Author
Message
985
pheonix
[Mentally Stable]
Status: Offline
(since 10-06-2007 03:48)
Joined: 30 Dec 2006
Posts: 8
,
Topics: 2
Location:
Iran, Islamic Republic of
Reputation:
93.9
Votes
: 4
Posted: 21-04-2007, 05:50:08
| Translate post to:
... (
Click for more languages
)
Salut , va rog cine poate sa-mi modifice si mie plugin-ul de mai jos
Ce face mai exact
Afiseaza in partea stinga-central a ecranului mai multe detalii despre jucator
Modificarea de care am nevoie este ca mesajul sa apara in partea dreapta-sus
Multumesc anticipat
Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init() {
register_plugin("Stats","0.2","Dah-Veeeed")
set_task(2.0,"the_main",0,_,_,"b")
register_event("Damage","damage_event","b","2!0","3=0","4!0")
register_cvar("amx_info","1")
}
new damage[33] = 0
public client_putinserver(id) {
damage[id] = 0
}
public client_disconnect(id) {
damage[id] = 0
}
public damage_event(id)
{
new attacker = get_user_attacker(id)
new
dmg
= read_data(2)
damage[attacker] += dmg
}
public the_main() {
if(!get_cvar_num("amx_info")) {
return PLUGIN_HANDLED
}
new players[32],num,i
new message[200]
get_players(players,num)
for(i = 0; i <= num; i++)
{
new id = players[i]
if(is_user_connected(id)) {
new name[33]
new ping
new loss
get_user_name(id,name,32)
new frags = get_user_frags(id)
new deaths = get_user_deaths(id)
get_user_ping(id,ping,loss)
new nextmap[32]
get_cvar_string("amx_nextmap",nextmap,31)
new timeleft = get_timeleft()
set_hudmessage (0,255,255, 0.01, 0.29, 0, 6.0, 2.0, 0.1, 0.2, 4 )
format(message,199," %s ^n Fraguri: %i ^n Morti: %i ^n Damage total: %i ^n Ping: %i ^nTimp ramas: %d:%02d^nUrmatoarea harta: %s",name,frags,deaths,damage,ping,timeleft / 60, timeleft % 60,nextmap)
show_hudmessage(id,message)
}
}
return PLUGIN_CONTINUE
}
0
0
Back to top
Topic locked
Topic is closed, you cannot post any messages in it anymore
Locked by
TwisTer
, 15 March 2015 13:10
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Fixed issues
The time now is 27-04-2024, 08:35:46
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