Raised This Month: $51 Target: $400
 12% 

[REQ] Permanent HUD message to show total number of headshots.


Post New Thread Reply   
 
Thread Tools Display Modes
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 01-24-2015 , 14:33   Re: [REQ] Permanent HUD message to show total number of headshots.
Reply With Quote #11

Was it better to make a task on client_putinserver and that task will follow him until he leaves from the server instead of looping 32times per second. I mean what is the point for looping 32 times even if there are 2-3 players connected?
__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science
oxygen935 is offline
Send a message via Skype™ to oxygen935
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 01-24-2015 , 17:24   Re: [REQ] Permanent HUD message to show total number of headshots.
Reply With Quote #12

It's not looping 32 times, it's looping so many times, how much are the players in the server. Except that, one task is much better than 32 task for each individual player. And a simple integer loop and a native are not that big deal.
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
skz
Senior Member
Join Date: Jul 2014
Location: Portugal
Old 01-24-2015 , 19:42   Re: [REQ] Permanent HUD message to show total number of headshots.
Reply With Quote #13

You should remove the task on client_disconnect
__________________
skz is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 01-25-2015 , 05:58   Re: [REQ] Permanent HUD message to show total number of headshots.
Reply With Quote #14

The task is global and just loops the connected players to show them their headshots. The most practic way for me.
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
Akshat
Senior Member
Join Date: Feb 2013
Location: India, Jaipur.
Old 01-25-2015 , 08:40   Re: [REQ] Permanent HUD message to show total number of headshots.
Reply With Quote #15

Flicker, its working but its removing all other hud messages. Fix it ASAP!, thanks.
__________________
Learning Pawn [3% Complete!]

Last edited by Akshat; 01-25-2015 at 09:10.
Akshat is offline
Send a message via Skype™ to Akshat
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 01-25-2015 , 09:59   Re: [REQ] Permanent HUD message to show total number of headshots.
Reply With Quote #16

Try it now. Added sync hud msg.
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
Akshat
Senior Member
Join Date: Feb 2013
Location: India, Jaipur.
Old 01-25-2015 , 10:08   Re: [REQ] Permanent HUD message to show total number of headshots.
Reply With Quote #17

Can you add it in this MOD? I have attached the code. You have to make changes on line 1488 (I tried to do it but failed )
Attached Files
File Type: sma Get Plugin or Get Source (cod_mw.sma - 255 views - 46.4 KB)
__________________
Learning Pawn [3% Complete!]
Akshat is offline
Send a message via Skype™ to Akshat
Akshat
Senior Member
Join Date: Feb 2013
Location: India, Jaipur.
Old 01-25-2015 , 14:02   Re: [REQ] Permanent HUD message to show total number of headshots.
Reply With Quote #18

Okay, I fixed it but can you do something like make the text "headshot" if number of headshots are 0 and make it "headshots" if more than 1.
__________________
Learning Pawn [3% Complete!]
Akshat is offline
Send a message via Skype™ to Akshat
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-25-2015 , 14:08   Re: [REQ] Permanent HUD message to show total number of headshots.
Reply With Quote #19

PHP Code:
"headshot%s"hs_num "s" "" 
__________________

Last edited by HamletEagle; 01-25-2015 at 14:09.
HamletEagle is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 01-25-2015 , 15:10   Re: [REQ] Permanent HUD message to show total number of headshots.
Reply With Quote #20

Quote:
Originally Posted by HamletEagle View Post
PHP Code:
"headshot%s"hs_num "s" "" 
It's actually
PHP Code:
"headshot%s"hs_num == "" "s" 
Because if they are 0, it's more accurate to ne headshots and in your way if it's only 1 hs, it will show headshots.
__________________

Last edited by Flick3rR; 01-25-2015 at 15:11.
Flick3rR is offline
Send a message via Skype™ to Flick3rR
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 08:17.


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