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

Fun Kit 0.2b


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
nicolazo103
Veteran Member
Join Date: Jan 2009
Location: I have no fu*** idea
Old 09-09-2009 , 17:09   Fun Kit 0.2b
Reply With Quote #1

Hi everyone
I was a little bored a few days ago and i tried to make this:

Description:

You use a command and a menu appears. It contains a few little funny things. You can buy or be:
PHP Code:
bpammo
A medic kit
Godmode
Noclip
Speed Boots
Change Model
A Spy
Glow
LOL
C4 Kit
Invisibility 

Command
PHP Code:
say /fun
say_team 
/fun 
Yes, I know, it isnīt big plugin, itīs just for fun.

Credits
BOYSplayCS, who improved and organizated the code (sorry for my english)
Attached Files
File Type: txt funkit.txt (1.0 KB, 106 views)
File Type: sma Get Plugin or Get Source (funkit2.sma - 788 views - 6.6 KB)
__________________
Why do they send babies to fight me? -Heavy


Last edited by nicolazo103; 09-09-2009 at 20:10.
nicolazo103 is offline
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 09-09-2009 , 17:19   Re: Fun Kit 0.2b
Reply With Quote #2

That has to be one of the most unorganized, sloppy codes I have ever seen.
BOYSplayCS is offline
Jon
Veteran Member
Join Date: Dec 2007
Old 09-09-2009 , 17:46   Re: Fun Kit 0.2b
Reply With Quote #3

Not unorganized at all, but the code needs improvements. I'll get back to this.
Jon is offline
nicolazo103
Veteran Member
Join Date: Jan 2009
Location: I have no fu*** idea
Old 09-09-2009 , 18:48   Re: Fun Kit 0.2b
Reply With Quote #4

Quote:
That has to be one of the most unorganized, sloppy codes I have ever seen.
I know, XD

Quote:
Not unorganized at all, but the code needs improvements. I'll get back to this.
How can i improve it?
__________________
Why do they send babies to fight me? -Heavy

nicolazo103 is offline
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 09-09-2009 , 18:57   Re: Fun Kit 0.2b
Reply With Quote #5

I'll post you an improved version in a couple minutes.
BOYSplayCS is offline
nicolazo103
Veteran Member
Join Date: Jan 2009
Location: I have no fu*** idea
Old 09-09-2009 , 19:02   Re: Fun Kit 0.2b
Reply With Quote #6

Quote:
I'll post you an improved version in a couple minutes.
thanks Iīll watch it to take notes for the future.
__________________
Why do they send babies to fight me? -Heavy

nicolazo103 is offline
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 09-09-2009 , 19:21   Re: Fun Kit 0.2b
Reply With Quote #7

I have fixed your code, made it more readable and added the use of semicolons.

Take note, that this version actually compiles. Replace it with the one in your first post.

Also, take a look at the source code. I removed and added some things that made the plugin more efficient.
Attached Files
File Type: sma Get Plugin or Get Source (funkit2.sma - 642 views - 6.6 KB)
BOYSplayCS is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-09-2009 , 21:35   Re: Fun Kit 0.2b
Reply With Quote #8

Quote:
Originally Posted by BOYSplayCS View Post
I [...] added the use of semicolons.
Don't confuse the poor guy. . . . You missed 3.

This is confusing (It shows up twice). If you always use braces to enclose the statement you won't go wrong.
PHP Code:
                    if (!is_user_alive(id))
                        
                    
cs_reset_user_model(id);
                    
set_task(5.0"menu_fun"id); 
__________________
fysiks is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 09-09-2009 , 21:57   Re: Fun Kit 0.2b
Reply With Quote #9

Quote:
Originally Posted by BOYSplayCS View Post
I have fixed your code, made it more readable and added the use of semicolons.

Take note, that this version actually compiles. Replace it with the one in your first post.

Also, take a look at the source code. I removed and added some things that made the plugin more efficient.
... this is not much better. I would never approve either. So here's the message:

There are major errors in this that prevent it from being approved. Here are some of them:

Your code is unreadable.

This is redundant and cannot be approved. There are other plugins which do the job equally or better.

This plugin serves no real purpose or can be done using other plugins.

If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me.

Unapproved.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 13:10.


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