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

rigin[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
}