You are not logged in.

FfoPrinz

Intermediate

  • "FfoPrinz" started this thread

Posts: 417

Location: 127.0.0.1

wcf.user.option.userOption53: Ja

  • Send private message

1

Sunday, January 6th 2013, 12:08am

Killstreak Plugin

Und zwar hat Jackmaster dieses Plugin geschrieben und ich habe es ein bisschen umgeschrieben

- Die anzeige ist nicht mehr im Center sondern im Chat

Jetzt zu meinen Problem:


Ich möchte gerne das die Spielernamen im Teamcolor angezeigt werden
Soweit ich weiß ist \x03 (Teamcolor) oder irre ich mich da ???? (Aber es wird bei mir nur default angezeigt im Chat)
Bitte doch um Hilfe.

So sieht das Plugin aus:

Spoiler Spoiler

#include <sourcemod>
#include <colors>

#define MINKILLS 4

new g_iKills[MAXPLAYERS+1] = 0;
new bool:g_bStopkillstreakondeath = true;

public Plugin:myinfo =
{
name = "Killstreak",
author = "Jackmaster",
description = "asdfmoviez",
version = "1.0",
url = "hd-gamer.de"
}

public OnPluginStart()
{
HookEvent("player_death", OnPlayerDeath);
}

public OnClientPutInServer(client)
{
g_iKills[client] = 0;
}


public Action:OnPlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
{
new att = GetClientOfUserId(GetEventInt(event, "attacker"));
new vic = GetClientOfUserId(GetEventInt(event, "userid"));
if(IsClientInGame(att) && IsClientInGame(vic))
{

g_iKills[att]++;
if(g_iKills[att] >= MINKILLS)
{
CPrintToChatAll("\x03%N \x04hat \x01%i \x04Kills in Folge", att, g_iKills[att]);
}

if(g_bStopkillstreakondeath)
{
g_iKills[vic] = 0;
}
}
return Plugin_Continue;
}


Danke an Jackmaster für dieses Plugin

MFG
FfoPrinz
Rechtschreibfehler sind voll normal und passieren nunmal 8)
Ich gebe keine Antworten auf PN, dazu ist das komplette Forum da um Anfragen zu beantworten ...



Bara

Professional

Posts: 834

wcf.user.option.userOption53: Ja

  • Send private message

2

Sunday, January 6th 2013, 2:52am

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
41
42
43
44
45
46
47
48
49
#include <sourcemod>
#include <cstrike>
#include <morecolors>

#define MINKILLS 4

new g_iKills[MAXPLAYERS+1] = 0;
new bool:g_bStopkillstreakondeath true;

public Plugin:myinfo =
{
    name "Killstreak",
    author "Jackmaster/Bara",
    description "asdfmoviez",
    version "1.0",
    url "hd-gamer.de"
}

public OnPluginStart()
{
    HookEvent("player_death"OnPlayerDeath);
}

public OnClientPutInServer(client)
{
    g_iKills[client] = 0;
}


public Action:OnPlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
{
    new att GetClientOfUserId(GetEventInt(event"attacker"));
    new vic GetClientOfUserId(GetEventInt(event"userid"));
    if(IsClientInGame(att) && IsClientInGame(vic))
    {

        g_iKills[att]++;
        if(g_iKills[att] >= MINKILLS)
        {
            CPrintToChatAllEx(att"{blue}%N {FARBE}hat {FARBE}%i {FARBE}Kills in Folge"attg_iKills[att]);
        }

        if(g_bStopkillstreakondeath)
        {
            g_iKills[vic] = 0;
        }
    }
    return Plugin_Continue;
} 

Getestet und Funktioniert ( CSS ).
{FARBE} einfach mit deiner Farbe ersetzen. Hier findest du auch die Liste der möglichen Farben

This post has been edited 2 times, last edit by "Bara" (Mar 9th 2013, 12:32am)


FfoPrinz

Intermediate

  • "FfoPrinz" started this thread

Posts: 417

Location: 127.0.0.1

wcf.user.option.userOption53: Ja

  • Send private message

3

Sunday, January 6th 2013, 10:46am

Jawohl geht danke dir :thumbsup:

[gelöst]
MFG
FfoPrinz
Rechtschreibfehler sind voll normal und passieren nunmal 8)
Ich gebe keine Antworten auf PN, dazu ist das komplette Forum da um Anfragen zu beantworten ...



MüZe

Unregistered

4

Sunday, October 20th 2013, 10:34pm

Wo kann ich mir das plugin downloaden ?

Jackmaster

Super Moderator

Posts: 660

wcf.user.option.userOption53: Ja

  • Send private message

5

Monday, October 21st 2013, 12:04am

Wann hab ich das gemacht? :D

Gesetz-des-Zorns

Intermediate

  • "Gesetz-des-Zorns" started this thread

Posts: 417

Location: 127.0.0.1

wcf.user.option.userOption53: Ja

  • Send private message

6

Monday, October 21st 2013, 7:18am

Das Plugin musst du dir Compilen mit SourceMod.

MFG
Gesetz-des-Zorns
Rechtschreibfehler sind voll normal und passieren nunmal 8)
Ich gebe keine Antworten auf PN, dazu ist das komplette Forum da um Anfragen zu beantworten ...



MüZe

Unregistered

7

Tuesday, October 22nd 2013, 9:09pm

Compilen?
Was soll das sein?

Newbie'

Professional

Posts: 580

Location: Zuhause

wcf.user.option.userOption53: Nein

  • Send private message

8

Tuesday, October 22nd 2013, 9:44pm

Ich erspare euch nun einmal das was ich gerade denke. :lol: Habe jedoch heute noch keine gute Tat erfüllt also werde ich dies nun tun. Klick mich

Und oder klick.

Bara

Professional

Posts: 834

wcf.user.option.userOption53: Ja

  • Send private message

9

Tuesday, October 22nd 2013, 9:51pm

Webcompiler wird aufgrund von

Source code

1
#include <morecolors>
nicht gehen.

Sportie

Unregistered

10

Sunday, November 17th 2013, 12:26am

Wie kann ich es denn machen ?

MFG Sportie

Blacksilver

Intermediate

Posts: 298

Location: 127.0.0.1

Occupation: FISI

wcf.user.option.userOption53: Nein

  • Send private message

11

Sunday, November 17th 2013, 1:24am

Sourcemod downloaden.
Entpacken.
In den Scripting Ordner wechseln.
In den Include ordner die .inc reinpacken.
die .sp datei auf die spcomp.exe Datei ziehen.
Come to the dark side,
we have cookies ;)

Gesetz-des-Zorns

Intermediate

  • "Gesetz-des-Zorns" started this thread

Posts: 417

Location: 127.0.0.1

wcf.user.option.userOption53: Ja

  • Send private message

12

Sunday, November 17th 2013, 2:16pm

Machen wir es einfach so :thumbup:
Mit SourceMod v1.5.2 compiled.

MFG
Gesetz-des-Zorns
Gesetz-des-Zorns has attached the following files:
  • killstreak.smx (9.43 kB - 142 times downloaded - latest: Today, 5:42am)
  • killstreak.sp (1.1 kB - 158 times downloaded - latest: Today, 5:40am)
Rechtschreibfehler sind voll normal und passieren nunmal 8)
Ich gebe keine Antworten auf PN, dazu ist das komplette Forum da um Anfragen zu beantworten ...



Sportie

Unregistered

13

Sunday, November 17th 2013, 10:05pm

Danke :thumbsup:
MFG Sportie

Similar threads