AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   CS Items 2.0/1.3 - 02/13/2010 (https://forums.alliedmods.net/showthread.php?t=73805)

JoshGomez 07-06-2008 14:04

CS Items 2.0/1.3 - 02/13/2010
 
5 Attachment(s)
CS Items is a plugin which add RPG items to Counter-Strike. The Items can give you armor, health, magicfind, speed and jump. There is four kind of items, you can find helmets, armours, gloves and shoes. You can buy and sell items, see other players and trade items which is the main point with this plugin. You find items by killing other players.

This is little diffrent from other plugins beacuse I used html for maintain the character.

In 1.4 the game can be played without the website and the password, but most of the features can't be used such as trade, sell, buy, players info and item list. However you can view your own items and drop, equip and unequip them.


If you want you can check this site and see how the script works, only when my computer is on.
steamid:STEAM_0:0:997294
password: hej
http://joshgomez.no-ip.org/csitems
http://joshgomez.no-ip.org/csitems?do=players
steam://connect/joshgomez.no-ip.org:27016


Version
Version 1.0b/0.4
- First release
1.0/0.5
- Added: Trade System (website)
- Added: 10 Items
- Lower SQL value (sql table structure)
1.1/0.5
- Fixed some bugs (plugin)
- Added cvar for item droprate
1.2/0.6
- Fixed some critical bugs (plugin & website)
- Added:10 Items
- The say commands for the website begin with ! instead for /
- The say commands for the game begin with /
- Speed and Jump are shown in percent
- Total item stats can be shown in game
1.3/0.7
- Fixed some bugs (plugin & website)
- Items found can now automatic be equiped
- If password is not set, server will send notice for help each round
- Added Online status (website)
- Rebalanced All Items
- Working with Bots
- Total Items: 59
1.4/0.8
- Fixed minor bugs (plugin & website)
- Inventory Slots reduced
- Steam ID remembered for later use (website)
- Added: Menu
- Added: Inventory Menu
- Added: Equipment Menu
1.5/0.9
- Fixed minor bugs (website)
- Better Loot Dropper
- Itemlist, Playerlist, Item & Player Info without logging in
- Added: Player Color based on item quality
- Added: *Player Equipment Icon
- Added: *Player Glow [on/off]
- Item Pack with 11 new items
1.5.1/0.9
- Adjusted Loot Dropper
1.5.2/0.9
- Adjusted Loot Dropper
1.6/0.9
- Fixed a minor bug
- Adjusted Loot Dropper
- Plugin Notice
- Edited some text messages
1.7/1.0
- Added Username as login (optional)
- Fixed minor problems (website)
Version 1.8/1.1
- Added few Quick Links (website)
- Can also drop equipped items instead of un-equipping (plugin)
- Reduced the money rate
Version 1.9/1.2
- Removed Offline Date
- Edited some text (website).
- Separated list of commands from about
- Added a command for list of commands (plugin)
- Ninety-nine percent compatible with display resolution of 1024x768 or higher
Version 2.0/1.3
- Fixed Armor Validation
- Armor have chance to take all damage
- Converted some function to hamsandwich
- Fixed some misstyped text (website)
- Removed un-needed modules

Please Check the Image for more info.

About:
http://i45.tinypic.com/2d2809x.jpg
Trade:
http://i49.tinypic.com/ojje9w.jpg
Item:
http://i49.tinypic.com/70u88g.jpg

To run the script you have to edit index.php and csitems.cfg.
When you open this files you will be able to find the filepaths.
You can also add your own items by using phpmyadmin or some other sql tool.

The SQL Data have been modified for better balance. (10-02-06)

AntiBots 07-06-2008 15:33

Re: CS Items 1.0
 
Good, I am seeing your webpage :D

hleV 07-06-2008 16:18

Re: CS Items 1.0
 
I think this plugin is worth trying it. I hope there will be more items in the future.

JoshGomez 07-06-2008 16:30

Re: CS Items 1.0
 
Ok, but you can also add items if you have phpmyadmin and it is quite easy to add them.

Reaper2331 07-06-2008 16:39

Re: CS Items 1.0
 
maybe make a guide showing how to add more items.

JoshGomez 07-06-2008 18:32

Re: CS Items 1.0
 
It is little hard to add items and run the plugin if you don't understand sql. You can check the csitems.sql to see the structure.

Code:

INSERT INTO `items` (`id`, `name`, `type`, `armor`, `health`, `magicfind`, `quality`, `speed`, `jump`) VALUES
(1, 'None', 'None', 0, 0, 0, 0, 0, 0);

You replace the the values in order to create your own item, the id have to be uniqe and after you have to make sql request.

Styles 07-07-2008 03:38

Re: CS Items 1.0
 
I didn't look through your php but, I do feel that you arn't using safe practices. The structure is bad. The class is good, but you should incldue it and create a style sheet and include it. You want to keep the main template low. You might be intrested in Smart Templates too.

Fry! 07-07-2008 07:41

Re: CS Items 1.0
 
This is very cool plugin/mod. =)

fyndler 07-12-2008 20:01

Re: CS Items 1.0
 
Wey man i tested the server and the website all works fine very cool +karma

One thing i dont get is the thing to make password i tryed csitems_password test in chat and console dident work :(


BTW how secure is the website index.php since people write their mysql pass into it and if its not so secure some people could get it and start remove everything in your database wich not is so fun if u got plenty off stuff

Maybe not even possible i dont know just wanted to know

JoshGomez 07-15-2008 08:16

Re: CS Items 1.0
 
You can only set the password in console, I don't know why it's not working for you but try use csitems_password "test".
The password is used to login on the website.

I am sure you wont be able to use the url address to hack the sql query.
There is also no global vars, I heard they are insecure so I did not use them.

I don't know but if there is a way to download the index.php then they could steal the sql password and the username.
To prevent the hacker from stealing everything from your database you should make a new user and password for only this plugin.

JoshGomez 07-17-2008 16:43

Re: CS Items 1.0/0.5
 
New Version

T3te 09-06-2008 14:37

Re: CS Items 1.2/0.6
 
Hi mans. The website announces the next error message:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at D:\Szerver\Web\htdocs\Domain\404\rank\csitems \index.php:17) in D:\Szerver\Web\htdocs\Domain\404\rank\csitems \index.php on line 159

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\Szerver\Web\htdocs\Domain\404\rank\csitems \index.php:17) in D:\Szerver\Web\htdocs\Domain\404\rank\csitems \index.php on line 159

Link:
http://87.229.24.164/rank/csitems/

Pls help me! :(

shadowski 11-18-2008 13:00

Re: CS Items 1.2/0.6
 
is this plugin still supported?

shadowski 11-22-2008 05:30

Re: CS Items 1.2/0.6
 
can anyone make lan version of this plugin?

shadowski 12-05-2008 17:22

Re: CS Items 1.2/0.6
 
i need someone to help me with this plugin.

shadowski 12-06-2008 06:10

Re: CS Items 1.2/0.6
 
BUMP, sorry for many double posting but please reply, i really really need this plugin to work

JoshGomez 09-08-2009 07:41

Re: CS Items 1.3/0.7 - 08/09/09
 
New version is out, I think all bugs are fixed.
You have to import the SQL structure and data again to get the plugin to work.


T3te if you try output the site from any template engine I think you get that error, I guess you have to use iframe or something to get to work.

JoshGomez 09-09-2009 14:15

Re: CS Items 1.4/0.8 - 09/09/2009
 
BUMP, new version!

eforie 09-13-2009 14:54

Re: CS Items 1.6/0.9 - 11/09/2009
 
hello,i don`t get money to buy items,i logged with my steam account on website,everything is o.k ,but i don`t get money.
appears 0 on money

JoshGomez 09-14-2009 08:52

Re: CS Items 1.6/0.9 - 11/09/2009
 
You have to sell items from the inventory to get money.

shadowski 10-29-2009 07:14

Re: CS Items 1.6/0.9 - 11/09/2009
 
nice, i like this plugin very much

yaotzin 10-29-2009 15:59

Re: CS Items 1.6/0.9 - 11/09/2009
 
IP not support?

JoshGomez 11-01-2009 18:17

Re: CS Items 1.6/0.9 - 11/09/2009
 
yaotzin, what do you mean?

Ashcan 02-01-2010 07:40

Re: CS Items 1.6/0.9 - 11/09/2009
 
still supported? have no idea whats wrong.

logs:
Code:

L 02/01/2010 - 13:37:56: [MySQL] Invalid database handle: 0
L 02/01/2010 - 13:37:56: [AMXX] Run time error 10 (plugin "csitems.amxx") (native "SQL_PrepareQuery") - debug not enabled!

anyway i have same error as T3te (2nd page) but i dont know what to do to get it working!

also passwords are not working.

p.s. please help :)

have this error on webpage:
Code:


Warning:  session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /usr/home/XXX/domains/XXX/public_html/cs/csitems/index.php:17) in /usr/home/XXX/domains/XXX/public_html/cs/csitems/index.php on line 159

Warning:  session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /usr/home/XXX/domains/XXX/public_html/cs/csitems/index.php:17) in /usr/home/XXX/domains/XXX/public_html/cs/csitems/index.php on line 159



Line 17:

Code:

        <style type="text/css">
Line 159

Code:

        session_start();
+plus:
nothing is happening in my database in table `players`

and when i try to login, i can't.

theres info:
Code:

Warning:  cannot modify header information - headers already sent by (output started at /usr/home/XXX/domains/XXX/public_html/cs/csitems/index.php:17) in /usr/home/XXX/domains/XXX/public_html/cs/csitems/index.php on line 1222
Line 1222:
Code:

                    setcookie("steamid", $authid, time()+3600*30);

crazyeffect 02-01-2010 12:14

Re: CS Items 1.6/0.9 - 11/09/2009
 
Please debug the plugin.

You have also checked your database settings and the tables? 'cause if they aren't right, the plugin won't work.

Ashcan 02-02-2010 04:15

Re: CS Items 1.6/0.9 - 11/09/2009
 
database settings are 100% right because i have second plugin (rememberthescore) to same database and its working.

debug:
error log:
Code:

L 02/02/2010 - 10:13:34: Start of error session.
L 02/02/2010 - 10:13:34: Info (map "de_torn") (file "addons/amxmodx/logs/error_20100202.log")
L 02/02/2010 - 10:13:34: [MySQL] Invalid database handle: 0
L 02/02/2010 - 10:13:34: [AMXX] Displaying debug trace (plugin "csitems.amxx")
L 02/02/2010 - 10:13:34: [AMXX] Run time error 10: native error (native "SQL_PrepareQuery")
L 02/02/2010 - 10:13:34: [AMXX]    [0] 49531.attach::menu_print_inventory (line 1533)
L 02/02/2010 - 10:13:34: [AMXX]    [1] 49531.attach::menu_handler_invtype (line 1154)


JoshGomez 02-04-2010 18:31

Re: CS Items 1.6/0.9 - 11/09/2009
 
Hmm, could you also tell me which version of amxmodx you are using? Because I don't encounter any error.

About the session problem I think it's because you use some kind of template or trying to output the file from a page which already are sent to the browser. Well I made the page very quickly and simple to just be used for the plugin which I regret now. :/

I will look into this on saturday.

JoshGomez 02-06-2010 11:56

Re: CS Items 1.7/1.0 - 02/06/2010
 
New Version Out!

The website problems should be solved and I still don't get any problems from the plugin however. Ashcan you may have a older AMX mod X.

Ashcan 02-07-2010 08:33

Re: CS Items 1.7/1.0 - 02/06/2010
 
i will try new version and will edit topic if i encounter any problems ;]

anyway i was using 1.8.1
;]

JoshGomez 02-07-2010 09:55

Re: CS Items 1.8/1.1 - 02/07/2010
 
Well, just now I uploaded newer version.

I hope it works for you. Be sure that all modules are also the same version such as mysql_amxx.dll.

Anyways my server is online if you want to see how it works.

JoshGomez 02-11-2010 09:43

Re: CS Items 1.9/1.2 - 02/11/2010
 
New Version Out!

shadowski 02-13-2010 04:34

Re: CS Items 1.9/1.2 - 02/11/2010
 
Superb!

Ashcan 02-19-2010 17:57

Re: CS Items 2.0/1.3 - 02/13/2010
 
make multilingual ? :)

Pote911 12-18-2010 09:36

Re: CS Items 2.0/1.3 - 02/13/2010
 
It works with war3ft?

eforie 12-22-2010 08:13

Re: CS Items 2.0/1.3 - 02/13/2010
 
i have problems with this plugin page.
look at my page
http://game.eforienett.ro/administra...s/?do=itemlist

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/kitzu/administrare/csitems/set-page.php on line 4
«« « » »»
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/kitzu/administrare/csitems/index.php on line 1277

what this mean?
no debug errors in server.

Fuhrer 06-01-2014 20:35

Re: CS Items 2.0/1.3 - 02/13/2010
 
is this plugin still work ? i am trying to view the page but i always fail. i am usnig xampp
someone help plz


All times are GMT -4. The time now is 00:54.

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