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.

sdNy

Beginner

  • "sdNy" started this thread

Posts: 8

wcf.user.option.userOption53: Nein

  • Send private message

1

Tuesday, January 12th 2016, 4:52pm

Der Deagle keine Munition geben

Hallo Com,
habe eine wichtige frage, wie kann ich der Deagle keine Munition hinzufügen ?

Posts: 2,498

Location: Schwelm

Occupation: Immobilien-Verwalter / Serveradministrator

wcf.user.option.userOption53: Nein

  • Send private message

2

Wednesday, January 13th 2016, 2:39pm

Gibt´s bei GO ein Weapon Restrict Plugin?

Wenn ja, verbiet die Deagle und fertig. Nich immer so kompliziert denken.

Bara

Professional

Posts: 834

wcf.user.option.userOption53: Ja

  • Send private message

3

Wednesday, January 13th 2016, 4:50pm

[CS:GO] [Suche] NoKnifeDamage

Ansonsten versuch die Version von No Knife Damage:

Spoiler Spoiler


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; i <= MaxClients; i++)
        if(IsClientInGame(i))
            SDKHook(i, SDKHook_TraceAttack, OnTraceAttack);
}

public void OnClientPutInServer(int client)
{
    SDKHook(client, SDKHook_TraceAttack, OnTraceAttack);
}

public Action OnTraceAttack(int victim, int &attacker, int &inflictor, float &damage, int &damagetype, int &ammotype, int hitbox, int hitgroup)
{
    if(IsClientInGame(attacker))
    {
        char sWeapon[32];
        GetClientWeapon(attacker, sWeapon, sizeof(sWeapon));
        if(StrContains(sWeapon, "knife", false) != -1 || StrContains(sWeapon, "bayonet", false) != -1)
            return Plugin_Handled;
    }
    
    return Plugin_Continue;
}