AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   some things (https://forums.alliedmods.net/showthread.php?t=124733)

omgitsme 04-20-2010 07:29

some things
 
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 04-20-2010 15:16

Re: some things
 
phpmyadmin - done. i did'nt know you had to install it in your server and how. i just really need the first one!

atom0s 04-20-2010 18:28

Re: some things
 
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.

omgitsme 04-21-2010 05:55

Re: some things
 
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.

Shinitenshi 04-21-2010 10:51

Re: some things
 
Something like spawn protection?

Shinitenshi 04-21-2010 10:55

Re: some things
 
Something like spawn protection?

------
sry browser bugged :P

atom0s 04-21-2010 12:20

Re: some things
 
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.

omgitsme 04-21-2010 12:52

Re: some things
 
sorry, where do i put this? and how does it work?

atom0s 04-21-2010 18:43

Re: some things
 
Quote:

Originally Posted by omgitsme (Post 1156581)
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.

Afronanny 04-21-2010 22:51

Re: some things
 
Quote:

Originally Posted by atom0s (Post 1156861)
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.


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

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