ProKreedz Help Thread

Started by faker mapper
07/09/2006 19:42
Page 3 of 21
Fatalis14/01/2007 23:38

2 solutions.

1. hud_centerid 0 in client console
2. replace the print_center line with:

set_hudmessage(255, 0, 0, 0.40, 0.10, 0, 0.0, 1.0, 0.0, 0.0, 1);
show_hudmessage(i, "[ %d minute%s %d second%s ]",imin,imin == 1 ? "" : "s",kreedztime,kreedztime == 1 ? "" : "s")


[ Edited Sun Jan 14 2007, 11:40PM ]

irru16/01/2007 15:04

kz_hook "playername" "ON" don't work? O.o

TROUbl3m4k3R


No, I cant get it to work =/

"[Prokreedz] The Admin XXX has removed your ability to use hook" when i type it =/

darkwillow16/01/2007 18:33

2 solutions.

1. hud_centerid 0 in client console
2. replace the print_center line with:

set_hudmessage(255, 0, 0, 0.40, 0.10, 0, 0.0, 1.0, 0.0, 0.0, 1);
show_hudmessage(i, "[ %d minute%s %d second%s ]",imin,imin == 1 ? "" : "s",kreedztime,kreedztime == 1 ? "" : "s")


fatalis


Ok thank you. Is there a editor to edit amxx files, because notepad can't do it?

Fatalis17/01/2007 13:53

http://prdownloads.sourceforge.net/amxmodx/AMXX_Studio_1.4.3_final.zip?download
It can edit .sma files, not .amxx

darkwillow20/01/2007 18:36

Ok thank you.

Can someone tell me if it is possible to have the show timer on by default. So you don't have to access the menu? I know this is possible because every server has it.

Fatalis21/01/2007 18:30

Search for:
new bool:showtimer[32]
Replace:
new bool:showtimer[32] = {true, ...};

Search for all occurances of:
showtimer[id-1] = false
Replace all with:
showtimer[id-1] = true;

Merciless24/01/2007 08:35

I have installed prokreedz nice mod love it i did not install the sma files only the amxx files (as the install.html enclosed in the zip instructed) through this thread i have tweaked out most of the commands for timer semiclip etc .. the problem i have is how do you get the hook to work for the players that start the timer and complete the map and then stop the timer when the bind for +hook is used ....in console it says you have no acces to that command can someone please help me with this? i have no real coding experiance, the most i do is cfg files and some basic html thanx in advance for any help you might offer

kinoute28/01/2007 22:01

hello,

I use this plugin but I have a problem with the /top15, indeed when a player is present in the top and when he does a new score, his name is again added on a new line and the old score is always here
I thus meet myself with a top performed with doubloons.. How fix that?

thank you in advance and sorry for my bad english!

kinoute29/01/2007 05:31

hello again..

I found this part of the prokreedz.sma :

public topten_update(id) {
new szvault[64], szmap[32], kreedztime
get_mapname(szmap,32)
format(szvault,64,"pk_%s",szmap)
kreedztime = get_systime() - timer_time[id-1]

new vault = nvault_open(szvault) // Now we have to sort the new list :o
if(vault != -1) {
new szkey[8]
for(new i=1;i<=10;i++) {
new szreturn[128]
new arg1[32], arg2[8]
format(szkey,8,"%d",i)
nvault_get(vault,szkey,szreturn,128)

if(parse(szreturn,arg1,32,arg2,8) == 0 || kreedztime < str_to_num(arg2)) {
new sznew[128], szname[32]
get_user_name(id,szname,32)
format(sznew,128,"^"%s^" ^"%d^" ^"%d^"",szname,kreedztime,checkpointnum[id-1])
if(i < 10) {
for(new x=10;x>i;x--) {
new sztemp[128], sztempkey[8]
format(sztempkey,8,"%d",x-1)
nvault_get(vault,sztempkey,sztemp,128)

if(!equal(sztemp,"")) {
format(sztempkey,8,"%d",x)
nvault_pset(vault,sztempkey,sztemp)
}
}
}
nvault_pset(vault,szkey,sznew)

if(i == 1)
client_print(0,print_chat,"[ProKreedz] %s has established a new record",szname)

break
}
}
nvault_close(vault)
}
}


I suppose that it is in this place that the top is updated, how to limit the number of times by player to the only one? I would like to have twice no same player in top10.

Thank you in advance
[ Edited Mon Jan 29 2007, 05:34AM ]

trb30/01/2007 17:35

u have to add much lines of code for that

1. u have to save steam id from the players which are in top10

2. when someone reach target, it should check if ther is an entry to this steam id (new function)

if no, do nothing

if yes, check if new time is better

if yes, load topten_update

;)

t4l31/01/2007 09:54

[ProKreedz] You can not create a checkpoint while ducking

Why? :(

trb31/01/2007 10:38

remember to kz_multiplugin

when u are on a place where u have to duck, doing there a checkpoint, fall and type /gocheck without ducking before, u will stuck ;)

when function is that u can't do checks while ducking this situation with stuck cant come ;)

t4l31/01/2007 11:30

Ok , but is another plugin , kz_jump_plugin , that suport duck function , but i like prokreedz , its a way to make this thing posible? http://forums.alliedmods.net/showthread.php?t=42367&highlight=kreedz
Please help, if someone know how to make checkpoint while duck with prokreedz.

trb31/01/2007 11:54

sure there are ways...
but to this time when prokreedz was released ther wasn't the plugin kz_jump_plugin....

sure u can disable the check if the person is ducking

try it by removing this code in prokreedz.sma

if(entity_get_int(id,EV_INT_flags)&FL_DUCKING) {
client_print(id,print_chat,"[ProKreedz] You can not create a checkpoint while ducking")
return PLUGIN_HANDLED
}

i think when i look quite now that it should work by removing this code...

re compile then and put the new prokreedz.amxx in plugins folder


[ Edited Wed Jan 31 2007, 11:55AM ]

t4l31/01/2007 12:34

10x , i will try

t4l31/01/2007 13:18

Hmm , works to create checkpoint , but when i go to checkpoint , im stuck , like u have say.

Fatalis31/01/2007 14:28

Copy the task that kz jump plugin has that sets FL_DUCKING

t4l31/01/2007 16:50

delay_duck(id)
{
set_task(0.01, "force_duck", id);
_fm_set_entity_flags(id, FL_DUCKING, 1);
}

public force_duck(id)
{
_fm_set_entity_flags(id, FL_DUCKING, 1);
}
these are but where to put these?

Fatalis03/02/2007 03:58

Anywhere in the sma, then put delay_duck(id) before every set_user_origin.

spermis07/02/2007 11:57

there isnt any set_user_origin..

Page 3 of 21

Please log in to post replies.