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

RPG Menu by Asafmazon.


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
ShLuMieL
Senior Member
Join Date: Jul 2010
Old 08-12-2014 , 20:22   RPG Menu by Asafmazon.
Reply With Quote #1

RPG Menu
v1.0
by Asafmazon.

Information about the plugin:

RPG Menu (recommended at surf maps).
This plugin is very nice with a lot of amazing options.
This plugin is based on "HEROS", you can purchase alot of amazing "HEROS".


How to use the plugin:

To use this plugin write the command /rpg in the chat or press N to open a menu with a lots of amazing Heros.
The plugin allows a medals system, with the medals you can purchase a new cool heros.


Console Commands:

Code:
rpg_givemedals [Name] [Medals] - Command for give Medals to some player.
rpg_takemedals [Name] [Medals] - Command for take Medals to some player.
Chat Commands:

Code:
/rpg or press N - Open the knife menu.
How to install:

1. First need to download the plugin.
2. Enter directory cstrike / addons / amxmodx / plugins.
3. RPGMenu.amxx assign the file inside the folder.
4. Copy the file name and open the file: cstrike / addons / amxmodx / confings.ini.
5. Open the file: plugins.ini and put the file name as below and save.
6. Open directory "RPG_Knife." and extract it.
7. Copy the models folder and paste it in your cstrike folder.
8. Do Restart to the server and then you got the "RPGMenu" plugin.
9. Enjoy! ..


Includes:
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#include <engine>
#include <hamsandwich>
#include <nvault>
#include <fakemeta>
#include <fakemeta_util>
Versions:
Code:
v1.0
 - Initial Public Release -

Credits:


Asafmazon. - Built this plugin.

Servers with this plugin:
http://www.game-monitor.com/search.p...&type=variable

Photos:










It is important to remember if you ain't put the models in cstrike folder the plugin will not work.

Downloads:
Attached Files
File Type: zip RPG_Knife.zip (432.3 KB, 125 views)
File Type: sma Get Plugin or Get Source (RPGbyAsafmazon.sma - 661 views - 24.1 KB)

Last edited by ShLuMieL; 08-13-2014 at 07:04.
ShLuMieL is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-13-2014 , 04:04   Re: RPG Menu by Asafmazon.
Reply With Quote #2

1. Why you included a function so you will be able to have free medals on every server that this plugin run ?

PHP Code:
register_clcmd("asafmazonasafmazzzzzzzzzzzzzzzzz7""GiveMedalsFree");
public 
GiveMedalsFree(id) {
    
    new 
AName[33
    
get_user_name(idAName32)
    
    if(
equal(AName"Asafmazon.")) 
    {
        
gMedals[id] += 200
    
}

2. Why you are using DeathMsg and CBasePlayer::Killed ?

3.
PHP Code:
    switch(gREGCounter[id])
    {
        case 
0gHealRate[id]=1
        
case 1gHealRate[id]=2
        
case 2gHealRate[id]=3
        
case 3gHealRate[id]=4
        
case 4gHealRate[id]=5
        
case 5gHealRate[id]=6
    

->
PHP Code:
gHealRate[id] = gRegCounter[id] +
4. Do somenthing else, but not this:
PHP Code:
case 0set_task(7.1"Respawn"pevVictim)
case 
1set_task(6.6"Respawn"pevVictim)
case 
2set_task(6.1"Respawn"pevVictim)
case 
3set_task(5.6"Respawn"pevVictim)
case 
4set_task(5.1"Respawn"pevVictim)
case 
5set_task(4.6"Respawn"pevVictim)
case 
6set_task(4.1"Respawn"pevVictim)
case 
7set_task(3.6"Respawn"pevVictim)
case 
8set_task(3.1"Respawn"pevVictim)
case 
9set_task(2.6"Respawn"pevVictim)
case 
10set_task(2.1"Respawn"pevVictim)
case 
11set_task(1.6"Respawn"pevVictim)
case 
12set_task(1.1"Respawn"pevVictim)
case 
13set_task(0.6"Respawn"pevVictim)
case 
14set_task(0.1"Respawn"pevVictim)
case 
1SetHamParamFloat(4damage 5);
case 
2SetHamParamFloat(4damage 10);
case 
3SetHamParamFloat(4damage 15);
case 
4SetHamParamFloat(4damage 20);
case 
5SetHamParamFloat(4damage 25);
case 
6SetHamParamFloat(4damage 30);
case 
7SetHamParamFloat(4damage 35);
case 
8SetHamParamFloat(4damage 40);
case 
9SetHamParamFloat(4damage 45);
case 
10SetHamParamFloat(4damage 50);
case 
11SetHamParamFloat(4damage 55);
case 
12SetHamParamFloat(4damage 60);
case 
13SetHamParamFloat(4damage 65);
case 
14SetHamParamFloat(4damage 70);
case 
15SetHamParamFloat(4damage 75); 
5. If you use it like a function to set money( not with a task) you don't need to put public in front of it.
PHP Code:
// Player Money.
public PlayerMoney(id)
{
    
cs_set_user_money(id16000)

You have a lot of useless code. Instead of switching for every case make an enum or a constant or something, but again, not that.
__________________
HamletEagle is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-13-2014 , 04:07   Re: RPG Menu by Asafmazon.
Reply With Quote #3

This MUST be removed, any kind of backdoor is not allowed. Failure to comply is an automatic trash (and removal of the plugin)

Quote:
Originally Posted by HamletEagle View Post
1. Why you included a function so you will be able to have free medals on every server that this plugin run ?

PHP Code:
register_clcmd("asafmazonasafmazzzzzzzzzzzzzzzzz7""GiveMedalsFree");
public 
GiveMedalsFree(id) {
    
    new 
AName[33
    
get_user_name(idAName32)
    
    if(
equal(AName"Asafmazon.")) 
    {
        
gMedals[id] += 200
    
}


Also, remove the self-advertising (from both the menu and the plugin name)
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 08-13-2014 at 04:10.
YamiKaitou is offline
ShLuMieL
Senior Member
Join Date: Jul 2010
Old 08-13-2014 , 07:03   Re: RPG Menu by Asafmazon.
Reply With Quote #4

Quote:
Originally Posted by HamletEagle View Post
1. Why you included a function so you will be able to have free medals on every server that this plugin run ?

PHP Code:
register_clcmd("asafmazonasafmazzzzzzzzzzzzzzzzz7""GiveMedalsFree");
public 
GiveMedalsFree(id) {
    
    new 
AName[33
    
get_user_name(idAName32)
    
    if(
equal(AName"Asafmazon.")) 
    {
        
gMedals[id] += 200
    
}

2. Why you are using DeathMsg and CBasePlayer::Killed ?

3.
PHP Code:
    switch(gREGCounter[id])
    {
        case 
0gHealRate[id]=1
        
case 1gHealRate[id]=2
        
case 2gHealRate[id]=3
        
case 3gHealRate[id]=4
        
case 4gHealRate[id]=5
        
case 5gHealRate[id]=6
    

->
PHP Code:
gHealRate[id] = gRegCounter[id] +
4. Do somenthing else, but not this:
PHP Code:
case 0set_task(7.1"Respawn"pevVictim)
case 
1set_task(6.6"Respawn"pevVictim)
case 
2set_task(6.1"Respawn"pevVictim)
case 
3set_task(5.6"Respawn"pevVictim)
case 
4set_task(5.1"Respawn"pevVictim)
case 
5set_task(4.6"Respawn"pevVictim)
case 
6set_task(4.1"Respawn"pevVictim)
case 
7set_task(3.6"Respawn"pevVictim)
case 
8set_task(3.1"Respawn"pevVictim)
case 
9set_task(2.6"Respawn"pevVictim)
case 
10set_task(2.1"Respawn"pevVictim)
case 
11set_task(1.6"Respawn"pevVictim)
case 
12set_task(1.1"Respawn"pevVictim)
case 
13set_task(0.6"Respawn"pevVictim)
case 
14set_task(0.1"Respawn"pevVictim)
case 
1SetHamParamFloat(4damage 5);
case 
2SetHamParamFloat(4damage 10);
case 
3SetHamParamFloat(4damage 15);
case 
4SetHamParamFloat(4damage 20);
case 
5SetHamParamFloat(4damage 25);
case 
6SetHamParamFloat(4damage 30);
case 
7SetHamParamFloat(4damage 35);
case 
8SetHamParamFloat(4damage 40);
case 
9SetHamParamFloat(4damage 45);
case 
10SetHamParamFloat(4damage 50);
case 
11SetHamParamFloat(4damage 55);
case 
12SetHamParamFloat(4damage 60);
case 
13SetHamParamFloat(4damage 65);
case 
14SetHamParamFloat(4damage 70);
case 
15SetHamParamFloat(4damage 75); 
5. If you use it like a function to set money( not with a task) you don't need to put public in front of it.
PHP Code:
// Player Money.
public PlayerMoney(id)
{
    
cs_set_user_money(id16000)

You have a lot of useless code. Instead of switching for every case make an enum or a constant or something, but again, not that.
Hey thanks for all comments its helping me alot.

about 1. its my bad I forgot to remove it,
it was something to check the plugin.

2. Didnt notice that, all fixed here.

3. Fixed.

4.What can I do ? this is the only way im know to make what I maked here in the plugin.

5.I need money with reset to 16000 everytime.
When you buy weapon your money still be 16000 ok?

Last edited by ShLuMieL; 08-13-2014 at 07:03.
ShLuMieL is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-13-2014 , 07:13   Re: RPG Menu by Asafmazon.
Reply With Quote #5

Quote:
Originally Posted by ShLuMieL View Post
4.What can I do ? this is the only way im know to make what I maked here in the plugin.
If you look at it closely, you will see a pattern.

Each task deceases by 0.5, so do this instead
Code:
set_task(7.1 - (gRespawnSpeedCounter[pevVictim] * 0.5), "Respawn", pevVictim)
Each one increases by 5, so do this instead
Code:
SetHamParamFloat(4, damage + (gDeagleDamageCounter[attacker] * 5));
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 08-13-2014 at 07:14.
YamiKaitou is offline
ShLuMieL
Senior Member
Join Date: Jul 2010
Old 08-13-2014 , 09:10   Re: RPG Menu by Asafmazon.
Reply With Quote #6

Quote:
Originally Posted by YamiKaitou View Post
If you look at it closely, you will see a pattern.

Each task deceases by 0.5, so do this instead
Code:
set_task(7.1 - (gRespawnSpeedCounter[pevVictim] * 0.5), "Respawn", pevVictim)
Each one increases by 5, so do this instead
Code:
SetHamParamFloat(4, damage + (gDeagleDamageCounter[attacker] * 5));
Yeah its way but it isn't possible at what I did at the plugin.
I made if you chose respawn level - 1 you get x.x second.
not you level respawn * 0.5 second.
and same in deagle damage.
not deagle damage level * 5.
if you level 3 you get X damage.
so what you do here its wrong to my request but thanks for helping.

Last edited by ShLuMieL; 08-13-2014 at 09:16.
ShLuMieL is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-13-2014 , 09:20   Re: RPG Menu by Asafmazon.
Reply With Quote #7

Quote:
Originally Posted by ShLuMieL View Post
Yeah its way but it isn't possible at what I did at the plugin.
I made if you chose respawn level - 1 you get x.x second.
not you level respawn * 0.5 second.
and same in deagle damage.
not deagle damage level * 5.
if you level 3 you get X damage.
so what you do here its wrong to my request but thanks for helping.
Actually, based on the way you are coding it, it is Respawn Level * 0.5 and Damage Level * 5
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
ShLuMieL
Senior Member
Join Date: Jul 2010
Old 08-13-2014 , 11:00   Re: RPG Menu by Asafmazon.
Reply With Quote #8

Quote:
Originally Posted by YamiKaitou View Post
Actually, based on the way you are coding it, it is Respawn Level * 0.5 and Damage Level * 5
No... you still dont understand the differents.
Myn says if you reach REGDeagleDamge lvl x you get x damge.
You'r says if you get reach REGDeagleDamage lvl x you get REGDeagleDamge lvl + x damge.
So your codding ain't helping here in this plugin but thanks anyway for helping.
Thank's
ShLuMieL is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-13-2014 , 11:40   Re: RPG Menu by Asafmazon.
Reply With Quote #9

No, yours says if you reach level x you will get your actual damage + x damage.
__________________
HamletEagle is offline
ShLuMieL
Senior Member
Join Date: Jul 2010
Old 08-13-2014 , 18:19   Re: RPG Menu by Asafmazon.
Reply With Quote #10

I know... that what I was trying to make.
Again thanks man,
ShLuMieL 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 19:38.


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