More colors v scriptingu? help
Napsal: 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.
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.