PDA

View Full Version : RDP Point System


R0DEmental
07-16-2014, 04:02
Hello all guys, i'll be coded point system for CS server, it will can compitable with DR , SURF mods, or other.

DESCRIPTION:
With this plugin you will shop a items with RDPs. Per kill you got +1 RDP. In shop available buy gravity, speed, invisibility, invisibility with orange glow and 200 HP + 200 AP.
Some screens
http://www.bildites.lv/images/hij7l0rr2fk0zxdzdqs.png
http://www.bildites.lv/images/ypc7619c9jxb6flw3f.png
SERVER CVARS:

rdp_hpap_count 20 // How much costs 200 HP + 200 AP
rdp_speed_count 20 // How much costs Speed
rdp_gravity_count 15 // How much costs Gravity
rdp_invisible_count 30 // How much costs Invisibility
rdp_invisibleglow_count 25 // How much costs Invisibility with orange glow
rdp_kill_count 1 // How much RDPs point give per kill
rdp_ad_hud 1 // Enable/Disable advistment in HUD: 1 - Enable ; 0 - Disable

CLIENT CMDS
/rdp - show your RDPs
/rdpshop - opens RDP shop menu
/rdphelp - open Help MOTD with commands, if others no known.
/rdpgive or Console: amx_rdpadd - Admin command, it will can give free RDPs for everyone.

OTHER SCREENS:
http://www.bildites.lv/images/gv6uartlonomu2idga5v.png
http://www.bildites.lv/images/npr7ofkxe54l1ox7c2l.png
http://www.bildites.lv/images/jx6hzsh1q9sf8n0jfut.png
http://www.bildites.lv/images/r7db0emwlougvuixditu.png
http://www.bildites.lv/images/bhgerhw29yo9t2ksoba.png
http://www.bildites.lv/images/aif7sac95aadg6tuckwa.png
http://www.bildites.lv/images/313f5w7lo22u94iczqxl.png

HOW INSTALL:
rdps.amxx put in plugins
rdps.sma put in scripting
rdps.cfg put in configs
rdphelp.txt put in cstrike

Sorry, .sma file not included, cuz i will make a more fixes etc

AND, Sorry for my English :) im form Latvia :)

GL

EDIT: Plugin does not available anymore!

Mario AR.
07-16-2014, 04:08
You're not allowed to post .amxx files. Amx Mod X is an open-source project.. so, the source is a must!

R0DEmental
07-16-2014, 04:10
okay, but how i edit post? im newbie
EDIT: thats okey, im uploaded

HamletEagle
07-16-2014, 04:30
You don't need to open/close the nvault every time when a player connect/disconnect. Put this in plugin_init...


gVault = nvault_open( "RDP_Save_Points" )

if( gVault == INVALID_HANDLE ) /* put in plugin_init this check too */
{
set_fail_state( "nValut ERROR: =-> Invalid-Handle" )
}


Also use nvault_close in plugin_end.

R0DEmental
07-16-2014, 04:34
You don't need to open/close the nvault every time when a player connect/disconnect. Put this in plugin_init...


gVault = nvault_open( "RDP_Save_Points" )

if( gVault == INVALID_HANDLE ) /* put in plugin_init this check too */
{
set_fail_state( "nValut ERROR: =-> Invalid-Handle" )
}


Also use nvault_close in plugin_end.

but points saves very well on SteamID, i dont need to edit.

YamiKaitou
07-16-2014, 04:51
Remove the AMXX file from the ZIP archive

HamletEagle
07-16-2014, 05:12
but points saves very well on SteamID, i dont need to edit.

You have to edit. Event if it works you have to use the best way, not one that waste cpu.

Blizzard_87
07-16-2014, 05:59
but points saves very well on SteamID, i dont need to edit.

You open vault on plugin_cfg then you can just get and set data in vault as much as you want. Then when plugin ends ( map change ), then you close vault.

EthicalHacker007
07-16-2014, 22:55
Add some more unique items to your shop.

R0DEmental
07-17-2014, 00:06
Add some more unique items to your shop.
okay, but i wan't to see your ideas, to release in new version

YamiKaitou
07-17-2014, 01:45
Remove the AMXX file from the ZIP archive

ZIP file removed as you did not listen

Flick3rR
07-17-2014, 03:50
Well, for now I find this redundand, since they are many tons of points systems, advanced upgrades, etc. You will have to throw much work on this project, so you will succeed. For now, you can improve your code as much as possible - let's begin with the already mentioned stuff. And then you can think about some new suggestions, which you could improve aswell. And that's the way, just keep it on.

Chill it BanG
07-17-2014, 08:41
Another point system in this forum.


Suggestions:
- Add mysql support
- You should make some kind of API, so people can create their own ways to use these points, like different types of shops, top plugins, more ways to earn points etc. because so far this is just another yet point plugin.
- Also it would be fun, if there were an command to see top10 richest memebers.
- Add option to buy those points by money.
- Add option to block money at all, could be useful in such mods as csdm / dr/ jb etc.
- Add command to donate those points... so rich players could give some points to newbies. (like "/iedot" or "/donate")

P.S "AND, Sorry for my English im form Latvia" it is not the reason why your English sucks. Do not make shame to your country, please.
P.S.S Kopš kura laiku tu pluginus taisi? :D

R0DEmental
07-17-2014, 17:04
Another point system in this forum.


Suggestions:
- Add mysql support
- You should make some kind of API, so people can create their own ways to use these points, like different types of shops, top plugins, more ways to earn points etc. because so far this is just another yet point plugin.
- Also it would be fun, if there were an command to see top10 richest memebers.
- Add option to buy those points by money.
- Add option to block money at all, could be useful in such mods as csdm / dr/ jb etc.
- Add command to donate those points... so rich players could give some points to newbies. (like "/iedot" or "/donate")

P.S "AND, Sorry for my English im form Latvia" it is not the reason why your English sucks. Do not make shame to your country, please.
P.S.S Kopš kura laiku tu pluginus taisi? :D
a kas ir, skauzh? :D

es visu meginashu uztaisit, ko tu nosauci.
un parnest no nVault uz sql

GuskiS
07-17-2014, 17:59
Menu is very badly coded. Code is messy, you should learn about enums.
Also, this plugin is redundant.

P.S. Tāpēc, ka esi latvietis - paņēmu un nokačāju failu, lai apskatītu - diezgan pabriesmīgi.

Jhob94
07-18-2014, 15:14
switch(padd)
{
case 10:
{
formatex(msg, charsmax(msg), "\d10^n")
menu_additem(menu, msg, "33", PADD)
}

case 100:
{
formatex(msg, charsmax(msg), "\d100^n")
menu_additem(menu, msg, "34", PADD)
}

case 1000:
{
formatex(msg, charsmax(msg), "\d1000^n")
menu_additem(menu, msg, "35", PADD)
}
}

Are you serious? Does this even works correctly?
Cuz you use "padd" in entire plugin, not only that function. I couldnt read all code, but it seems that it will only display one option on menu, the last "padd" value.
Also, why the values 33, 34 and 35?

R0DEmental
07-18-2014, 16:36
switch(padd)
{
case 10:
{
formatex(msg, charsmax(msg), "\d10^n")
menu_additem(menu, msg, "33", PADD)
}

case 100:
{
formatex(msg, charsmax(msg), "\d100^n")
menu_additem(menu, msg, "34", PADD)
}

case 1000:
{
formatex(msg, charsmax(msg), "\d1000^n")
menu_additem(menu, msg, "35", PADD)
}
}

Are you serious? Does this even works correctly?
Cuz you use "padd" in entire plugin, not only that function. I couldnt read all code, but it seems that it will only display one option on menu, the last "padd" value.
Also, why the values 33, 34 and 35?

\d10^n
please, download the plugin, put on your private server, and you will see. it works, personaly for me correctly. and this is Beta version, i will upgrade and fix this plugin

McChillerDomi
07-19-2014, 11:13
Please Upload the rdps.cfg and rdphelp.txt

Syturio
07-22-2014, 15:57
can u add more stuff? and a "Open Jail" for surf maps please?