AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Kreedz Time Scoreboard (https://forums.alliedmods.net/showthread.php?t=143934)

xakintosh 11-27-2010 05:36

Kreedz Time Scoreboard
 
I remeber this link http://svn.alliedmods.net/viewvc.cgi/?root=teame06
and there was a plugin to set the time from kreedz to player scoreboard, but nomore...
How can i set the time to player scoreboard

Code:
public finish_climb(id) {     new name[15]     start_button[id] = true     get_user_name(id,name,15)     new iTime = floatround(get_gametime() - kz_StartTime[id])     ColorChat(0, RED, "[kz#] ^1%s finished the map in ^4%d:%02d ^1(CP:^4%i ^1TP:^4%i^1)",name,iTime/60, iTime%60,cp_count[id],tp_count[id])     timer_started[id] = false     reset_data(id)     return PLUGIN_CONTINUE }

ConnorMcLeod 11-27-2010 05:39

Re: Kreedz Time Scoreboard
 
set_user_frags(id, iTime/60)
cs_set_user_deaths(id, iTime%60)

xakintosh 11-27-2010 05:40

Re: Kreedz Time Scoreboard
 
oh thanks i get some error's when try with set_user_frags and cs_set_user_deaths :)

bibu 11-27-2010 13:19

Re: Kreedz Time Scoreboard
 
SHow it then?

xakintosh 11-27-2010 15:52

Re: Kreedz Time Scoreboard
 
somthing like that
Code:
new x1[5] x1 = set_user_frags(id, "%d",iTime/60)

This was my first atempt ^^

Exolent[jNr] 11-27-2010 15:58

Re: Kreedz Time Scoreboard
 
Quote:

Originally Posted by xakintosh (Post 1358111)
somthing like thath
Code:
new x1[5] x1 = set_user_frags(id, "%d",iTime/60)

... Where did you find code like that?
Connor gave you a perfect example:

Quote:

Originally Posted by ConnorMcLeod (Post 1357649)
set_user_frags(id, iTime/60)
cs_set_user_deaths(id, iTime%60)



All times are GMT -4. The time now is 11:22.

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