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.
More colors v scriptingu? help
Re: More colors v scriptingu? help
A mas morecolors.inc v adresari include?
- 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
To by se mu nezkompilovalo.
Výběr z vlastních projektů: MinecraftServerList.cz ✔ Minecraft Extended Punishment List ✔ Killing Floor2 servery ✔
Spoiler: zobrazit
Re: More colors v scriptingu? help
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.
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.
- 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
Napiš ten dotaz sem, tam ti určitě někdo poradí. https://forums.alliedmods.net/showthread.php?t=185016
Výběr z vlastních projektů: MinecraftServerList.cz ✔ Minecraft Extended Punishment List ✔ Killing Floor2 servery ✔
Spoiler: zobrazit
Re: More colors v scriptingu? help
Jo diky mysti už viem v čom bola chyba v špatný include ď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 4 hosti