AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Looking for some testers (https://forums.alliedmods.net/showthread.php?t=40798)

Zenith77 07-03-2006 21:20

Looking for some testers
 
5 Attachment(s)
This may/may not be the right place, but oh well.

Basically I don't have internet, and I need someone to test these plugins that have been sitting on my computer for like half a year.

Everything is explained at the top of each source file (.sma).

Thank you.

jtp10181 07-03-2006 21:34

Re: Looking for some testers
 
so... how did you post this? and you dont need internet to test plugins, setup a server on your own comp and use steam in offline mode to play on it.

Hawk552 07-03-2006 21:54

Re: Looking for some testers
 
Quote:

Originally Posted by jtp10181
so... how did you post this? and you dont need internet to test plugins, setup a server on your own comp and use steam in offline mode to play on it.

Why don't you read what it does? This kinda requires another person on the other end, you can't really test it on yourself.

jtp10181 07-03-2006 22:42

Re: Looking for some testers
 
mmmm bots

Hawk552 07-04-2006 09:34

Re: Looking for some testers
 
Quote:

Originally Posted by jtp10181
mmmm bots

You think bots can intelligently reply to whether or not they want to join a clan?

Zenith77 07-04-2006 10:42

Re: Looking for some testers
 
jtp, I am not a complete noob. I would have already gone in offline mode if I could. But everytime I try to, it says "Sorry, could not connect to the steam network", even though I am going in offline mode?! Then, if you drag that window away there is a another error message saying, "Sorry, that action can not be completed in offline mode!". Peice of crap uh.'

As for how I got the files on here, well its really not that hard. The library (well thats how I usually do it, but I'm actually at my aunt's house visiting for two weeks).

Zenith77 07-05-2006 11:36

Re: Looking for some testers
 
Ok thank you, I'll look into the problem and see if I can fix the problem.

Zenith77 07-05-2006 21:06

Re: Looking for some testers
 
Show me the code

Zenith77 07-05-2006 22:05

Re: Looking for some testers
 
Ok usually I would tell people whats wrong with there script and what not, but I'm too tired, and there where way too many errors. Just compare my code with yours. Plus, I don't know how to hook grenade events. I know one method involves hooking a sound event and the using get_grenade_id(), but I forget how. I fixed all the obvious errors, but there is bound to be more, and I'm just too tired to go on. I placed comments where some code belongs and some doesn't. Also, this code can not be compiled or tested, its more of a draft if anything, with previous errors fixed.

Hope I helped.

Code:
#include <amxmodx> #include <amxmisc> #include <fun> //Fakemeta natives are not used anywhere here :/ #define PLUGIN "SMOKE PUNISH" #define VERSION "1.0" #define AUTHOR "RapHero2000" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_cvar("amx_smoke", "1")     //turns the plugin on and off     register_cvar("amx_smoke_hp", "101")    //sets the amount of hp is takin when a player throws smoke nade         // Place Grenade Event here...         } public GrenadeEvent()  {     if(get_cvar _num ("amx_smoke") == 0)      return  PLUGIN_HANDLED    new id = read_data(1); // Don't know if this is right    // get grenade id here, then check to see if its a smoke, if not return plugin_handled (or 0)     new healthToTake = get_cvar_num("amx_smoke_hp");         set_user_health(id, (get_user_health(id) - healthToTake));       explode(id) } // This doesn't need to be public, since the core doesn't do anything with it. explode(player_slay) {         message_begin( MSG_ALL,SVC_TEMPENTITY)     write_byte( 21 )     write_coord(vec1[0])     write_coord(vec1[1])     write_coord(vec1[2] + 16)     write_coord(vec1[0])     write_coord(vec1[1])     write_coord(vec1[2] + 1936)     write_short( white )     write_byte( 0 ) // startframe     write_byte( 0 ) // framerate     write_byte( 2 ) // life     write_byte( 16 ) // width     write_byte( 0 ) // noise     write_byte( 188 ) // r     write_byte( 220 ) // g     write_byte( 255 ) // b     write_byte( 255 ) //brightness     write_byte( 0 ) // speed     message_end()     //Explosion2     message_begin( MSG_ALL,SVC_TEMPENTITY)     write_byte( 12 )     write_coord(vec1[0])     write_coord(vec1[1])     write_coord(vec1[2])     write_byte( 188 ) // byte (scale in 0.1's)     write_byte( 10 ) // byte (framerate)     message_end()     //Smoke     message_begin( MSG_ALL,SVC_TEMPENTITY)     write_byte( 5 )     write_coord(vec1[0])     write_coord(vec1[1])     write_coord(vec1[2])     write_short(smoke)     write_byte(2)         write_byte(10)         message_end()     user_kill(player_slay,1)     return PLUGIN_HANDLED }

Zenith77 07-06-2006 17:33

Re: Looking for some testers
 
Why did you change the code? You made it worse lol (no offense).
Plus, I already stated that this was just a draft, and could not be tested because the grenade portion of the code isn't filled in.

Also, by your coding, I recommend you read some more tutorials, it looks to me has if you don't understand the preprocessor and its purpose, or whats going on in your code. Please don't take this post in a rude way, I was doing the same exact the thing you are now when I was begining :)

If you have anymore questions PM me, so this topic gets back on track.


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

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