 |
|
Veteran Member
|

04-14-2012
, 16:06
Re: (KREEDZ) How to check player CPs, TPs?
|
#5
|
Quote:
Originally Posted by ConnorMcLeod
What is the kz plugin you are using ?
Code looks stupid, for example that kreedztime that is passed as an argument for absolutely nothing.
If i were you i would try pro kreedz ultimate.
Ok try this :
PHP Code:
public show_finish_message(id, Float:kreedztime) { new name[32] get_user_name(id, name, charsmax(name)) new wpn = get_user_weapon( id ) kreedztime = get_gametime() - timer_time[id] new imin = floatround(kreedztime / 60.0, floatround_floor) new isec = floatround(kreedztime - imin * 60.0,floatround_floor) new ims = floatround( ( kreedztime - ( imin * 60.0 + isec ) ) * 100.0, floatround_floor )
new cp = checknumbers[id] if( !cp ) { ColorChat(0, GREEN, "%s finished with ^4%s ^3in^4 %02i:%02i.%02i ^3without checkpoints!",name,g_weaponsnames[wpn],imin,isec,ims) } else { ColorChat(0, GREEN, "%s^1 finished with ^4%s ^3in^4 %02i:%02i.%02i ^3(^1 CPs: ^4%d^3 | ^1 TPs: ^4%d^3",name,g_weaponsnames[wpn],imin,isec,ims, cp, gochecknumbers[id]) } }
|
I'm using ProKreedz 2.27 (sql)
Thanks Connor! Your code is working
|
|
|
|