Raised This Month: $ Target: $400
 0% 

Gold system


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 07-08-2014 , 13:37   Gold system
Reply With Quote #1

Gold System v1.0

By Eagle & Freezo
[ v1.0, first release: 08-07-14 ]

.: Description :.

Basically this is a new system gold which gives special ability to player, and make gaming more easy and pretty cool .


.: Generale Menu ? ! :.

1-Shop Menu
2-Buy Member Gold
3-Show player Gold
4-Donate Golds

*So this is the génerale men
u
.: Shop Menu ? ! :.
1-Grenade Pack
2-Slient Walk
3-Health
4-Armor
5-Gravity
6-Faster Speed
7-Invisiblity
8-Faster Bhop
9-Random Glow


*This is the items maybe you can see it just simple but in the next update we will add more cool things !!

.: Cvars ? ! :.

This is all cvars stocked i will give cvar with function .
  • gold_system < 1 = on || 0 = off > Enable or disable plugin
  • gold_shop" < 1 = on || 0 = off > Enable or disable Shop
  • gold_bonus < 1 to > 1> Kill enemy bonus
  • admin_cost "1000" /* Price to buy golden member*/
  • "health_point" "100" /* Health Point Cvar */
  • "armor_point" "100" /* Armor Point Cvar */
  • "gravity_power" "0.3" /* Gravity Power Cvar */
  • "speed_power" "800.0" /* Speed Power Cvar */
  • "armor_cost" "6" /* Armor Cost */
  • "gravity_cost" "15" /* Gravity Cost */
  • "speed_cost" "19" /* Speed Cost */
  • "invisible_cost""19" /* Invisible Cost */
  • "bhop_cost" "14" /* Faster Bunny Hop Cost */
  • "glow_cost" "5" /* Random Glow Cost */


.: Feature :.


Unique flag for member gold adding Alot of specialty


.: To Do/Change ! :.


PHP Code:
#define PREFIX        "FraGamers"
#define FLAGS         "abcdefghijklmnopqrstu"  // what flags to give gold member 

.: Logs ? ! :.

Code:
-v1.0 First release



Note : For setting member gold i've do it in users.ini by random setinfo next update i will make a unique file for it .
Attached Files
File Type: sma Get Plugin or Get Source (goldsystem.sma - 1421 views - 22.0 KB)

Last edited by Eagle07; 07-08-2014 at 13:46.
Eagle07 is offline
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 07-08-2014 , 13:40   Re: Gold system
Reply With Quote #2

.: Logs ? ! :.

Code:
-v1.0 First release
__________________
Eagle07 is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 07-08-2014 , 13:42   Re: Gold system
Reply With Quote #3

just a disguised VIP plugin → Plugins, quantity, quality
__________________
ANTICHRISTUS is offline
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 07-08-2014 , 13:43   Re: Gold system
Reply With Quote #4

so in 1 seconde you read the whole script ?
__________________
Eagle07 is offline
UGB05
Member
Join Date: Jun 2014
Location: Casablanca Morocco
Old 07-08-2014 , 13:45   Re: Gold system
Reply With Quote #5

GJ EaGle Really Nice System Golds Keep On
__________________
UGB05 is offline
Send a message via Skype™ to UGB05
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 07-08-2014 , 14:06   Re: Gold system
Reply With Quote #6

Code:
set_user_admin(target) {     new ident[33], pw[5], linne[150]     formatex(pw, 4, "%d%d%d%d", random_num(1, 9), random_num(1, 9), random_num(1, 9), random_num(1, 9))         new File[120]; get_configsdir(File, charsmax(File))     add(File, charsmax(File), "/users.ini")          if(!file_exists(File))     set_fail_state("File configs/users.ini Not Found")         get_user_name(target, ident, charsmax(ident))     formatex(linne, charsmax(linne), "^r^n^"%s^" ^"%s^" ^"%s^" ^"a^"", ident, pw, FLAGS)                client_print(target, print_console, "------------------- | Gold System | -------------------")     client_print(target, print_console, "[AMXX] You have been kiked because you have buy admin")     client_print(target, print_console, "[AMXX] Your password | setinfo is: %s", pw)     client_print(target, print_console, "[AMXX] You should put in your console: setinfo _pw %s", pw)     client_print(target, print_console, "-------------------------| # |-------------------------")     server_cmd("kick #%d ^"Buy Admin successfully ! your password is %s, [See More information in consol]^"", get_user_userid(target), pw)     write_file(File, linne)         server_cmd("amx_reloadadmins") }
You're really pushing your luck non-steamer...



Go through your code a couple of times to make sure you didn't miss stuff like this:
Code:
public gold_handler( id, menu, item ) {     if( item == MENU_EXIT )     {         menu_destroy( menu );         return PLUGIN_HANDLED;     }     new szData[6];     new iAccess, hCallback;            menu_item_getinfo( menu, item, iAccess, szData, 5, _, _, hCallback );       
    new name[32]
    get_user_name(id,name,32)
        switch( str_to_num( szData ) )     {     case 1: gold_shop(id)     case 2:     {                 if( is_user_admin ( id ) )         {             return PLUGIN_HANDLED;         }         new golds = gGolds[id]                     if( golds < get_pcvar_num( gAdmincost ) )         {             ColorChat(id,GREEN, "^1[^4%s^1] You need ^4%d Golds For Buy ^4ADMIN", PREFIX, get_pcvar_num( gAdmincost ) )             return PLUGIN_HANDLED;         }                 set_user_admin(id)         gGolds[id] -= get_pcvar_num( gAdmincost );         menu_display( id, menu, 0 );        }     case 3: ShowPoints(id)     case 4: Donate_Menu(id)         }         return PLUGIN_HANDLED; }

Completely useless to add GOLDS to a perfectly valid key already:
Code:
formatex( vKey, charsmax( vKey ), "%sGOLDS", gSteamID );
__________________

Last edited by Black Rose; 07-08-2014 at 14:15.
Black Rose is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 07-08-2014 , 14:47   Re: Gold system
Reply With Quote #7

Did you ever want another completely generic VIP plugin with nothing new whatsoever? With amazing glow, armor and invisibility effects? You're in the right place! Now with even more terrible code and non-steam support.

Trashed, please think about releasing plugins first.
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob 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 00:16.


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