ProKreedz Help Thread

Started by faker mapper
07/09/2006 19:42
Page 13 of 21
tolsty14/02/2008 21:05(edited 14/02/2008 21:28)

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 :(

tolsty14/02/2008 23:33

nevermind, i made the start thing by taking codes from XJ plugin and the other plugin that is in this topic.

SvP15/02/2008 07:59(edited 15/02/2008 08:06)

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) :)

st0ka15/02/2008 08:38

the same question was asked in page 11 and answered in 12 SvP - #kzro ^

tolsty15/02/2008 15:52

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

SchlumPF15/02/2008 16:27

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

SvP15/02/2008 18:17(edited 15/02/2008 18:25)

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

SchlumPF15/02/2008 20:52

Originally posted by SvP - #kzro
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


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

tolsty16/02/2008 02:13(edited 16/02/2008 02:17)

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.

SvP16/02/2008 09:54(edited 16/02/2008 09:54)

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

SvP16/02/2008 10:13(edited 16/02/2008 20:51)

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 :(

tolsty16/02/2008 12:17

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


will some1 ever answer my question ? :/

SchlumPF16/02/2008 15:52

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 ^^

SvP16/02/2008 20:55

I`ll try it ! 10x a lot <3 :D

SvP16/02/2008 20:56

Originally posted by SvP - #kzro
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 :(


How about this one ? Do you know what I should do ?

stask0 Tournament #216/02/2008 21:41

you'll need to save player's record by ip or steamid (ip is better) not by name .....

SchlumPF16/02/2008 22:03

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!

tolsty16/02/2008 22:46(edited 16/02/2008 22:48)

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]
}

stask0 Tournament #216/02/2008 22:55(edited 16/02/2008 23:00)

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.

SchlumPF16/02/2008 23:35(edited 17/02/2008 13:34)


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.

Page 13 of 21

Please log in to post replies.