Raised This Month: $95 Target: $400
 23% 

Pitch Black Mode


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   BAILOPAN (72)
xmdxtremekiller
Member
Join Date: Mar 2004
Old 12-07-2004 , 00:35   Pitch Black Mode
Reply With Quote #1

Ive been wanting this plugin for a long time but since no one made it. I had to do something so I decided to do it myself. This plugin is actaully the first plugin i made. I ported a fair amount of plugins but that doesnt feel as good as making your own plugin.
So heres what it does, when you enable this plugin everything turns dark and the only thing you can use is a flashlight to find your enemy. And if you want advantage over others theres a price to pay 16000 for buying a Night Vision Goggle. Its a pretty fun plugin. Thanks to Freecode's NVG plugin I learnt how to change the light of the map and Ronkkrop for some help.
I have not tested the plugin yet but hopefully it will work. Please let me know if everythings running fine with the plugin. so ill make some final touches and im always open for suggestions to improve it.

Instructions:
CS Hack Module Needed!
Download here:
http://forums.alliedmods.net/showthread.php?t=8230
Its an approved module so theres no problem with it.
Extract the compressed zip file.
copy
cshack_amxx.dll,cshack_amxx_amd64.so,cshack_a mxx_i386.so files
to your amxx modules folder.
Then goto your configs folder and open modules.ini
add this line to the end of the file
cshack_amxx.dll <------windows users
cshack_amxx_i386.so <-------linux users
cshack_amxx_amd64.so <------amd 64 bit processor users
so you only need to add one of the lines based on what you have.
Now for compilling the plugin you should copy the include files of CS Hack module into your amxx/scripting include folder
then you can complie the plugin.
copy PitchBlack.amxx to your amxx plugin folder and add PitchBlack.amxx line into your plugins.ini file in the configs folder.
Finally the plugins installed.
When you run your server with the installed plugin in console type amx_pbmod 1 to enable the plugin and amx_pbmod 0 to disable the plugin.

I HOPE YOU LIKE IT
Attached Files
File Type: sma Get Plugin or Get Source (pitchblack.sma - 3697 views - 1.1 KB)
xmdxtremekiller is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 12-07-2004 , 03:10  
Reply With Quote #2

It's nice, but you never set the cost of the nightvision back. Use this code:

Code:
cs_set_item_cost(CsItems:CSI_NIGHTVISION, DEFAULT_COST_NIGHTVISION);
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
xmdxtremekiller
Member
Join Date: Mar 2004
Old 12-07-2004 , 16:54  
Reply With Quote #3

thx alot forgot about that UPDATED
xmdxtremekiller is offline
|[email protected]
New Member
Join Date: Dec 2004
Old 12-07-2004 , 18:07  
Reply With Quote #4

you copied my plugin :O

http://forums.alliedmods.net/showthread.php?t=8209

good work
__________________
|2y@n is offline
Send a message via AIM to |2y@n
xmdxtremekiller
Member
Join Date: Mar 2004
Old 12-07-2004 , 18:21  
Reply With Quote #5

First off you ripped your code off Freecode's Blind Fury Plugin without giving credit to him. you only removed the nvg part you didnt even bother to change anything until someone corrected you. http://forums.alliedmods.net/showthread.php?t=553
and i didnt even look at your code while coding this plugin so shut up. And the code I did get from Freecode i gave credit to him not like you. I had the idea of making this plugin a long time ago you can even see his thread go look at the date i posted my idea. and please do not post here i dont like starting a flame war for some in my plugin section.
Quote:
Originally Posted by XxAvalanchexX
Good, but a few coding tips:

Code:
#include <cstrike>
No Cstrike-specific functions are used, but this will give an error for those trying to compile with mods other than Counter-Strike.

Code:
register_event("ResetHUD","NewRound","be");
What is this for? There is no NewRound function, so this will generate a native error on plugin load.

Code:
    if (!cmd_access(id,level,cid,1))     {         return PLUGIN_HANDLED     }
The fourth paramater for cmd_access() is the number of arguments for your command, plus one. Since yours takes one argument (0 or 1), this should be a 2 instead of a 1. The plugin will then automatically show correct usage in console if the user doesn't fill out the parameter.

The last thing: 0 usually represents off or no, and 1 usually represents on or yes; but in this plugin 0 turns the lights on and 1 turns them off--this will confuse some users.
you had all those mistakes in your code which were all related to the nvg section you forgot to remove from Freecodes plugin and you had no idea what you were doing this post proves the you ripped everything from Freecode's plugin.
xmdxtremekiller is offline
plolp
New Member
Join Date: Mar 2004
Old 12-07-2004 , 18:50  
Reply With Quote #6

Nice plugin works great and no crashes yet.
PSmdxtremekiller dont be too hard on yourself we got your point on his thread.
plolp is offline
xmdxtremekiller
Member
Join Date: Mar 2004
Old 12-07-2004 , 19:17  
Reply With Quote #7

Thx for the feedback. lol thats not the prob its just he coming to me and tell me that i copied off his plugin pisses me off.
xmdxtremekiller is offline
AbSoluTe_Z3R0
Junior Member
Join Date: Dec 2004
Old 12-07-2004 , 23:57  
Reply With Quote #8

This plugin is just awesome with CSDM!!!!!!!!!!!!!!!!!!!!!!
AbSoluTe_Z3R0 is offline
xmdxtremekiller
Member
Join Date: Mar 2004
Old 12-08-2004 , 19:06  
Reply With Quote #9

wow thx for your feedbacks
xmdxtremekiller is offline
MeTaL69
Senior Member
Join Date: Jun 2004
Location: England
Old 12-17-2004 , 14:37  
Reply With Quote #10

Dosnt compile

Code:
Compilation aborted.
1 Error.
Could not locate output file /home/users/amxmodx/public_html/websc/phpcJUwjd.amx (compile failed).
__________________
We own alll ya asses ;)
MeTaL69 is offline
Reply


Thread Tools
Display Modes

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 14:26.


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