ProKreedz Help Thread
shlumpf, i aready checked out your plugin, but there is one thing missing, you cant edit the start position by writing a comand from the server, for example, /setstart ,
/delstart :(
nevermind, i made the start thing by taking codes from XJ plugin and the other plugin that is in this topic.
Hey guys, i need some help please. I use this plugin -link- so ppl on the server can type /spec to go spectators and /ct to go back to the CT team, but i have a problem. When a spectator is freelook he can start the timer. How can i fix this ?
PS: What should i do to disable adding a checkpoint while in the air ? (sorry for my english) :)
the same question was asked in page 11 and answered in 12 SvP - #kzro ^
i adwise you to make that the finish button could not be presed while dead, because you could press start alive, and then go /spec and fly to the finish
i think i already answered that before tolsty :S else put this at the beginning of client_prethink in prokreedz.sma and recompile:
if(cs_get_user_team(id)==CS_TEAM_SPECTATOR)
return PLUGIN_HANDLED
Yes st0ka , sorry but I didn't see that ^^. SchlumPF* , i didn't quite understand the last thing you said, could you tell me exactly where to put that line cuz i'm kinda newbie and i think that's for the checkpoints right ? :D
Originally posted by SvP - #kzroYes st0ka , sorry but I didn't see that ^^. SchlumPF* , i didn't quite understand the last thing you said, could you tell me exactly where to put that line cuz i'm kinda newbie and i think that's for the checkpoints right ? :D
open the prokreedz.sma with any editor. then search for a line like this:
public client_PreThink(id)
{
change it to
public client_PreThink(id)
{
if(cs_get_user_team(id)==CS_TEAM_SPECTATOR)
and for checkpojnt thingy search a line like this
public checkpoint(id)
{
...
}pls copy paste the whole code in this thread
does any1 knows how to make TPs to Count?
P.S. I want to make the top10 whit the TP count instead of CP count, because CP doesnt matters, TPs-shows how many mistakes you made.
public checkpoint(id) {
if(get_pcvar_num(kz_checkpoints) == 1) {
if(is_user_alive(id)) {
for(new i=MAX_CPS-1;i>0;i--) {
checkpoints[id-1][0] = checkpoints[id-1][i-1][0]
checkpoints[id-1][1] = checkpoints[id-1][i-1][1]
checkpoints[id-1][2] = checkpoints[id-1][i-1][2]
}
new Float:origin[3]
entity_get_vector(id,EV_VEC_origin,origin)
checkpoints[id-1][0][0] = origin[0]
checkpoints[id-1][0][1] = origin[1]
checkpoints[id-1][0][2] = origin[2]
if(checkpointnum[id-1] > 0)
client_print(id,print_chat,"[ProKreedz] Checkpoint no. %d has been created, distance from the last checmpoint: %dm",checkpointnum[id-1]+1,floatround(get_distance_f(checkpoints[id-1][1],origin) / 20,floatround_round))
else
client_print(id,print_chat,"[ProKreedz] First checkpoint created.")
checkpointnum[id-1]++
}
else
client_print(id,print_chat,"[ProKreedz] You have to be alive to use this function.")
}
else
client_print(id,print_chat,"[ProKreedz] Checkpoints are disabled.")
return PLUGIN_HANDLED
}
this ? i hope this is it ... :D
Oh ... and i have another problem. What should i do with top10 to record only the best time of a player, so that person would not appear in top 10 twice? If it is answered please give me the link or tell me the page of this thread please because i couldn`t find it :(
Originally posted by tolstydoes any1 knows how to make TPs to Count?
P.S. I want to make the top10 whit the TP count instead of CP count, because CP doesnt matters, TPs-shows how many mistakes you made.
will some1 ever answer my question ? :/
public checkpoint(id) {
if(get_pcvar_num(kz_checkpoints) == 1) {
if(is_user_alive(id)) {
if(entity_get_int(id,EV_INT_flags)&FL_ONGROUND) {
for(new i=MAX_CPS-1;i>0;i--) {
checkpoints[id-1][0] = checkpoints[id-1][0]
checkpoints[id-1][1] = checkpoints[id-1][1]
checkpoints[id-1][2] = checkpoints[id-1][2]
}
new Float:origin[3]
entity_get_vector(id,EV_VEC_origin,origin)
checkpoints[id-1][0][0] = origin[0]
checkpoints[id-1][0][1] = origin[1]
checkpoints[id-1][0][2] = origin[2]
if(checkpointnum[id-1] > 0)
client_print(id,print_chat,"[ProKreedz] Checkpoint no. %d has been created, distance from the last checmpoint: %dm",checkpointnum[id-1]+1,floatround(get_distance_f(checkpoints[id-1][1],origin) / 20,floatround_round))
else
client_print(id,print_chat,"[ProKreedz] First checkpoint created.")
checkpointnum[id-1]++
}
else
client_print(id,print_chat,"[ProKreedz] You can not create a checkpoint while being in air.")
}
else
client_print(id,print_chat,"[ProKreedz] You have to be alive to use this function.")
}
else
client_print(id,print_chat,"[ProKreedz] Checkpoints are disabled.")
return PLUGIN_HANDLED
}this should help but i dunno i used the cmd right cause i am used to use fakemeta code cause engine sux ^^
I`ll try it ! 10x a lot <3 :D
Originally posted by SvP - #kzroOh ... and i have another problem. What should i do with top10 to record only the best time of a player, so that person would not appear in top 10 twice? If it is answered please give me the link or tell me the page of this thread please because i couldn`t find it :(
How about this one ? Do you know what I should do ?
you'll need to save player's record by ip or steamid (ip is better) not by name .....
stask0 is wrong ^^ ip is as worse as name cause most suer have a dynamicip which emans they get a new ip when restarting theior router. u have tio save records by steamid. a top10 with that feature is anywhere in thios thread and i already told u that!
schlumpf, could you give me atleast a hint how to make TPs to count, i cant find it out, and i cant understand what generates checkpointnum[id], is this it ?
for(new i=MAX_CPS-1;i>0;i--) {
checkpoints[id-1][0] = checkpoints[id-1][i-1][0]
checkpoints[id-1][1] = checkpoints[id-1][i-1][1]
checkpoints[id-1][2] = checkpoints[id-1][i-1][2]
}
Originally posted by SchlumPF*stask0 is wrong ^^ ip is as worse as name cause most suer have a dynamicip which emans they get a new ip when restarting theior router. u have tio save records by steamid. a top10 with that feature is anywhere in thios thread and i already told u that!
did you ever think about if hes running an non-steam server???
P.S need help with modifing time in prokreedz... i wannt to show + miliseconds
for example 00:00:00 or 00:000 but when i see the code at prokreedz for Minutes is used %M for Seconds %S but i dont know what to use for miliseconds.
did you ever think about if hes running an non-steam server???
amxmodx and me do not support non steam plugins stask0 ^^ cs 1.6 is very cheap so it shouldnt be a problem to buy it. i can understand pplwho are downloading warez etc but ppl using a nonsteam version...
P.S need help with modifing time in prokreedz... i wannt to show + miliseconds
for example 00:00:00 or 00:000 but when i see the code at prokreedz for Minutes is used %M for Seconds %S but i dont know what to use for miliseconds.
maybe (when i get time) i will code a small kz plugin like prokreedz (or i will just update prokreedz a bit) so most bugs of it are fixed. also i will add some features like that timer etc. ^^
for(new i=MAX_CPS-1;i>0;i--) {
checkpoints[id-1][0] = checkpoints[id-1][i-1][0]
checkpoints[id-1][1] = checkpoints[id-1][i-1][1]
checkpoints[id-1][2] = checkpoints[id-1][i-1][2]
}
this does not create checkpoints. this does just store old checkpoint data in another variable for the stuck command.
Please log in to post replies.