Masterov
Участник
- Сообщения
- 26
- Реакции
- 3
Я попытался сделать этот плагин цветным (shavit-credits) , но почему-то не получается (я очень плохо разбираюсь в этих плагинах , но самое простое-могу)
Поэтому кто может сказать в чём ошибка и как исправить
Так же вот код _
Оффтоп
#pragma semicolon 1
#include <shop>
#include <shavit>
#include <csgo_colors>
#pragma newdecls required
ConVar g_cvEnabled = null;
ConVar g_cvFinishCredits = null;
ConVar g_cvWorldRecordCredits = null;
public void OnPluginStart()
{
g_cvEnabled = CreateConVar("shavit_credits_enable", "1", "Should players receive credits for finishing maps and beating world records?", 0, true, 0.0, true, 1.0);
g_cvFinishCredits = CreateConVar("shavit_credits_finish", "50", "How many credits should players receive for finishing a map?", 0, true, 0.0);
g_cvWorldRecordCredits = CreateConVar("shavit_credits_worldrecord", "1000", "How many credits should players receive for beating a world record?", 0, true, 0.0);
AutoExecConfig();
}
public void Shavit_OnFinish(int client, BhopStyle style, float time, int jumps)
{
if(g_cvEnabled.BoolValue)
{
Shop_GiveClientCredits(client, g_cvFinishCredits.IntValue, IGNORE_FORWARD_HOOK);
CGOPrintToChat(client, "{Green}[Shop] {Lime}Вы получили {Lightgreen}%d {Lime}кредитов за прохождение карты.", g_cvFinishCredits.IntValue);
}
}
public void Shavit_OnWorldRecord(int client, BhopStyle style, float time, int jumps)
{
if(g_cvEnabled.BoolValue)
{
Shop_GiveClientCredits(client, g_cvWorldRecordCredits.IntValue, IGNORE_FORWARD_HOOK);
CGOPrintToChat(client, "{Green}[Shop] {Lime}Вы получили {Lightgreen}%d {Lime}кредитов за поставленный рекорд.", g_cvWorldRecordCredits.IntValue);
}
}
Поэтому кто может сказать в чём ошибка и как исправить
Так же вот код _
Оффтоп
#pragma semicolon 1
#include <shop>
#include <shavit>
#include <csgo_colors>
#pragma newdecls required
ConVar g_cvEnabled = null;
ConVar g_cvFinishCredits = null;
ConVar g_cvWorldRecordCredits = null;
public void OnPluginStart()
{
g_cvEnabled = CreateConVar("shavit_credits_enable", "1", "Should players receive credits for finishing maps and beating world records?", 0, true, 0.0, true, 1.0);
g_cvFinishCredits = CreateConVar("shavit_credits_finish", "50", "How many credits should players receive for finishing a map?", 0, true, 0.0);
g_cvWorldRecordCredits = CreateConVar("shavit_credits_worldrecord", "1000", "How many credits should players receive for beating a world record?", 0, true, 0.0);
AutoExecConfig();
}
public void Shavit_OnFinish(int client, BhopStyle style, float time, int jumps)
{
if(g_cvEnabled.BoolValue)
{
Shop_GiveClientCredits(client, g_cvFinishCredits.IntValue, IGNORE_FORWARD_HOOK);
CGOPrintToChat(client, "{Green}[Shop] {Lime}Вы получили {Lightgreen}%d {Lime}кредитов за прохождение карты.", g_cvFinishCredits.IntValue);
}
}
public void Shavit_OnWorldRecord(int client, BhopStyle style, float time, int jumps)
{
if(g_cvEnabled.BoolValue)
{
Shop_GiveClientCredits(client, g_cvWorldRecordCredits.IntValue, IGNORE_FORWARD_HOOK);
CGOPrintToChat(client, "{Green}[Shop] {Lime}Вы получили {Lightgreen}%d {Lime}кредитов за поставленный рекорд.", g_cvWorldRecordCredits.IntValue);
}
}