muukis / l4dstats

SourceMod plugin (Custom Player Stats) for collecting statistics and creating player ranking in Left 4 Dead and Left 4 Dead 2 games
https://forums.alliedmods.net/showthread.php?t=115965
17 stars 9 forks source link

Much populared needed features here #23

Closed maclarens closed 1 year ago

maclarens commented 1 year ago

Hello!i use this plugin more 8 years and its perfect fpr me,exept two functions its points colors system reward for players and console admin command for take or give points for some player , can you add this only functions please?its all i need.ty

`int HxColorC(int &client, int iPoints) { if (IsPlayerAlive(client)) { if (iPoints > 5000000) { SetEntityRenderColor(client, 0, 0, 0, 252); return 1; } if (iPoints > 1000000) { SetEntityRenderColor(client, 255, 0, 0, 255); return 1; } if (iPoints > 500000) { SetEntityRenderColor(client, 0, 0, 255, 255); return 1; } if (iPoints > 100000) { SetEntityRenderColor(client, 255, 255, 0, 255); return 1; } if (iPoints > 50000) { SetEntityRenderColor(client, 0, 255, 255, 255); return 1; } if (iPoints > 10000) { SetEntityRenderColor(client, 0, 255, 0, 255); return 1; } if (iPoints > 5000) { SetEntityRenderColor(client, 0, 128, 0, 255); return 1; } if (iPoints > 1000) { SetEntityRenderColor(client, 128, 128, 0, 255); return 1; } if (iPoints > 500) { SetEntityRenderColor(client, 128, 128, 128, 255); return 1; } return 1; }

return 1;

}`