Raised This Month: $12 Target: $400
 3% 

Realistic Leg Pain v1.5


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff       
Xevious
Senior Member
Join Date: Sep 2009
Location: Computer Chair
Old 10-13-2009 , 09:16   Realistic Leg Pain v1.5
Reply With Quote #1

Plugin Name : Realistic Leg Pain
Plugin's Version : 1.8
Plugin's Old Version : 1.0

PHP Code:
[Includes]
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fakemeta>
#include <fun> 
PHP Code:
[Plugin's descriptions]
-There was 50% Injure and 50% Avoid
-If a player which shoted you at Left leg or Right leg, you will walk slowly. 
PHP Code:
[Credit]
ot_207 Helped me from coding.
Xellath Helped me change the better plugin's name. 
PHP Code:
If you don't know what i am coding please PM me and i will explain to you.:):) 
Attached Files
File Type: sma Get Plugin or Get Source (rlp.sma - 819 views - 1.9 KB)
__________________
Nothing possible when you are not hardworking

Last edited by Xevious; 10-18-2009 at 20:47.
Xevious is offline
Send a message via MSN to Xevious
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-13-2009 , 09:52   Re: My Legs Is PAIN!!!
Reply With Quote #2

Suck.

RoundStart event doesnt pass the player id, loop trough all players to reset it.. and why you're setting maxspeed to 320 ?
By the way, player's gravity and speed should be resetted on new round, so there shouldnt be any problem

PHP Code:
        if(random_num(0,100) <= 50)
        {
            
// Bingo from xPaw
        

__________________
xPaw is offline
Redfalcon
BANNED
Join Date: Sep 2009
Location: Prison Break
Old 10-13-2009 , 09:53   Re: My Legs Is PAIN!!!
Reply With Quote #3

I think this plugin don't will be used on any servers at all.

EDIT: You should give ot_207 credits for it! because he helped you with the code....

Last edited by Redfalcon; 10-13-2009 at 10:05.
Redfalcon is offline
Send a message via MSN to Redfalcon
Kabuto
Senior Member
Join Date: Apr 2009
Location: Lithuania
Old 10-13-2009 , 10:01   Re: My Legs Is PAIN!!!
Reply With Quote #4

Please screenshot!
Kabuto is offline
Send a message via Skype™ to Kabuto
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 10-13-2009 , 10:12   Re: My Legs Is PAIN!!!
Reply With Quote #5

Quote:
Originally Posted by Kabuto View Post
Please screenshot!
The screenshot will look as normal CS. You can't notice how fast you walk in screenshot.
__________________
hleV is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 10-13-2009 , 10:38   Re: My Legs Is PAIN!!!
Reply With Quote #6

Some things you could/should do in the code:
- You have instructions left that do nothing at all.
- Set a global variable so you can prevent the message being shown multiple times.
- You use hamsandwich. Register Ham_Spawn instead of RoundStart.
- Use HIT_LEFTLEG <= get_tr2(ptr, TR_iHitgroup) <= HIT_RIGHTLEG so you don't need to retrieve the tr result twice.
- I believe you should check for valid attacker/victiim first using 1 <= attacker <= maxslots.
__________________
In Flames we trust!
Nextra is offline
sexiest
Junior Member
Join Date: Oct 2009
Location: Ukraine, Kiev
Old 10-13-2009 , 10:44   Re: My Legs Is PAIN!!!
Reply With Quote #7

Quote:
Originally Posted by Redfalcon View Post
I think this plugin don't will be used on any servers at all.

EDIT: You should give ot_207 credits for it! because he helped you with the code....
mb for realistic servers...
__________________


Sorry me my poor English
sexiest is offline
Send a message via ICQ to sexiest Send a message via AIM to sexiest Send a message via Skype™ to sexiest
Old 10-13-2009, 13:47
ConnorMcLeod
This message has been deleted by ConnorMcLeod. Reason: why bothering ?
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 10-14-2009 , 05:45   Re: My Legs Is PAIN!!!
Reply With Quote #8

This plugin will be unapproved because of this major mistake!

PHP Code:
        if(random_num(0,100) <= 50)
        {

        } 
With this reason:

Quote:
Originally Posted by Exolent[jNr] View Post
Based on the code and the posts in this topic, I doubt your ability to maintain this, or even get it to work properly on your own.
You should first try modifying other plugins and after that read these tutorials before starting to script an actual plugin:
http://forums.alliedmods.net/showthread.php?t=85274
http://forums.alliedmods.net/showthread.php?t=91207
http://forums.alliedmods.net/showthread.php?t=94381
http://forums.alliedmods.net/showthread.php?t=87810

Until you can understand what you are doing no plugin will bypass the approval border.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
floatman
Senior Member
Join Date: Oct 2009
Location: nowhere.
Old 10-14-2009 , 13:43   Re: My Legs Is PAIN!!!
Reply With Quote #9

1.
PHP Code:
#include <fakemeta_util> 
Don't use fakemeta_util stocks, use fun, etc.
__________________

floatman is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-14-2009 , 13:46   Re: My Legs Is PAIN!!!
Reply With Quote #10

Add falldamage detection.

Answer to your PM (read my sig ty) :

if (bitdamage & DMG_FALL)
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 10-15-2009 at 10:29.
ConnorMcLeod is offline
Reply



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 04:28.


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