Raised This Month: $ Target: $400
 0% 

some things


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
omgitsme
Veteran Member
Join Date: Mar 2010
Old 04-20-2010 , 07:29   some things
Reply With Quote #1

i need some help
1. i need to find a plugin, that allows people to not die in the area... on my surf_ski_2 server the rules are no mario kill. no admin = mario killing. so like i'd wanna put it in the mario, so no one can kill anyone.
2. i wanna install server redirect into my servers. but i heard you need phpmyadmin and mysql. i was looking for a hour on how to install it, and how to use it. and it doesnt work. does anyone have a fucking awsome tut on it?
3. how easy/hard is it to install stuff like sourcebans/ranks/server redirect in phpmyadmin? thanks
__________________
omgitsme is offline
Send a message via Skype™ to omgitsme
omgitsme
Veteran Member
Join Date: Mar 2010
Old 04-20-2010 , 15:16   Re: some things
Reply With Quote #2

phpmyadmin - done. i did'nt know you had to install it in your server and how. i just really need the first one!
__________________
omgitsme is offline
Send a message via Skype™ to omgitsme
atom0s
Senior Member
Join Date: Jul 2009
Old 04-20-2010 , 18:28   Re: some things
Reply With Quote #3

What do you mean by not being able to kill anyone? Is the surfing map specifically just to show off/skill surf? Or is it still a deathmatch style server?

Not really sure what you mean by 'mario' in your post.
atom0s is offline
omgitsme
Veteran Member
Join Date: Mar 2010
Old 04-21-2010 , 05:55   Re: some things
Reply With Quote #4

ok, so like mario is a buy zone room. where you can buy guns. rules are no mario kill, so if theres no admin n the server. people kill in mario. i'd wanna make it so you can't kill in mario.
__________________
omgitsme is offline
Send a message via Skype™ to omgitsme
Shinitenshi
Junior Member
Join Date: Sep 2007
Old 04-21-2010 , 10:51   Re: some things
Reply With Quote #5

Something like spawn protection?
Shinitenshi is offline
Shinitenshi
Junior Member
Join Date: Sep 2007
Old 04-21-2010 , 10:55   Re: some things
Reply With Quote #6

Something like spawn protection?

------
sry browser bugged
Shinitenshi is offline
atom0s
Senior Member
Join Date: Jul 2009
Old 04-21-2010 , 12:20   Re: some things
Reply With Quote #7

I'm not fully sure if you can block damage easily with a basic hook on something like player_hurt without having to do some storage of health before/after events and such. I've tried before and couldn't seem to overwrite the event data.

However you can detect if someones in a buy zone by using something like this:

PHP Code:
    // Storage Variable
    
new g_PlayerInBuyZone;

    
// Obtain Buy Zone Offset
    
g_PlayerInBuyZone FindSendPropOffs"CCSPlayer""m_bInBuyZone" );
    if( 
g_PlayerInBuyZone == -)
    {
        
SetFailState"Unable to obtain offset for CCSPlayer::m_bInBuyZone" );
    }

    
// Check Entity
    
new bInBuyZone GetEntDataclientg_PlayerInBuyZone ); 
Those are bits from an older plugin I wrote a while back for something else. But thats how you can tell if a client is in a buy zone or not.
atom0s is offline
omgitsme
Veteran Member
Join Date: Mar 2010
Old 04-21-2010 , 12:52   Re: some things
Reply With Quote #8

sorry, where do i put this? and how does it work?
__________________
omgitsme is offline
Send a message via Skype™ to omgitsme
atom0s
Senior Member
Join Date: Jul 2009
Old 04-21-2010 , 18:43   Re: some things
Reply With Quote #9

Quote:
Originally Posted by omgitsme View Post
sorry, where do i put this? and how does it work?
That was just an example of detecting if a player is in a buy zone, it isn't a full plugin or anything. As I said in my above post, I am not sure how to 'properly' block damage from occurring. I've tried overwriting the event data but doesn't seem to do anything.
atom0s is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 04-21-2010 , 22:51   Re: some things
Reply With Quote #10

Quote:
Originally Posted by atom0s View Post
That was just an example of detecting if a player is in a buy zone, it isn't a full plugin or anything. As I said in my above post, I am not sure how to 'properly' block damage from occurring. I've tried overwriting the event data but doesn't seem to do anything.
You should use SDKHooks' OnTakeDamage hook to block damage from occuring.
Afronanny 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 20:44.


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