Results 1 to 10 of 10
  1. #1
    Oh Noez Batman ChelseaGrin's Avatar

    Badge

    Join Date
    Aug 2011
    Location
    I am Become Death, the Destroyer of Worlds
    Posts
    1,456
    Points
    353
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    I am Become Death, the Destroyer of Worlds
    Posts
    1,456
    Points
    353
    Gamer IDs

    PSN ID: byRexehh

    Default [RELEASE]Tell Commands Script *Special*

    I just made this script hope you guys like!
    Code:
    TellCommands( player )
    {
             host = GetHostPlayer();
             if( player AdsButtonPressed() == true )
             {
                       host iPrintln("^3ADS");
              }
              if( player AttackButtonPressed() == true )
              {
                        host iPrintln("^3Shooting...");
              }
              if( player FragButtonPressed() == true ) 
              {
                        host iPrintln("^3Throwing Grenade..");
              }
              if( player MeleeButtonPressed() == true )
              {
                         host iPrintln("^3Using Melee..");
              }
              if( player self UseButtonPressed() == true )
              {
                         host iPrintln("^3Picked up Weapon or running");
              }
    }
    Every time you do one of the following it will tell you what you do.

    0 Not allowed! Not allowed!
    Last edited by ChelseaGrin; 06-07-2013 at 05:50 PM.





  2. #2
    Wii Player
    Bud Smoker
    SE7ENsins's Avatar
    Join Date
    May 2012
    Location
    I am so high right now
    Posts
    362
    Points
    938
         User Info     Contact     Gamer ID
    Join Date
    May 2012
    Location
    I am so high right now
    Posts
    362
    Points
    938
    Gamer IDs

    Gamertag: thatonedude19

    Contact info:

    Youtube Channel: codeleakers.com

    Default

    looks a little strange

    might not work

    0 Not allowed! Not allowed!
    Last edited by SE7ENsins; 05-16-2012 at 08:57 AM.
    Pm me if you need help with modding!

    Pm me if you want to make a mod together!

    Pm me for mod reqeusts!
    Best mods and codes----->modsandcodes.com

  3. #3
    Banned
    Join Date
    May 2011
    Posts
    917
    Points
    1,182
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    917
    Points
    1,182

    Default

    Code:
    TellCommands( player )
    {
             if( player AdsButtonPressed() == true )
             {
                       self iPrintln("^3ADS");
              }
              if( player AttackButtonPressed() == true )
              {
                        self iPrintln("^3Shooting...");
              }
              if( player FragButtonPressed() == true ) 
              {
                        self iPrintln("^3Throwing Grenade..");
              }
              if( player MeleeButtonPressed() == true )
              {
                         self iPrintln("^3Using Melee..");
              }
              if( player self UseButtonPressed() == true )
              {
                         self iPrintln("^3Picked up Weapon or running");
              }
    }
    maybe this?

    Code:
    TellCommands( player )
    {
             host = GetHostPlayer();
             if( player AdsButtonPressed() == true )
             {
                       host iPrintln("^3ADS");
              }
              if( player AttackButtonPressed() == true )
              {
                        host iPrintln("^3Shooting...");
              }
              if( player FragButtonPressed() == true ) 
              {
                        host iPrintln("^3Throwing Grenade..");
              }
              if( player MeleeButtonPressed() == true )
              {
                         host iPrintln("^3Using Melee..");
              }
              if( player self UseButtonPressed() == true )
              {
                         host iPrintln("^3Picked up Weapon or running");
              }
    }

    0 Not allowed! Not allowed!

  4. #4
    Wii Player
    Bud Smoker
    SE7ENsins's Avatar
    Join Date
    May 2012
    Location
    I am so high right now
    Posts
    362
    Points
    938
         User Info     Contact     Gamer ID
    Join Date
    May 2012
    Location
    I am so high right now
    Posts
    362
    Points
    938
    Gamer IDs

    Gamertag: thatonedude19

    Contact info:

    Youtube Channel: codeleakers.com

    Default

    lolz that looks right

    hey you don't need the (player) thing in it

    0 Not allowed! Not allowed!
    Last edited by SE7ENsins; 05-16-2012 at 09:01 AM.
    Pm me if you need help with modding!

    Pm me if you want to make a mod together!

    Pm me for mod reqeusts!
    Best mods and codes----->modsandcodes.com

  5. #5
    Member ~KUNG FU~'s Avatar
    Join Date
    Apr 2012
    Posts
    113
    Points
    448
         User Info     Contact     Gamer ID
    Join Date
    Apr 2012
    Posts
    113
    Points
    448

    Default

    cools

    0 Not allowed! Not allowed!


    DbD~Clan~CL

  6. #6
    Wii Player
    Bud Smoker
    SE7ENsins's Avatar
    Join Date
    May 2012
    Location
    I am so high right now
    Posts
    362
    Points
    938
         User Info     Contact     Gamer ID
    Join Date
    May 2012
    Location
    I am so high right now
    Posts
    362
    Points
    938
    Gamer IDs

    Gamertag: thatonedude19

    Contact info:

    Youtube Channel: codeleakers.com

    Default

    yea its a lil funny to have also i bet i can make it an infection so who ever got infected would be pissed untill it whent away LOLz

    0 Not allowed! Not allowed!
    Pm me if you need help with modding!

    Pm me if you want to make a mod together!

    Pm me for mod reqeusts!
    Best mods and codes----->modsandcodes.com

  7. #7
    Banned
    Join Date
    May 2011
    Posts
    917
    Points
    1,182
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    917
    Points
    1,182

    Default

    you don't need "player", but you can use it for activation through a player menu that why "player" is in there

    0 Not allowed! Not allowed!

  8. #8
    Evolved Modder
    Living Liek Larry
    tony's Avatar
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,309
    Points
    10,700
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,309
    Points
    10,700
    Gamer IDs

    PSN ID: L33T_T0ny Steam ID: ToNy Wii Code: L33T_T0ny

    Default

    Quote Originally Posted by MrderVonJuden View Post
    you don't need "player", but you can use it for activation through a player menu that why "player" is in there
    either way will work, player refers to the object created when you spawn that is automaticaly named player or self, if you put host instead it will only show it to someone who you name "host" because the host is not given the exact title "host". so unless you put if(self.name= you~ ) self = host; it wont work the way you did it

    so the original script would work for all players with no difficulty

    0 Not allowed! Not allowed!

  9. #9
    MonsterCat
    Insan3Lik3
    CheeseToast's Avatar
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169

    Contact info:

    Youtube Channel: http://www.youtube.com/CheeseToastHax

    Default

    Good job, but you did make some mistakes.

    TellCommands()
    {
    self AdsButtonPressed()
    self iPrintln("^3ADS");
    self AttackButtonPressed()
    self iPrintln("^3Shooting...");
    self FragButtonPressed()
    self iPrintln("^3Throwing Grenade..");
    self MeleeButtonPressed()
    self iPrintln("^3Using Melee..");
    self UseButtonPressed()
    self iPrintln("^3Picked up Weapon");
    }
    You need to use the if statement, this is an error.

    Code:
    monitorButtons()
    {
    	for( ;; )
    	{
    		if(self AdsButtonPressed())
    		{
    			//text here
    		}
    
    		else if(self AttackButtonPressed())
    		{
    			//text here
    		}
    		wait 0.1;
    	}
    }

    0 Not allowed! Not allowed!
    "It's better to lose an argument/debate then to win. Cause when you lose you grow as a person."
    -CheeseToast

  10. #10
    Banned
    Join Date
    May 2011
    Posts
    917
    Points
    1,182
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    917
    Points
    1,182

    Default

    Quote Originally Posted by CheeseToast View Post
    Good job, but you did make some mistakes.


    You need to use the if statement, this is an error.

    Code:
    monitorButtons()
    {
    	for( ;; )
    	{
    		if(self AdsButtonPressed())
    		{
    			//text here
    		}
    
    		else if(self AttackButtonPressed())
    		{
    			//text here
    		}
    		wait 0.1;
    	}
    }
    I specified this here:

    Quote Originally Posted by MrderVonJuden View Post
    Code:
    TellCommands( player )
    {
             if( player AdsButtonPressed() == true )
             {
                       self iPrintln("^3ADS");
              }
              if( player AttackButtonPressed() == true )
              {
                        self iPrintln("^3Shooting...");
              }
              if( player FragButtonPressed() == true ) 
              {
                        self iPrintln("^3Throwing Grenade..");
              }
              if( player MeleeButtonPressed() == true )
              {
                         self iPrintln("^3Using Melee..");
              }
              if( player self UseButtonPressed() == true )
              {
                         self iPrintln("^3Picked up Weapon or running");
              }
    }
    maybe this?

    Code:
    TellCommands( player )
    {
             host = GetHostPlayer();
             if( player AdsButtonPressed() == true )
             {
                       host iPrintln("^3ADS");
              }
              if( player AttackButtonPressed() == true )
              {
                        host iPrintln("^3Shooting...");
              }
              if( player FragButtonPressed() == true ) 
              {
                        host iPrintln("^3Throwing Grenade..");
              }
              if( player MeleeButtonPressed() == true )
              {
                         host iPrintln("^3Using Melee..");
              }
              if( player self UseButtonPressed() == true )
              {
                         host iPrintln("^3Picked up Weapon or running");
              }
    }

    0 Not allowed! Not allowed!

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 07:30 PM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.