Hi. I have zombie smoker class and more human classes and zombie classes but it's a minor problem. The seconds are shown like '10' instead of '1'.
Look:
Code:
[ZP] You can drag player to youself 1 time
[ZP] Wait 40 sec. to drag again!
[ZP] Wait 40 sec. to drag again!
[ZP] Wait 40 sec. to drag again!
[ZP] Wait 30 sec. to drag again!
[ZP] Wait 30 sec. to drag again!
[ZP] Wait 30 sec. to drag again!
[ZP] Wait 20 sec. to drag again!
[ZP] Wait 20 sec. to drag again!
[ZP] Wait 10 sec. to drag again!
[ZP] Wait 10 sec. to drag again!
[ZP] Wait 10 sec. to drag again!
[ZP] Wait 10 sec. to drag again!
[ZP] Wait 00 sec. to drag again!
40, 30, 20, 10 must be 4.0, 3.0, 2.0, 1.0 and 0.0
I have in the plugin:
Code:
if (get_gametime() - g_lastHook[id] < cdown) {
client_print(id, print_chat, "[ZP] Wait %.f0 sec. to drag again!", get_pcvar_float(cvar_cooldown) - (get_gametime() - g_lastHook[id]))
return PLUGIN_HANDLED
}
I don't know what's wrong. I tested it on my windows pc, with hlds. I disabled all classes but nothing. I'm using only zm_vip.
Thank you!!