AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Hardcore v1.1 Beta (https://forums.alliedmods.net/showthread.php?t=220139)

IRANeverMore 07-07-2013 12:47

Hardcore v1.1 Beta
 
1 Attachment(s)
Description

This plugin simply make the game more breathtaking ! :D

When the plugin is enabled all players get health regeneration by the time (1 Health/0.3 sec)
Also,
When a player loose Health, he also loose a little of his move speed (Speed will return when they regen their hp)


Installation

enter amx_hardcore 1 in console to Enable and amx_hardcore 0 to disable the plugin

Changelog

v1.0 - Initial release
v1.1 - Fixed all bugs


guipatinador 07-07-2013 13:21

Re: Hardcore v1.0 Beta
 
PHP Code:

for(new i=0;i<=32;i++) 

noob.


Poorly coded, irredundant plugin.

Kia 07-07-2013 13:26

Re: Hardcore v1.0 Beta
 
You should use PCVars instead of CVars, also you should made a looping task instead of making a new task each time the old task is done.

Code:

for(new i=0;i<=32;i++)
You should use get_players instead

Code:

is_user_connected(i) && is_user_alive(i)
You only need to check if he's alive.

Code:

set_user_maxspeed(i,290.0)
Speed will be overwritten at weapon change, you should also change it on CurWeapon Event.

tonykaram1993 07-07-2013 13:27

Re: Hardcore v1.0 Beta
 
This plugin has so many mistake, and will never be approved in my opinion. You should have learned a little bit more before releasing plugins.

Post in Scripting Help to get some help about perfecting this plugin.

Arkshine 07-07-2013 14:18

Re: Hardcore v1.0 Beta
 
No, no and no. Please don't release again something until you know really what you're doing.

Unapproved.

IRANeverMore 07-07-2013 14:42

Re: Hardcore v1.0 Beta
 
I updated the plugin

Now I'm using PCVars instead of CVars
Using get_players instead of searching for players in loop
unnecessary is_user_connected's removed
now there is just 2 looping tasks instead of creating a new task after the old task is done
and now I'm hooking the CurWeapon event to fix the speed bug when users shoots or change their weapon
Finished :| and thanks to all guys for their reports
P.S: DOT NOT PUNISH ME DEAR PLUGIN APPROVER :d I'm just a C++ coder and not a pawn coder and this was my first amxmodx plugin that i have created in 1 hour

Arkshine 07-07-2013 14:52

Re: Hardcore v1.1 Beta
 
I don't "punish" you. But please understand if you release something here, you are supposed to know how to code.
If you want to learn, go to scripting section, and ask people their thoughts on your plugin.
Right now, plugin is very poorly coded, it's clear you are beginner in pawn, without speaking you're releasing something redundant and which has been released in more complete plugin. You did not even search before.
That's why, take your time to learn before releasing something.

1ka 07-08-2013 08:25

Re: Hardcore v1.1 Beta
 
I am sure that you play dota 2 :)

health regeneration
move speed
Speed regen hp

:D

IRANeverMore 07-08-2013 12:18

Re: Hardcore v1.1 Beta
 
Quote:

Originally Posted by 1ka (Post 1986151)
I am sure that you play dota 2 :)

health regeneration
move speed
Speed regen hp

:D

Of course that i play :D
Steam Username : IRANeverMore

Jhob94 07-09-2013 19:19

Re: Hardcore v1.0 Beta
 
Quote:

Originally Posted by IRANeverMore (Post 1985625)
I updated the plugin

Now I'm using PCVars instead of CVars

Ok that is good, but isnt a big matter using normal cvar....

Quote:

Originally Posted by IRANeverMore (Post 1985625)
Using get_players instead of searching for players in loop
unnecessary is_user_connected's removed

This proved that if plugin has quality to be approved, that you not author :3

Quote:

Originally Posted by IRANeverMore (Post 1985625)
P.S: DOT NOT PUNISH ME DEAR PLUGIN APPROVER :d I'm just a C++ coder and not a pawn coder and this was my first amxmodx plugin that i have created in 1 hour

Is your first plugin (1hour to this is to much), why you realeased it? That can make people that is starting at PAWN (as you) get confused and make mistakes reading your code...

Btw about the code you should make lot of optimizations, like use ham for set speeds, make speeds controled by cvars, etc etc


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

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