AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   change kreedz plugin (https://forums.alliedmods.net/showthread.php?t=41037)

k4Sn 07-08-2006 01:54

change kreedz plugin
 
Hallo. I want to change the ProKreedz-Plugin so that I can make checkpoints during I duck.
I want to change the plugin because I use it in combination with the amx_climb_timer_nva_special
(because the top-list).
Due to the combination of both plugins timefakes are now possible. The only solution for this problem is to make
checkpoints during duck.
Could anybody change the prokreedz-plugin that it is possible to make checkpoints during duck, please?
I call for help. Thank you!

// ============================================= ============================================= =======
// Cmds
// ============================================= ============================================= =======

public checkpoint(id) {
if(get_pcvar_num(kz_checkpoints) == 1) {
if(is_user_alive(id)) {
if(entity_get_int(id,EV_INT_flags)&FL_DUCKING ) {
client_print(id,print_chat,"[juMp ar3Na] Im ducken kein checkpoint moeglich")
return PLUGIN_HANDLED
}

for(new i=MAX_CPS-1;i>0;i--) {
checkpoints[id-1][i][0] = checkpoints[id-1][i-1][0]
checkpoints[id-1][i][1] = checkpoints[id-1][i-1][1]
checkpoints[id-1][i][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,"[juMp ar3Na] Checkpoint gesetzt")
else
client_print(id,print_chat,"[juMp ar3Na] Erster checkpoint gesetzt")
checkpointnum[id-1]++
}
else
client_print(id,print_chat,"[juMp ar3Na] Du musst am leben sein um diese Funktion zu nutzen")
}
else
client_print(id,print_chat,"[juMp ar3Na] Checkpoints sind ausgeschaltet")

return PLUGIN_HANDLED
}

teame06 07-08-2006 02:18

Re: change kreedz plugin
 
if(entity_get_int(id,EV_INT_flags)&FL_DUCKING ) {
client_print(id,print_chat,"[juMp ar3Na] Im ducken kein checkpoint moeglich")
return PLUGIN_HANDLED
}

Remove those lines. to be able to duck

k4Sn 07-08-2006 02:46

Re: change kreedz plugin
 
1 Attachment(s)
if I delete, no compiled :(

/home/groups/amxmodx/tmp3/php3hMKCF.sma(265) : error 010: invalid function or declaration
/home/groups/amxmodx/tmp3/php3hMKCF.sma( 268 ) : error 010: invalid function or declaration

2 Errors.
Could not locate output file /home/groups/amxmodx/public_html/websc3/php3hMKCF.amx (compile failed).

teame06 07-08-2006 03:12

Re: change kreedz plugin
 
1 Attachment(s)
Here you go

k4Sn 07-08-2006 03:26

Re: change kreedz plugin
 
it works :), thanks for your help
n1

MaCoLa- 12-15-2009 08:23

Re: change kreedz plugin
 
teame06 can't you make it not to create checkpoints while falling and create it while ducking? : )

lazarev 12-15-2009 08:35

Re: change kreedz plugin
 
Quote:

teame06 can't you make it not to create checkpoints while falling and create it while ducking? : )
MaCoLa- = http://lurkmore.ru/images/b/b2/Slowpoke.gif

post by teame06 was:
Code:

07-08-06 13:12

MaCoLa- 12-15-2009 09:40

Re: change kreedz plugin
 
kaziol

lazarev 12-15-2009 09:56

Re: change kreedz plugin
 
Quote:

Originally Posted by MaCoLa- (Post 1017724)
kaziol

:mrgreen: :crab: for u :)

PS Special for you.

MaCoLa- 12-15-2009 10:32

Re: change kreedz plugin
 
Hancock ? LOL. he really is :) U2


All times are GMT -4. The time now is 07:57.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.