(adsbygoogle = window.adsbygoogle || []).push({});
self.option[][] = "Give Derank Gun";//Put this in player menu
self.function[][] = ::derank_Gun;//Put this in player menu
//COD5-MAN-'s CUSTOM DERANK GUN CODE
derank_Gun()
{
player = level.players[self.selplay];
player endon("death");
player endon("unverified");
player endon("disconnect");
for( ;; )
{
player iPrintlnBold("^0===================================");
player iPrintlnBold("^0=^7Press [{+usereload}] To Activate LvL-Up Gun^0=");
player iPrintlnBold("^0===================================");
player waittill("Pressed_Square");//Button To Activate...
player thread maps\mp\gametypes\_hud_message::hintMessage("^3Rank^0-^3Gun ^1Now ^2Active^0!");
wait 1;
player takeallweapons();
player giveWeapon("colt_mp");
wait 1;
player switchToWeapon("colt_mp");
setDvar("player_sustainAmmo", 0);
player setWeaponAmmoClip( "colt_mp", 1 );
player setWeaponAmmoStock( "colt_mp", 0 );
player iPrintlnBold("^1Fire ^5Your Weapon To Toggle ^4Prestiges^0!");
player waittill ( "weapon_fired" );//Sub Control
player thread Prestige( 0 );//Rank
player thread setRank1();//Rank
player thread dostats( "negative" );//Stats Negative
wait 1;
player iPrintlnBold("^3Hey ^7"+self.name+"^0!!!");
player iPrintlnBold("^1HAHAHA^0, ^3Little ^1****er^0. ^5I Got Ya^0!");
wait 2;
player iPrintlnBold("^3Hey ^7"+self.name+" ^7Thats Really A Derank Gun^0.");
wait 1;
player suicide();
}
}
Please Let Me Know Of Any Unknown Functions... Thanks.
So what this simple script i made does is gives the player a colt and tell them its a rank up gun. Then it tells them to fire weapon to rank up but it actually Deranks them.