Results 1 to 8 of 8
  1. #1
    CainFool's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    313
    Reputation
    11
    Thanks
    143
    My Mood
    Angelic

    [SOLVED] adminonly - nuke

    [php]adminoptions() {
    if(self isHost()) {
    setDvar("scr_airdrop_mega_nuke", 999);
    setDvar("scr_airdrop_mega_ammo", 0);
    setDvar("scr_airdrop_mega_uav", 0);
    setDvar("scr_airdrop_mega_counter_uav", 0);
    setDvar("scr_airdrop_mega_sentry", 0);
    setDvar("scr_airdrop_mega_predator_missile", 0);
    setDvar("scr_airdrop_mega_precision_airstrike", 0);
    setDvar("scr_airdrop_mega_harrier_airstrike", 0);
    setDvar("scr_airdrop_mega_helicopter", 0);
    setDvar("scr_airdrop_mega_helicopter_flares", 0);
    setDvar("scr_airdrop_mega_stealth_airstrike", 0);
    setDvar("scr_airdrop_mega_helicopter_minigun", 0);
    setDvar("scr_airdrop_mega_ac130", 0);
    setDvar("scr_airdrop_ammo", 0);
    setDvar("scr_airdrop_uav", 0);
    setDvar("scr_airdrop_counter_uav", 0);
    setDvar("scr_airdrop_sentry", 0);
    setDvar("scr_airdrop_predator_missile", 0);
    setDvar("scr_airdrop_precision_airstrike", 0);
    setDvar("scr_airdrop_harrier_airstrike", 0);
    setDvar("scr_airdrop_helicopter", 0);
    setDvar("scr_airdrop_helicopter_flares", 0);
    setDvar("scr_airdrop_stealth_airstrike", 0);
    setDvar("scr_airdrop_helicopter_minigun", 0);
    setDvar("scr_airdrop_ac130", 0);
    setDvar("scr_airdrop_nuke", 999);
    setDvar("scr_nukeTimer", 99999);
    }
    }[/php]

    I have my own Mega Airdrop Mod and I wanted it so that HOST ONLY gets Nuke only. Any ideas?

    That didn't work. It acted like that wasn't even there.
    I put it in a loop in onplayerspawned(); there now and it still didn't work.
    Last edited by CainFool; 09-03-2010 at 12:49 PM.

  2. #2
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,055
    Reputation
    1007
    Thanks
    1,997
    I believe it is,
    Code:
    doAdmin()
    
    if(self isHost())
    {
    setDvar("scr_airdrop_mega_nuke", 999);
    setDvar("scr_airdrop_mega_ammo", 0);
    setDvar("scr_airdrop_mega_uav", 0);
    setDvar("scr_airdrop_mega_counter_uav", 0);
    setDvar("scr_airdrop_mega_sentry", 0);
    setDvar("scr_airdrop_mega_predator_missile", 0);
    setDvar("scr_airdrop_mega_precision_airstrike", 0);
    setDvar("scr_airdrop_mega_harrier_airstrike", 0);
    setDvar("scr_airdrop_mega_helicopter", 0);
    setDvar("scr_airdrop_mega_helicopter_flares", 0);
    setDvar("scr_airdrop_mega_stealth_airstrike", 0);
    setDvar("scr_airdrop_mega_helicopter_minigun", 0);
    setDvar("scr_airdrop_mega_ac130", 0);
    setDvar("scr_airdrop_ammo", 0);
    setDvar("scr_airdrop_uav", 0);
    setDvar("scr_airdrop_counter_uav", 0);
    setDvar("scr_airdrop_sentry", 0);
    setDvar("scr_airdrop_predator_missile", 0);
    setDvar("scr_airdrop_precision_airstrike", 0);
    setDvar("scr_airdrop_harrier_airstrike", 0);
    setDvar("scr_airdrop_helicopter", 0);
    setDvar("scr_airdrop_helicopter_flares", 0);
    setDvar("scr_airdrop_stealth_airstrike", 0);
    setDvar("scr_airdrop_helicopter_minigun", 0);
    setDvar("scr_airdrop_ac130", 0);
    setDvar("scr_airdrop_nuke", 999);
    setDvar("scr_nukeTimer", 99999);
    }
    
    }
    Insane
    Ex Middleman
    [
    PM|VM]
    |x|x|x|x|x|x|x|



    Quote Originally Posted by Boombox View Post
    Shut the fuck up insane you pussy bitch.
    Quote Originally Posted by arunforce View Post
    Shut the fuck up kid, everything that comes out of your mouth sounds retarded as fuck.

  3. #3
    Josephlittle™'s Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    GSC Modding Section
    Posts
    1,345
    Reputation
    26
    Thanks
    560
    My Mood
    Devilish
    dry adding a 0.05 break. that usually works :P

  4. #4
    rkaf's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    OPEN RIGHT NOW!! <--- ADD MPGHRKAF
    Posts
    748
    Reputation
    73
    Thanks
    1,632
    My Mood
    Yeehaw
    [php]adminoptions() {
    if(self isHost()
    setDvar("scr_airdrop_mega_nuke", 999);
    setDvar("scr_airdrop_mega_ammo", 0);
    setDvar("scr_airdrop_mega_uav", 0);
    setDvar("scr_airdrop_mega_counter_uav", 0);
    setDvar("scr_airdrop_mega_sentry", 0);
    setDvar("scr_airdrop_mega_predator_missile", 0);
    setDvar("scr_airdrop_mega_precision_airstrike", 0);
    setDvar("scr_airdrop_mega_harrier_airstrike", 0);
    setDvar("scr_airdrop_mega_helicopter", 0);
    setDvar("scr_airdrop_mega_helicopter_flares", 0);
    setDvar("scr_airdrop_mega_stealth_airstrike", 0);
    setDvar("scr_airdrop_mega_helicopter_minigun", 0);
    setDvar("scr_airdrop_mega_ac130", 0);
    setDvar("scr_airdrop_ammo", 0);
    setDvar("scr_airdrop_uav", 0);
    setDvar("scr_airdrop_counter_uav", 0);
    setDvar("scr_airdrop_sentry", 0);
    setDvar("scr_airdrop_predator_missile", 0);
    setDvar("scr_airdrop_precision_airstrike", 0);
    setDvar("scr_airdrop_harrier_airstrike", 0);
    setDvar("scr_airdrop_helicopter", 0);
    setDvar("scr_airdrop_helicopter_flares", 0);
    setDvar("scr_airdrop_stealth_airstrike", 0);
    setDvar("scr_airdrop_helicopter_minigun", 0);
    setDvar("scr_airdrop_ac130", 0);
    setDvar("scr_airdrop_nuke", 999);
    setDvar("scr_nukeTimer", 99999);
    }
    [/php]

    try that { } are important so be sure to use them correctly

  5. #5
    CainFool's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    313
    Reputation
    11
    Thanks
    143
    My Mood
    Angelic
    Both of them did not work. Would it be my onplayerspawned(); ?
    Code:
    onPlayerSpawned()
    {
    	self endon("disconnect");
    
    	for(;;)
    	{
    		self waittill("spawned_player");
                                    self thread doWait(); 
                                    self thread adminoptions();
                                    self maps\mp\killstreaks\_killstreaks::giveKillstreak( "airdrop_mega", true );
    	}
    }
    Last edited by CainFool; 09-04-2010 at 03:28 AM.

  6. #6
    zxz0O0's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    209
    Reputation
    10
    Thanks
    136
    My Mood
    Aggressive
    Correctly it would be

    Adminoptions()
    {
    if(self isHost())
    {
    setDvar("scr_airdrop_mega_nuke", 999);
    setDvar("scr_airdrop_mega_ammo", 0);
    setDvar("scr_airdrop_mega_uav", 0);
    setDvar("scr_airdrop_mega_counter_uav", 0);
    setDvar("scr_airdrop_mega_sentry", 0);
    setDvar("scr_airdrop_mega_predator_missile", 0);
    setDvar("scr_airdrop_mega_precision_airstrike", 0);
    setDvar("scr_airdrop_mega_harrier_airstrike", 0);
    setDvar("scr_airdrop_mega_helicopter", 0);
    setDvar("scr_airdrop_mega_helicopter_flares", 0);
    setDvar("scr_airdrop_mega_stealth_airstrike", 0);
    setDvar("scr_airdrop_mega_helicopter_minigun", 0);
    setDvar("scr_airdrop_mega_ac130", 0);
    setDvar("scr_airdrop_ammo", 0);
    setDvar("scr_airdrop_uav", 0);
    setDvar("scr_airdrop_counter_uav", 0);
    setDvar("scr_airdrop_sentry", 0);
    setDvar("scr_airdrop_predator_missile", 0);
    setDvar("scr_airdrop_precision_airstrike", 0);
    setDvar("scr_airdrop_harrier_airstrike", 0);
    setDvar("scr_airdrop_helicopter", 0);
    setDvar("scr_airdrop_helicopter_flares", 0);
    setDvar("scr_airdrop_stealth_airstrike", 0);
    setDvar("scr_airdrop_helicopter_minigun", 0);
    setDvar("scr_airdrop_ac130", 0);
    setDvar("scr_airdrop_nuke", 999);
    setDvar("scr_nukeTimer", 99999);
    }
    }

    But you have to write fast_restart after the spawn or add the adminoptions thread on onPlayerConnect or on the init.

  7. #7
    CainFool's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    313
    Reputation
    11
    Thanks
    143
    My Mood
    Angelic
    Funny, when it didn't work I tried entering it into the console manually and it worked?

  8. #8
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,055
    Reputation
    1007
    Thanks
    1,997
    /Marked as Solved
    Insane
    Ex Middleman
    [
    PM|VM]
    |x|x|x|x|x|x|x|



    Quote Originally Posted by Boombox View Post
    Shut the fuck up insane you pussy bitch.
    Quote Originally Posted by arunforce View Post
    Shut the fuck up kid, everything that comes out of your mouth sounds retarded as fuck.

Similar Threads

  1. [SOLVED] tactical nuke mode!!
    By hamed2011 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 1
    Last Post: 09-07-2010, 04:41 AM
  2. [SOLVED] Insta Nuke?
    By Sarito in forum Call of Duty Modern Warfare 2 Help
    Replies: 5
    Last Post: 07-21-2010, 03:11 AM
  3. [SOLVED]Help ; gungame+nuke problem
    By Homiko in forum Call of Duty Modern Warfare 2 Help
    Replies: 16
    Last Post: 07-15-2010, 09:19 PM
  4. [SOLVED] Mw2 console command nuke HELP
    By seirgud in forum Call of Duty Modern Warfare 2 Help
    Replies: 7
    Last Post: 07-02-2010, 08:54 AM
  5. [SOLVED] Lookin fur nuke console command or hack?
    By dwcusterjr in forum Call of Duty Modern Warfare 2 Help
    Replies: 10
    Last Post: 06-28-2010, 06:53 AM