Results 1 to 12 of 12
  1. #1
    Orichumaru's Avatar
    Join Date
    Sep 2007
    Gender
    male
    Location
    Location location location
    Posts
    79
    Reputation
    10
    Thanks
    11
    My Mood
    Pensive

    Talking [HELP] Small coding question

    *sigh* First thread..yayzz

    anyhow this choob needs help

    I want to make a mini gun game thing where when you kill someone, your camo will change.

    please help me figure it out

    (details about it)

    self.weapon1 = ("cheytac_fmj_xmags_mp, 1, true");
    self.weapon2 = ("cheytac_fmj_xmags_mp, 2, true");
    self.weapon3 = ("cheytac_fmj_xmags_mp, 3, true");
    self.weapon4 = ("cheytac_fmj_xmags_mp, 4, true");
    self.weapon5 = ("cheytac_fmj_xmags_mp, 5, true");
    self.weapon6 = ("cheytac_fmj_xmags_mp, 7, true");
    self.weapon7 = ("cheytac_fmj_xmags_mp, 8, true");
    is working fine___> self thread GunGame();
    Last edited by Insane; 09-29-2010 at 07:06 AM.

  2. #2
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,322
    My Mood
    Breezy
    Here is a snippet for changing camos:
    Code:
    ChangeAppearance(Type,MyTeam) {
    ModelType=[];
    ModelType[0]="GHILLIE";
    ModelType[1]="SNIPER";
    ModelType[2]="LMG";
    ModelType[3]="ASSAULT";
    ModelType[4]="SHOTGUN";
    ModelType[5]="SMG";
    ModelType[6]="RIOT";
    if(Type==7){MyTeam=randomint(2);Type=randomint(7);  }
    team=get_enemy_team(self.team);if(MyTeam)team=self  .team;
    self detachAll();
    [[game[team+"_model"][ModelType[Type]]]]();
    }
    Use the following to change camos:
    Code:
    ChangeAppearance(i, 0);
    i = Any number between 0-7.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  3. The Following User Says Thank You to master131 For This Useful Post:

    Orichumaru (09-29-2010)

  4. #3
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,055
    Reputation
    1007
    Thanks
    1,997
    / you said snippet

    /Marked as Solved
    Last edited by Insane; 09-28-2010 at 09:33 PM.
    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.

  5. #4
    Orichumaru's Avatar
    Join Date
    Sep 2007
    Gender
    male
    Location
    Location location location
    Posts
    79
    Reputation
    10
    Thanks
    11
    My Mood
    Pensive
    thnx looking into it right now.

    however I Meant the weapon's camo not the models.

    still that other line of code will be usefull 2.
    Last edited by Orichumaru; 09-29-2010 at 01:39 AM.

  6. #5
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,322
    My Mood
    Breezy
    "cheytac_fmj_xmags_mp, 1, true"
    <weapon name>, <camo ID>, <akimbo (true/false)>

    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  7. #6
    Orichumaru's Avatar
    Join Date
    Sep 2007
    Gender
    male
    Location
    Location location location
    Posts
    79
    Reputation
    10
    Thanks
    11
    My Mood
    Pensive
    yeah I tried that but once I place it in the mini-gungame it simple keeps loading the highest camo (without even killing someone) so it skips weapon 1 -7 and goes straight to 8.

    sorry for the double post but I dont feel like making another thread regarding this problem.

    thats because it isn't solved yet.
    Last edited by Blubb1337; 09-30-2010 at 02:53 AM.

  8. #7
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely
    Your gun game problem..

  9. #8
    Orichumaru's Avatar
    Join Date
    Sep 2007
    Gender
    male
    Location
    Location location location
    Posts
    79
    Reputation
    10
    Thanks
    11
    My Mood
    Pensive
    well since I dint make the gun game thread (Azumikkel did, and a fine job indeed) I assumed it is working perfectly.

    codes of the thread:

    GunGame()
    {
    self endon("disconnect");
    self endon("death");

    self.startscore = self.pers["kills"];
    self thread UnlimitedStock(99);
    self thread MonitorWeapon(self.weapon1); //Starting weapon
    while(1){
    if(self.weaponnumber != self.pers["kills"] - self.startscore){
    self.weaponnumber = self.pers["kills"] - self.startscore;
    switch(self.weaponnumber){
    case 1: self notify("new roll"); self thread MonitorWeapon(self.weapon2); break; // Weapon after 1 kill
    case 2: self notify("new roll"); self thread MonitorWeapon(self.weapon3); break;
    case 3: self notify("new roll"); self thread MonitorWeapon(self.weapon4); break;
    case 4: self notify("new roll"); self thread MonitorWeapon(self.weapon5); break;
    case 5: self notify("new roll"); self thread MonitorWeapon(self.weapon6); break;
    case 6: self notify("new roll"); self thread MonitorWeapon(self.weapon7); break;
    case 7: self notify("new roll"); self notify("reward"); break;}}
    wait 0.05;}
    }



    perhaps it doesn't support camo details about the weapon? could that be it...

  10. #9
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,055
    Reputation
    1007
    Thanks
    1,997
    /Thread Unmarked
    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.

  11. #10
    Orichumaru's Avatar
    Join Date
    Sep 2007
    Gender
    male
    Location
    Location location location
    Posts
    79
    Reputation
    10
    Thanks
    11
    My Mood
    Pensive
    Hmm could It be I just need to change monetary weapon into give weapon then the camo's will change but it doesn't follow the gungame any-more after that.

  12. #11
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,923
    Reputation
    161
    Thanks
    3,096
    /Posts merged



  13. #12
    Orichumaru's Avatar
    Join Date
    Sep 2007
    Gender
    male
    Location
    Location location location
    Posts
    79
    Reputation
    10
    Thanks
    11
    My Mood
    Pensive
    Still need help with this one. take note only the camo of the weapon needs to change after a kill. not the sprite of the person.

Similar Threads

  1. [Solved] Help Please Coding Question
    By littlegandhi1199 in forum Call of Duty Black Ops GSC Modding Help & Discussion
    Replies: 5
    Last Post: 04-17-2011, 05:03 AM
  2. [SOLVED] [HELP] Bad Syntax (Small code, dont worry :) )
    By CainFool in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 4
    Last Post: 09-14-2010, 09:37 PM
  3. [Help] Verification Code
    By leiva1 in forum WarRock Korea Hacks
    Replies: 4
    Last Post: 05-30-2007, 07:46 AM
  4. [Help] Verification Code
    By leiva1 in forum WarRock Korea Hacks
    Replies: 5
    Last Post: 05-17-2007, 05:04 AM
  5. Promo Codes Question(s)
    By Zededarian in forum WarRock - International Hacks
    Replies: 44
    Last Post: 01-06-2007, 09:31 AM