More colors v scriptingu? help

Technická podpora k herním serverům Counter-Strike: Source
Message
Autor
youfake
Příspěvky: 15
Registrován: 02 črc 2013, 10:25
Reputation: 0

More colors v scriptingu? help

#1 Příspěvekod youfake » 02 črc 2013, 10:36

Server: 178.238.40.113:27021)

Zdravím potreboval by som poradiť ohľadne morecolors.inc v scriptingu.

nastavil som to takto že do scriptingu som napisal:

#include <sourcemod>
#include <sdktools>
#include <morecolors>

a chcem aby mi to vypisalo niektorímy farbami v morecolors nejaky text
napísal som to takto

if( GetConVarInt( gPluginEnabled ) == 0 )
{
CPrintToChat( id, "{darkturquoise}[SM Resetscore] {lavenderblush}The plugin is disabled." );
PrintToConsole( id, "[SM Resetscore] You can't use this command when plugin is disabled!" );

return Plugin_Continue;
}

if( GetClientDeaths( id ) == 0 && GetClientFrags( id ) == 0 )
{
CPrintToChat( id, "{darkturquoise}[SM Resetscore] {lavenderblush}Your score is already 0!" );
PrintToConsole( id, "[SM Resetscore] You can't reset your score right now." );

return Plugin_Continue;
}

SetClientFrags( id, 0 );
SetClientDeaths( id, 0 );

decl String:Name[ 32 ];
GetClientName( id, Name, sizeof( Name ) - 1 );

CPrintToChat( id, "{darkturquoise}[SM Resetscore] {lavenderblush}You have successfully reseted your score!" );
CPrintToChatAll( "{darkturquoise}[SM Resetscore] {lavenderblush}%s has just reseted his score.", Name );
PrintToConsole( id, "[SM Resetscore] You have successfully reseted your score." );

Ale funguje mi to len z color.inc neviem prečo ďakujem za radu.

Uživatelský avatar
SPiRIT
Příspěvky: 921
Věk: 33
Registrován: 02 led 2010, 17:38
Reputation: 2
Kontaktovat uživatele:

Re: More colors v scriptingu? help

#2 Příspěvekod SPiRIT » 02 črc 2013, 19:44

A mas morecolors.inc v adresari include?

Uživatelský avatar
Mysteria
Příspěvky: 9122
Registrován: 26 pro 2009, 15:40
Reputation: 7
Bydliště: Česká republika
Kontaktovat uživatele:

Re: More colors v scriptingu? help

#3 Příspěvekod Mysteria » 03 črc 2013, 00:29

To by se mu nezkompilovalo.

youfake
Příspěvky: 15
Registrován: 02 črc 2013, 10:25
Reputation: 0

Re: More colors v scriptingu? help

#4 Příspěvekod youfake » 03 črc 2013, 08:50

Ano v scripting>include>morecolors.inc

Skúšal som to aj z color.inc to my fungovalo ale morecolors nie neviem prečo.

Inak mysty ja mam ten sourcepawn takže som si tam hodil tie zložky.

Uživatelský avatar
Mysteria
Příspěvky: 9122
Registrován: 26 pro 2009, 15:40
Reputation: 7
Bydliště: Česká republika
Kontaktovat uživatele:

Re: More colors v scriptingu? help

#5 Příspěvekod Mysteria » 03 črc 2013, 09:33

Napiš ten dotaz sem, tam ti určitě někdo poradí. ;) https://forums.alliedmods.net/showthread.php?t=185016

youfake
Příspěvky: 15
Registrován: 02 črc 2013, 10:25
Reputation: 0

Re: More colors v scriptingu? help

#6 Příspěvekod youfake » 11 črc 2013, 18:05

Jo diky mysti už viem v čom bola chyba v špatný include :D ďalej to tam píšu dík za odpovede.


Zpět na „Counter-Strike: Source“

Kdo je online

Uživatelé prohlížející si toto fórum: Žádní registrovaní uživatelé a 23 hostů