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

SDK Hooks 2.1 - Updated 2011-9-10


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Mister_Magotchi
SourceMod Donor
Join Date: Dec 2006
Location: Nampa, Idaho
Old 04-18-2011 , 01:19   Re: SDK Hooks 2.0
#1311

Thanks as always, psychonic.
Mister_Magotchi is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 04-18-2011 , 05:58   Re: SDK Hooks 2.0
#1312

Hello,

I updated my server on Sourcemod 1.3.7 Hooks and SDK but it does not appear in the list of extensions ...

Quote:
sm exts list
[SM] Displaying 12 extensions:
[01] Automatic Updater (1.3.7): Updates SourceMod gamedata files
[02] Webternet (1.3.7): Extension for interacting with URLs
[03] [CS:S]Name Change (0.0.1): Adds ability to CS:S for name changes from server
[04] BinTools (1.3.7-dev): Low-level C/C++ Calling API
[05] CS:S Tools (1.3.7): CS:S extended functionality
[06] Client Preferences (1.3.7): Saves client preference settings
[07] SQLite (1.3.7): SQLite Driver
[08] SDK Tools (1.3.7): Source SDK Tools
[09] Top Menus (1.3.7): Creates sorted nested menus
[10] GeoIP (1.3.7): Geographical IP information
[11] Regex (1.3.7): Provides regex natives for plugins
[12] MySQL-DBI (1.3.7): MySQL driver implementation for DBI
Quote:
sm plugins list
13:15:14 [SM] Listing 27 plugins:
01 "Client Preferences" (1.3.7) by AlliedModders LLC
02 "Basic Chat" (1.3.7) by AlliedModders LLC
03 "Admin File Reader" (1.3.7) by AlliedModders LLC
04 "Admin Help" (1.3.7) by AlliedModders LLC
05 "Anti-Reconnect" (1.1.5) by exvel
06 "Weapon Restrict" (2.3.4) by Dr!fter
07 "Fun Commands" (1.3.7) by AlliedModders LLC
08 "Rename2" (1.0) by Kyle Sanderson, AlliedModders LLC
09 "Basic Comm Control" (1.3.7) by AlliedModders LLC
10 "Player Commands" (1.3.7) by AlliedModders LLC
11 "Advertisements" (0.5.5) by Tsunami
12 "Basic Commands" (1.3.7) by AlliedModders LLC
13 "HLstatsX CE Ingame Plugin" (1.6.13) by psychonic
14 "Reserved Slots" (1.3.7) by AlliedModders LLC
15 "Basic Info Triggers" (1.3.7) by AlliedModders LLC
16 "Anti-Flood" (1.3.7) by AlliedModders LLC
17 "Basic Votes" (1.3.7) by AlliedModders LLC
18 "Nextmap" (1.3.7) by AlliedModders LLC
19 "Team Bets" (2.6) by GrimReaper - Original by ferret
20 "Quake Sounds" (1. by dalto
21 "Advanced admin commands" (0.16) by 3sigma
22 "IP Chat Block" (1.4) by SuperRaWR
23 "SourceBans" (1.4. by SourceBans Development Team
24 "Sound Commands" (1.3.7) by AlliedModders LLC
25 "Country Filter 2nd Edition" (2.0.3) by Knagg0, further processed Bacardi
26 "Admin Menu" (1.3.7) by AlliedModders LLC
27 "Fun Votes" (1.3.7) by AlliedModders LLC
No error in the log file

Thanks for help


edit:
I am forced to type: sm exts load sdkhooks if it does not load at server startup ....

Last edited by eric0279; 04-18-2011 at 06:09.
eric0279 is offline
Mister_Magotchi
SourceMod Donor
Join Date: Dec 2006
Location: Nampa, Idaho
Old 04-18-2011 , 06:06   Re: SDK Hooks 2.0
#1313

eric: Which of those plugins uses SDK Hooks? SDK Hooks won't load unless a plugin needs it.
Mister_Magotchi is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 04-18-2011 , 07:32   Re: SDK Hooks 2.0
#1314

Quote:
Originally Posted by psychonic View Post
Not only is this now fixed in my repository, but with BAILOPAN's help, I've modified SM's gamedata updater to automatically download gamedata updates for SDK Hooks (and possibly other third-party plugins/extensions in the future once we get a better system in place).
Great to see this on the auto-updater
GoD-Tony is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 04-18-2011 , 07:51   Re: SDK Hooks 2.0
#1315

Quote:
Originally Posted by Mister_Magotchi View Post
eric: Which of those plugins uses SDK Hooks? SDK Hooks won't load unless a plugin needs it.

I check... wait please...
eric0279 is offline
dataviruset
AlliedModders Donor
Join Date: Feb 2009
Location: Hong Kong
Old 04-18-2011 , 08:02   Re: SDK Hooks 2.0
#1316

psychonic, please stop being so awesome
dataviruset is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 04-18-2011 , 09:42   Re: SDK Hooks 2.0
#1317

I don't think he knows how to be anything other than awesome haha.
__________________
thetwistedpanda is offline
Nail
BANNED
Join Date: May 2008
Location: PetrovЪ GradЪ
Old 04-19-2011 , 13:03   Re: SDK Hooks 2.0
#1318

Help solve the problem please

PHP Code:
...
public 
OnClientPutInServer(client)
{
  
SDKHook(clientSDKHook_OnTakeDamageOnTakeDamage);
}
...
public 
Action:OnTakeDamage(client, &attacker, &inflictor, &Float:damage, &damagetype)
{
    if (
damagetype && DMG_BLAST)
    {
        if (
GetClientTeam(client) == 3)
        {
            
decl String:clientname[42];
            
decl String:exp_iName[128];
            
GetClientName(clientclientnameMAX_NAME_LENGTH );
            
Format(exp_iNamesizeof(exp_iName), "CT_DMG_BLAST %s"clientname);
            
PrintToChatAll(exp_iName);
            return 
Plugin_Stop;
        }
    }
    return 
Plugin_Continue;

Operating normally and when explode env_explosion, CT-players remain alive. But for the next round, some players become immortal. when the T-player touches the CT-player with a knife, no damage.
And PrintToChatAll (exp_iName); not displayed - This means that the return Plugin_Stop; should not be.
Why do players become immortal?
Maybe after return Plugin_Stop; need to add unhook and again hook?

Last edited by Nail; 04-19-2011 at 13:10.
Nail is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 04-19-2011 , 16:42   Re: SDK Hooks 2.0
#1319

PHP Code:
if (damagetype && DMG_BLAST
is always true. It should be:
PHP Code:
if (damagetype DMG_BLAST
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
G2KV
BANNED
Join Date: Dec 2010
Old 04-20-2011 , 18:57   Re: SDK Hooks 2.0
#1320

Quote:
Originally Posted by eric0279 View Post
I check... wait please...
he is right ,the sdk hooks doesnt work for me also ... is not loading the ZR plugin and the grenade pack


so there is a problem on sm 1.3.7

can you have a look please ?
G2KV is offline
Closed Thread


Thread Tools
Display Modes

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 05:49.


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