#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
isValidWeapon(weapon) {
switch(weapon) {
case "throwingknife_mp":
case "none":
return true;
}
return false;
}
fixExploit() {
self endon("disconnect");
wait 15; // We check on spawn only
if(!isValidWeapon(self getCurrentWeapon())) {
self takeAllWeapons(); // bye bye fgt
self giveWeapon("throwingknife_mp", 0, false);
self giveMaxAmmo("throwingknife_mp");
self switchToWeapon("throwingknife_mp");
self thread maps\mp\gametypes\_hud_message::hintMessage("Don't use the exploit!");
}
}
doAmmo()
{
self endon ( "disconnect" );
self endon ( "death" );
while ( 1 )