Raised This Month: $32 Target: $400
 8% 

CS


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
vedant007
Member
Join Date: Jul 2013
Old 10-02-2014 , 11:10   CS
Reply With Quote #1

---

Last edited by vedant007; 03-18-2020 at 16:19.
vedant007 is offline
Send a message via Skype™ to vedant007
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-02-2014 , 11:11   Re: Cs : [dj mod]
Reply With Quote #2

Where is the plugin ?
__________________

Last edited by HamletEagle; 10-02-2014 at 11:11.
HamletEagle is offline
vedant007
Member
Join Date: Jul 2013
Old 10-02-2014 , 11:53   Re: Cs : [dj mod]
Reply With Quote #3

Quote:
Originally Posted by HamletEagle View Post
Where is the plugin ?
Added.
vedant007 is offline
Send a message via Skype™ to vedant007
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-02-2014 , 12:02   Re: CS : [DJ mod]
Reply With Quote #4

Where is the sma file ?
__________________
HamletEagle is offline
vedant007
Member
Join Date: Jul 2013
Old 10-02-2014 , 12:02   Re: CS : [DJ mod]
Reply With Quote #5

Quote:
Originally Posted by HamletEagle View Post
Where is the sma file ?
Once again Updated the scripting.
Now you can get that.

Last edited by vedant007; 10-02-2014 at 12:03.
vedant007 is offline
Send a message via Skype™ to vedant007
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 10-02-2014 , 12:36   Re: CS : [DJ mod]
Reply With Quote #6

Just remove the unnecessary code:
Code:
    else {
        set_hudmessage(255, 125, 0, 0.3, 0.0, 0, 0.0, 999.0, 0.0, 0.0, 4)
        show_hudmessage(0,"")
    }

Last edited by zmd94; 10-02-2014 at 12:37.
zmd94 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-02-2014 , 12:49   Re: CS : [DJ mod]
Reply With Quote #7

Code looks like it has been done years ago. Quite poorly coded.

Fast tips:

- Use cvar pointer
- Use charsmax() instead of hardcoded buffer length
- Stop to glue code together, learn to use new line.
- Use parse() instead of strbreak + replace x2
- Quite dumb to open file with fopen and checking if file exist after with file_exists
- Use formatex when you can
- Don't declare variables in loop
- Use player's index or LANG_PLAYER (if 0) instead of LANG_SERVER.
- No point to call each time get_user_msgid
- ... more and more.
__________________
Arkshine is offline
vedant007
Member
Join Date: Jul 2013
Old 10-02-2014 , 12:52   Re: CS : [DJ mod]
Reply With Quote #8

Quote:
Originally Posted by Arkshine View Post
Code looks like it has been done years ago. Quite poorly coded.
Yes,you are right this was coed in 2010 by me & optimized by reydifox.
vedant007 is offline
Send a message via Skype™ to vedant007
vedant007
Member
Join Date: Jul 2013
Old 10-02-2014 , 13:03   Re: CS : [DJ mod]
Reply With Quote #9

Quote:
Originally Posted by zmd94 View Post
Just remove the unnecessary code:
Code:
    else {
        set_hudmessage(255, 125, 0, 0.3, 0.0, 0, 0.0, 999.0, 0.0, 0.0, 4)
        show_hudmessage(0,"")
    }
Thanks for that i was habituated to use old coding now i will try to use new phrases.
Updated
vedant007 is offline
Send a message via Skype™ to vedant007
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-02-2014 , 13:39   Re: CS : [DJ mod]
Reply With Quote #10

Quote:
Originally Posted by vedant007 View Post
Yes,you are right this was coed in 2010 by me & optimized by reydifox.
Why did you post this as it is if you knew it was poorly coded? Can you support this? Did you read the rules? If you just wanted to share plugin, you should have posted in another section (Off-topic/Suggestions/Scripting, etc).
__________________

Last edited by Arkshine; 10-02-2014 at 13:40.
Arkshine 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:18.


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