kz_dajrokan - spec modyfication
Hi, I use mod kz_dajrokan + modifications, I would like to redo some plugin so that the upper bar (time, cp, etc.) was visible in the spect for each player.
screen: link
kz_dajrokan mod: link
This is the code from the plug-in charge of the upper bar display:
http://pastebin.com/f4528f3d9
pls use some pastbin for posting code in this forum :S
Originally posted by SchlumPFpls use some pastbin for posting code in this forum :S
Dont be so rude, I assume he dont even know about pastebin or any website on the web to post code ...
i was not rude but i just suggest this since this forum has no really code tag for posting code like [php][/php]
ok now changed to pastbin, I wait to concrete post ;)
http://pastebin.com/m2fb49eb3
untested
(gimme some karma at alliedmodders if this works :P)
doesn't work :(
Originally posted by SchlumPFhttp://pastebin.com/m2fb49eb3
untested
(gimme some karma at alliedmodders if this works :P)
can u give again this code? :)
2morrow gotta go to bed now :S maybe i just explain how to do it to you
to get the id a player is spectating use
pev(id, pev_fuser2) while he/she is dead, rest should be easy
or maybe it was wine transition to the spect previously used this funcion
public spec(id) {
if (!is_user_alive(id))
live_now(id)
else {
climber_lock[id] = true
user_silentkill(id)
make_deathmsg(id, id, 1, "knife")
}
}
and now
public spec(id)
{
if (cs_get_user_team(id) != CS_TEAM_SPECTATOR)
{
climber_lock[id] = true
cs_set_user_team(id, CS_TEAM_SPECTATOR);
user_silentkill(id);
}
return PLUGIN_HANDLED;
}Originally posted by SchlumPF2morrow gotta go to bed now :S maybe i just explain how to do it to you
I know that SchlumPF ,u don't have time working on kz_stats but i want to help
actually im not working on kz_stats now :P im working on 2 other plugins (private :P) and updated a few plugin of me + made some new ones i will publish
Please log in to post replies.