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.

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 - 205 times downloaded - latest: May 1st 2024, 2:58am)
  • resetcolors.smx (4.33 kB - 186 times downloaded - latest: May 3rd 2024, 2:30am)

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