Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
#include <sourcemod> public Plugin:myinfo = { name = "KD Kicker", author = "Kathy", description = "Kill Death Ratio kicker", version = "1.0.0.0", url = "http://www.sourceserver.info" }; stock Float:GetClientKillDeathRatio(client) { new Deaths = GetClientDeaths(client); new Frags = GetClientFrags(client); if(!Deaths) return 0.0; else return Float(Frags)/Float(Deaths); } new Float:Ratio = GetClientKillDeathRatio(client); if Float(Ratio) > 4 { KickClient(client); } else { PrintToChat("Maximum KD is 4!"); } |
Zitat von »"FAKK|biggiman"«
nur mal so als denkanstoss: wenn es anfangs mal richtig gut läuft beim zocken, kann es schon schnell mal passieren dass man eine K:D von 10:1 hat.
Zitat von »"HSFighter"«
Zitat von »"FAKK|biggiman"«
nur mal so als denkanstoss: wenn es anfangs mal richtig gut läuft beim zocken, kann es schon schnell mal passieren dass man eine K:D von 10:1 hat.