Raised This Month: $ Target: $400
 0% 

lol


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management       
BodyBuilder
BANNED
Join Date: Jun 2011
Location: Europa-USA-Moon
Old 07-27-2011 , 07:57   lol
Reply With Quote #1

lol

Last edited by BodyBuilder; 12-23-2012 at 04:10.
BodyBuilder is offline
gtpunkt
Veteran Member
Join Date: Dec 2008
Location: Berlin
Old 07-27-2011 , 09:31   Re: Server and player hud stats
Reply With Quote #2

not bad
gtpunkt is offline
Send a message via Skype™ to gtpunkt
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-28-2011 , 01:15   Re: Server and player hud stats
Reply With Quote #3

Code:
public plugin_init() {     /* [ ... ] */     register_forward(FM_StartFrame,"ShowDisplay")     /* [ ... ] */ } public Server_Stats_Enabled(id) {     PlayerDisabled[id] = true     client_print(id,print_chat,"[Server Stats] : on")     set_task(0.1,"ShowDisplay",id)     return PLUGIN_CONTINUE } public client_putinserver(id) {     if(get_user_flags(id) & ADMIN_KICK) {     is_admin_connected[id] = true     Admins++     ShowDisplay(id) }     else {     Players++     ShowDisplay(id) }     if(Admins == 0)     ShowDisplay(id)     else {     if(Players == 0)     ShowDisplay(id) } }   public client_disconnect(id) {     if(is_admin_connected[id]) {     is_admin_connected[id] = false     Admins--     ShowDisplay(id) }     else {     Players--     ShowDisplay(id) }     if(Admins == 0)     ShowDisplay(id)     else {     if(Players == 0)     ShowDisplay(id) } }   public ShowDisplay(id) {     static Float:GameTime     static Float:FramesPer = 0.0     static Float:Fps     GameTime = get_gametime()     if(FramesPer >= GameTime)     Fps += 10.1     else {     FramesPer = FramesPer + 0.1

Seriously ?
Also, indent your code, don't create vars in loops, don't fill _not_players_specific_ vars into players iteration loops, etc... bases.

End, i think it is redundant.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Old 07-28-2011, 02:29
BodyBuilder
This message has been deleted by BodyBuilder.
HardZone
BANNED
Join Date: Jul 2011
Location: 127.0.0.1
Old 07-28-2011 , 05:53   Re: Server and player hud stats
Reply With Quote #4

omg... Use sync huds man
HardZone is offline
Shadymn
Senior Member
Join Date: Sep 2010
Old 07-28-2011 , 06:57   Re: Server and player hud stats
Reply With Quote #5

exists? with basic amxx plugin??
Shadymn is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-29-2011 , 01:18   Re: Server and player hud stats
Reply With Quote #6

Quote:
Originally Posted by BodyBuilder View Post
I think that needs
What ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 07-29-2011 , 01:43   Re: Server and player hud stats
Reply With Quote #7

Quote:
Originally Posted by ConnorMcLeod View Post
What ?
I believe he's talking about all the 'ShowDisplay' function calls.
__________________
Hi.
Kreation is offline
Old 08-01-2011, 09:33
BodyBuilder
This message has been deleted by BodyBuilder.
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 08-01-2011 , 09:38   Re: Server and player hud info
Reply With Quote #8

The StartFrame forward is executed 550 times per second at 550 FPS and 950 times per second at 950 FPS (LINUX)

Do you think that is it needed? Why did you not use the 'set_task' native at one second?

Also, use only 'static' (and not 'new') if the forward/function is executed many times per map
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Trethy
Member
Join Date: Jun 2011
Old 08-01-2011 , 20:44   Re: Server and player hud info
Reply With Quote #9

Really nice plugin!
I will use this

God job!
__________________
Im new at coding..
And i need things for my jailbreak server

But no one help me..
Trethy is offline
ErrorStereotype
Senior Member
Join Date: Feb 2011
Location: Bosnia and Herzegovina
Old 08-06-2011 , 03:13   Re: Server and player hud info
Reply With Quote #10

Add screensoot
ErrorStereotype is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:26.


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