You are not logged in.

Dear visitor, welcome to sourceserver.info. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

  • "shuksieno123" started this thread

Posts: 105

wcf.user.option.userOption53: Nein

  • Send private message

1

Saturday, January 2nd 2016, 8:57pm

No knife damage plugin

hallo,

das plugin von bara das wenn man knifet keine hp verliert ist leider offline der link

hätte jemand das plugin das man kein knife schaden mehr kriegt :)

ich hoffe ihr versteht was ich meine danke :)

Bara

Professional

Posts: 834

wcf.user.option.userOption53: Ja

  • Send private message

2

Sunday, January 3rd 2016, 1:03am

Spoiler Spoiler

PHP Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#pragma semicolon 1

#include <sourcemod>
#include <sdkhooks>

#pragma newdecls required

public Plugin myinfo = 
{
    name "No Knife Damage",
    author "Bara", 
    description "", 
    version "1.0.0", 
    url "git.tf/Bara"
}

public void OnPluginStart()
{
    for(int i 1<= MaxClientsi++)
        if(IsClientInGame(i))
            SDKHook(iSDKHook_TraceAttackOnTraceAttack);
}

public void OnClientPutInServer(int client)
{
    SDKHook(clientSDKHook_TraceAttackOnTraceAttack);
}

public Action OnTraceAttack(int victimint &attackerint &inflictorfloat &damageint &damagetypeint &ammotypeint hitboxint hitgroup)
{
    if(IsClientInGame(attacker))
    {
        char sWeapon[32];
        GetClientWeapon(attackersWeaponsizeof(sWeapon));
        if(StrContains(sWeapon"knife"false) != -|| StrContains(sWeapon"bayonet"false) != -1)
            return Plugin_Handled;
    }
    
    return Plugin_Continue;
}

This post has been edited 2 times, last edit by "Bara" (Jan 13th 2016, 4:51pm)


  • "shuksieno123" started this thread

Posts: 105

wcf.user.option.userOption53: Nein

  • Send private message

3

Sunday, January 3rd 2016, 1:21am

wenn ichs kompilieren will tritt immer ein fehler auf

/groups/sourcemod/upload_tmp/textJahRKo.sp(20) : error 017: undefined symbol "IsClientValid"

1 Error.

Bara

Professional

Posts: 834

wcf.user.option.userOption53: Ja

  • Send private message

4

Sunday, January 3rd 2016, 1:45am

IsClientValid -> IsClientInGame sollte schon reichen

  • "shuksieno123" started this thread

Posts: 105

wcf.user.option.userOption53: Nein

  • Send private message

5

Sunday, January 3rd 2016, 2:17am

Danke ;) ging

Similar threads

Used tags

damage, noknife