kz_dajrokan - spec modyfication

Started by berix
15/09/2008 23:26
Page 1 of 1
berix15/09/2008 23:26(edited 16/09/2008 07:28)

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

SchlumPF16/09/2008 06:38

pls use some pastbin for posting code in this forum :S

raver mapper16/09/2008 12:17

Originally posted by SchlumPF
pls 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 ...

SchlumPF16/09/2008 14:01

i was not rude but i just suggest this since this forum has no really code tag for posting code like [php][/php]

berix16/09/2008 15:43

ok now changed to pastbin, I wait to concrete post ;)

SchlumPF16/09/2008 16:00

http://pastebin.com/m2fb49eb3
untested
(gimme some karma at alliedmodders if this works :P)

berix16/09/2008 16:25

doesn't work :(

berix10/11/2008 23:55

Originally posted by SchlumPF
http://pastebin.com/m2fb49eb3
untested
(gimme some karma at alliedmodders if this works :P)


can u give again this code? :)

SchlumPF11/11/2008 00:00

2morrow gotta go to bed now :S maybe i just explain how to do it to you

SchlumPF11/11/2008 07:10

to get the id a player is spectating use
pev(id, pev_fuser2) while he/she is dead, rest should be easy

berix11/11/2008 20:52

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;

}

berix16/11/2008 00:49(edited 16/11/2008 00:49)

Originally posted by SchlumPF
2morrow 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

SchlumPF16/11/2008 13:21

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

Page 1 of 1

Please log in to post replies.