You are not logged in.

stevemerson

Beginner

  • "stevemerson" started this thread

Posts: 29

wcf.user.option.userOption53: Ja

  • Send private message

1

Monday, February 24th 2014, 3:13pm

Reset Color Hilfe bei Codierung 1 Fehler vorhanden Bitte um Hilfe

Hallo Community

Habe da ein Plugin (sp) für das Reseten der Farben im Spiel geht um Jail Server wenn leute verweigern, und dann ihre Farben löschen können und dann falls auch wieder aktvieren um zu gucken

wer alles verweigert hat

Hier das Script Plugin mit !rc können NUR die CT`s die Farben der T`s löschen und mit !sc kann man NUR als CT die Farben wieder anzeigen lassen.

Bitte um Hilfe es ist nur ein Fehler vorhanden für das !rc

Der Fehler heisst : error 017 undefinded symbol Command_resetcolor



#include <sourcemod>
#include <cstrike>
#include <sdktools>

#define PLUGIN_VERSION "1.1"

public Plugin:myinfo =
{
name = "Reset Colors",
author = "SteveMerson, Kellertreppe",
description = "You can reset team colors",
version = PLUGIN_VERSION,
url = "nourl"
}


public OnPluginStart()
{
RegConsoleCmd("sm_rc", Command_Resetcolor);
}

// color_reset
public Action:ResetColor(client)
{
if (GetClientTeam(client) == CS_TEAM_CT && (IsPlayerAlive(client)))
{
SetEntityRenderMode(CS_TEAM_T,RENDER_TRANSCOLOR);
SetEntityRenderColor(CS_TEAM_T, 255, 255, 255, 255);
}
}
Wir Sind die BLACKBIRDS die mit nem Vogel


Homepage: Blackbirds Homepage


Steam Community: BLACKBIRDS Community


TEAMSPEAK: bb-clan.ts3dns.com




Ninja2003

Beginner

Posts: 3

wcf.user.option.userOption53: Ja

  • Send private message

2

Monday, February 24th 2014, 11:31pm

public Action:ResetColor(client)


ändern zu


public Action:Command_Resetcolor(client)

stevemerson

Beginner

  • "stevemerson" started this thread

Posts: 29

wcf.user.option.userOption53: Ja

  • Send private message

3

Tuesday, February 25th 2014, 7:20pm

So habe es jetzt gemacht jetzt kommt ein anderer Error resetcolors.sp19 : error 100: function prototype do not match

1 Error ???

mhhh was nun ??

Bitte um Hilfe
Wir Sind die BLACKBIRDS die mit nem Vogel


Homepage: Blackbirds Homepage


Steam Community: BLACKBIRDS Community


TEAMSPEAK: bb-clan.ts3dns.com




fluxX

Super Moderator

Posts: 1,056

Location: Österreich

Occupation: IT Systemadministrator

wcf.user.option.userOption53: Ja

  • Send private message

4

Wednesday, February 26th 2014, 7:18am

Hi,

public Action:Command_Resetcolor(client)
zu
public Action:Command_Resetcolor(client, args)

Greetz
fluxX has attached the following files:
  • resetcolors.sp (617 Byte - 209 times downloaded - latest: May 22nd 2024, 7:53pm)
  • resetcolors.smx (4.33 kB - 192 times downloaded - latest: May 22nd 2024, 3:26pm)

stevemerson

Beginner

  • "stevemerson" started this thread

Posts: 29

wcf.user.option.userOption53: Ja

  • Send private message

5

Wednesday, February 26th 2014, 10:52am

Danke Fluxx <3 ;)
Wir Sind die BLACKBIRDS die mit nem Vogel


Homepage: Blackbirds Homepage


Steam Community: BLACKBIRDS Community


TEAMSPEAK: bb-clan.ts3dns.com