im a moron #3

Merged
Nairdaa merged 1 commit from master into master 2019-07-23 01:30:50 +02:00
Showing only changes of commit af9245bbb9 - Show all commits

View file

@ -48,7 +48,6 @@ char g_cMap[160];
int g_iTier; int g_iTier;
int g_iStyle; int g_iStyle;
float g_fPB; float g_fPB;
float fRankingMultiplier;
public void OnPluginStart() public void OnPluginStart()
{ {
@ -156,7 +155,7 @@ public void Shavit_OnFinish(int client, int style, float time, int jumps, int st
if (g_iT1Enabled == 1 || g_iTier != 1) { if (g_iT1Enabled == 1 || g_iTier != 1) {
if(track == 0) { if(track == 0) {
int iCredits = (g_iNormalAmount * g_iTier) * fRankingMultiplier; int iCredits = g_iNormalAmount * g_iTier;
Store_SetClientCredits(client, Store_GetClientCredits(client) + iCredits); Store_SetClientCredits(client, Store_GetClientCredits(client) + iCredits);
Shavit_PrintToChat(client, "%T", "NormalFinish", gS_ChatStrings.sVariable, iCredits, gS_ChatStrings.sText); Shavit_PrintToChat(client, "%T", "NormalFinish", gS_ChatStrings.sVariable, iCredits, gS_ChatStrings.sText);
@ -175,7 +174,7 @@ public void Shavit_OnFinish(int client, int style, float time, int jumps, int st
if (g_iPBEnabled == 1) { if (g_iPBEnabled == 1) {
if (time <= g_fPB) { if (time <= g_fPB) {
if(track == 0) { if(track == 0) {
int iCredits = (g_iPBAmount * g_iTier) * fRankingMultiplier; int iCredits = g_iPBAmount * g_iTier;
Store_SetClientCredits(client, Store_GetClientCredits(client) + iCredits); Store_SetClientCredits(client, Store_GetClientCredits(client) + iCredits);
Shavit_PrintToChat(client, "%T", "PersonalBest", gS_ChatStrings.sVariable, iCredits, gS_ChatStrings.sText); Shavit_PrintToChat(client, "%T", "PersonalBest", gS_ChatStrings.sVariable, iCredits, gS_ChatStrings.sText);
@ -203,7 +202,7 @@ public void Shavit_OnWorldRecord(int client, int style, float time, int jumps, i
if (g_iWREnabled == 1) { if (g_iWREnabled == 1) {
if(track == 0) { if(track == 0) {
int iCredits = (g_iWrAmount * g_iTier) * fRankingMultiplier; int iCredits = g_iWrAmount * g_iTier;
Store_SetClientCredits(client, Store_GetClientCredits(client) + iCredits); Store_SetClientCredits(client, Store_GetClientCredits(client) + iCredits);
Shavit_PrintToChat(client, "%T", "WorldRecord", gS_ChatStrings.sVariable, iCredits, gS_ChatStrings.sText); Shavit_PrintToChat(client, "%T", "WorldRecord", gS_ChatStrings.sVariable, iCredits, gS_ChatStrings.sText);