This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Chance v1.0


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Decak
Senior Member
Join Date: Sep 2012
Old 06-11-2014 , 12:25   Chance v1.0
Reply With Quote #1

Chance v1.0
by DecaK
Description: This is fun plugin.When player say /chance plugin will open menu with chance options."Choose Chance:"
Code:
- 1. Respawn Chance
- 2. Pistol Chance
- 3. Rifle Chance
- 4. Health Chance [ Money/Health ]
- 5. Health Chance [ Death/Health ]
- 6. Money Chance [ BIG ]
- 7. Chance Help 

- 8. VIP/Admin Menu
- 9. Head Admin Menu

Plugin randomly select a chance.There are percentage, for all items.Percentage for VIP/Admin is a higher than the classic players.Head Admin have all free(respawn,pistol,rifle...) and Head Admin menu is on flag "L"(RCON), Admin/VIP is on flag "T"(ADMIN_LEVEL_H).This plugin is intended for a cs modes likes dr,knife and more.Plugin is created on serbian language, but later is translated on english language.If plugin have gramatician errors, please notify me.

Commands:

/chelp
/chance
/chanceinfo


Commands content:

/chelp - Open a menu and player have 50% chance for +1000 money, and 50% for -1000 money.

/chance - Everything is explained above

/chanceinfo - Open a motd window, with some information.


Instalation:

Chance.amxx upload in plugins folder
Write Chance.amxx in plugins.ini
Create new folder 'chance' in configs and upload info.html in it.
Attached Files
File Type: zip info.zip (548 Bytes, 109 views)
File Type: sma Get Plugin or Get Source (Chance.sma - 584 views - 47.7 KB)

Last edited by Decak; 06-11-2014 at 14:57.
Decak is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-11-2014 , 12:46   Re: Chance v1.0
Reply With Quote #2

Attack info.html here, you have no reason to upload it into another website.

Last edited by HamletEagle; 06-11-2014 at 12:48.
HamletEagle is offline
Decak
Senior Member
Join Date: Sep 2012
Old 06-11-2014 , 13:46   Re: Chance v1.0
Reply With Quote #3

I have problem, "Invalid File", what is error?
Decak is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 06-11-2014 , 13:51   Re: Chance v1.0
Reply With Quote #4

You need to make it an zip file before uploading it.

Your plugin is realy hardcoded right now and have bad indentation
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
ArabicMan
Veteran Member
Join Date: Feb 2014
Location: مصر
Old 06-11-2014 , 13:53   Re: Chance v1.0
Reply With Quote #5

Seems good i'll try it.
ArabicMan is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-11-2014 , 13:53   Re: Chance v1.0
Reply With Quote #6

AmxxStudio can indent the code for you ( CTRL + I ), but it's a bad practice. Also, you have a warning in public Sansa(id).

PHP Code:
Warning: Function "Sansa" should return a value on line 1004 
I fixed this for you( only a return at the end of the function ).
Attached Files
File Type: sma Get Plugin or Get Source (plugin.sma - 516 views - 30.6 KB)

Last edited by HamletEagle; 06-11-2014 at 13:55.
HamletEagle is offline
Decak
Senior Member
Join Date: Sep 2012
Old 06-11-2014 , 13:58   Re: Chance v1.0
Reply With Quote #7

Thanks for help with zip.

I know, but I didn't make plugin now, I make it a long time ago, and I was inexperienced with loose indentation, I'll fix it soon , and update post.
Decak is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 06-11-2014 , 13:59   Re: Chance v1.0
Reply With Quote #8

Bad coded, no coding style, can't see any real purpose.
__________________
Kia is offline
Decak
Senior Member
Join Date: Sep 2012
Old 06-11-2014 , 14:06   Re: Chance v1.0
Reply With Quote #9

@Kia I'm still a beginner.I'm still learning...

Edit: Plugin is edited, all warnings is removed.Plugin is now compile without errors and warnings.

Last edited by Decak; 06-11-2014 at 14:59. Reason: All done
Decak is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 06-11-2014 , 16:01   Re: Chance v1.0
Reply With Quote #10

Quote:
Originally Posted by Decak View Post
@Kia I'm still a beginner.
That's why you should NOT release plugins.
__________________
Kia 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 23:15.


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