burden boy
Участник
- Сообщения
- 98
- Реакции
- 4
Здравствуйте! Попробывал перевести shavit-credits с шопа зефира (zephyrus) на шоп Frozdark'a.
Попробовал исправить, но получил еще ошибки. Надеюсь на вашу помощь. (прикладываю inc shavit таймера)
Попробовал исправить, но получил еще ошибки. Надеюсь на вашу помощь. (прикладываю inc shavit таймера)
PHP:
#pragma semicolon 1
#include <sourcemod>
#include <shavit>
#include <shop>
#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", "500", "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_SetClientCredits(client, Shop_GetClientCredits(client) + g_cvFinishCredits.IntValue);
PrintToChat(client, "[Shop] Вы получили %d кредитов за прохождение карты.", g_cvFinishCredits.IntValue);
}
}
public void Shavit_OnWorldRecord(int client, BhopStyle style, float time, int jumps);
{
if(g_cvEnabled.BoolValue)
{
Shop_SetClientCredits(client, Shop_GetClientCredits(client) + g_cvWorldRecordCredits.IntValue);
PrintToChat(client, "[Shop] Вы получили %d кредитов за поставленный рекорд.", g_cvWorldRecordCredits.IntValue);
}
}