AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Need Test (https://forums.alliedmods.net/showthread.php?t=48546)

SAMURAI16 12-14-2006 05:19

Need Test
 
1 Attachment(s)
Hi, i maked an plugin an i need an test to see if works

Plugin details :
Code:

/* Mutant's Laboratory AMX MOD X Plugin

* Author : SAMURAI
* Version : 0.1

* Details : Somewhere in Norikura Mountains exists an secret Laboratory .
  There human's are transformed into creatures .
  Available creatures :
  - Ant
  - Bigger Homar
  - Black Chicken
  - Gorg Zilla
  - Normal Homar
  - Huge Spider
  - Black Chicken
 
* CVARS :

 <> <> ANT : <> <>
ant_hp (default 120)
ant_armor (default 100)
ant_speed (default 450.0)
ant_gravity (default 600)
ant_footsteps (default 1)


 <> <> Bigger Homar : <> <>
bhomar_hp (default 150)
bhomar_armor (default 105)
bhomar_speed (default 400.0)
bhomar_gravity (default 700)
bhomar_footsteps (default 0)


 <> <> Black Chicken : <> <>
bchicken_hp (default 180)
bchicken_armor (default 120)
bchicken_speed (default 490.0)
bchicken_gravity (default 560)
bchicken_footsteps (default 1)


 <> <> Gorg Zilla : <> <>
gorgzilla_hp (default 250)
gorgzilla_armor (default 200)
gorgzilla_speed (default 420.0)
gorgzilla_gravity (default 750)
gorgzilla_footsteps (default 1)

 
 <> <> Huge Spider : <> <>
hspider_hp (default 220)
hspider_armor (default 200)
hspider_speed (default 520.0)
hspider_gravity (default 500)
hspider_footsteps (default 1)


 <> <> White Chicken : <> <>
wchikcen_hp (default 120)
wchikcen_armor (default 100)
wchikcen_speed (default 380.0)
wchikcen_gravity (default 600)
wchikcen_footsteps (default 1)


* ADMIN Commands
amx_ant<name or #userid @CT/@T/@ALL> - Transform player(s) into a ant(s)
amx_bhomar <name or #userid @CT/@T/@ALL> - Transform player(s) into an bigger homar(s)
amx_bchicken <name or #userid @CT/@T/@ALL> - Transform player(s) into black chicken(s)
amx_gorgzilla <name or #userid @CT/@T/@ALL - Transform player(s) into gorgzilla(s)
amx_hoamr <name or #userid @CT/@T/@ALL> - Transform player(s) into a homar(s)
amx_hspider <name or #userid @CT/@T/@ALL> - Transform player(s) into huge spider(s)
amx_human <name or #userid @CT/@T/@ALL> - Transform player(s) into human(s)
 
 
 ! Admins must have "BAN_ACCES" on acces for use this commands !
 
 
* Client Commands
 
   
/antme -> You will be transform into a ant
antme -> You will be transform into a ant

/bhomarme -> You will be transform into an bigger homar
bhomarme -> You will be transform into an bigger homar
 
/bchickenme -> You will be transform into a black chicken
bchickenme -> You will be transform into a black chicken

/gorgzillame -> You will be transorm into gorgzilla
gorgzillame -> You will be transorm into gorgzilla

/hspiderme -> You will be transform into an huge spider
hspiderme -> You will be transform into an huge spider

/wchickenme -> You will be transform into an white chicken
wchickenme -> You will be transform into an white chicken
 
/humanme -> You will be transform into human
humanme -> You will be transform into human
 
 ! Use this commands on "chat" !
  No admin acces required !
 
* Gorgzilla model from OneEyed's plugin
* Thanks to jym_yang for helped on concmd with @CT/@T/@ALL
   

*
*/

Thanks

dutchmeat 12-14-2006 05:25

Re: Need Test
 
This should be in the 'New Plugin Submissions ' part of the forum:

http://forums.alliedmods.net/forumdisplay.php?f=26

SAMURAI16 12-14-2006 05:27

Re: Need Test
 
i can post if is plugin are not tested ? sorry i'm new here

dutchmeat 12-14-2006 05:58

Re: Need Test
 
Well actually you should test it yourself, in a server with some friends, we can't do that for you... But after it's tested, you can post it in that section

SAMURAI16 12-14-2006 06:58

Re: Need Test
 
i dont have resources to test this plugin
If somebody had time to test it ...

dutchmeat 12-14-2006 07:17

Re: Need Test
 
Which game is this plugin meant for ?
Or can i use it on all games?
I'm going to test it this afternoon

SAMURAI16 12-14-2006 08:08

Re: Need Test
 
Is for counter-strike 1.6 ; should work's for CZ

dutchmeat 12-14-2006 10:02

Re: Need Test
 
If you get any problems in the future, you should change '#define antmodel' to 'new antmodel'.
Sometimes 'Define' causes problems (own expierence...)
But if it works for now, use it :)

SAMURAI16 12-14-2006 10:04

Re: Need Test
 
so it's works ?

slmclarengt 12-14-2006 19:45

Re: Need Test
 
I have a lot to say about this plugin:

1) I don't think it's right to use
Code:
 register_event("ResetHUD", <function>, "b")
multiple times. I think it would be better to
Code:
register_event("ResetHUD", one_function, "b")
once but inside use variables and if statements to check for a certain race (ant, homar, etc...).
2) I think the best implementation would be whenever a user/admin called "makeant", it would initialize an array with indexes of player id's, then in the ResetHUD event, it would check to see what race the player was and implement code with that in consideration.
3) When using define, it is customary to make the defined word upper-case.
4) Try to keep indenting more default - do not indent random parts more than others - it will only result in warnings/errors.

Good luck with this!

Slmclarengt


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

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