Results 1 to 8 of 8
  1. #1
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy

    [SOLVED] weapon code help fix =D

    hajja =D




    and this is my code:
    Code:
    self thread SpawnWeapon(undefined,"cheytac_fmj_xmags_mp","Intervention",Location+(60,90,25),0);



    well it gives me bad Syntax :|



    /reply =D
    Last edited by Insane; 09-24-2010 at 03:43 PM.



    Bring a Ding Ding Baby!

  2. #2
    kerocx's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    79
    Reputation
    10
    Thanks
    6
    wheres the thread ?

  3. #3
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy
    got it to


    here you go
    Code:
    SpawnWeapon(WFunc,Weapon,WeaponName,Location,TakeOnce)
    {
    self endon("disconnect");
    weapon_model = getWeaponModel(Weapon);
    if(weapon_model=="")weapon_model=Weapon;
    Wep=spawn("script_model",Location+(0,0,3));
    Wep setModel(weapon_model);
    for(;;){
    foreach(player in level.players){
    Radius=distance(Location,player.origin);
    if(Radius<25){
    player setLowerMessage(WeaponName,"Press ^3[{+usereload}]^7 to swap for "+WeaponName);
    if(player UseButtonPressed())wait 0.2;
    if(player UseButtonPressed()){
    if(!isDefined(WFunc)){
    player takeWeapon(player getCurrentWeapon());
    player _giveWeapon(Weapon);
    player switchToWeapon(Weapon);
    player clearLowerMessage("pickup",1);
    wait 2;
    if(TakeOnce){
    Wep delete();
    return;
    }
    }else{
    player clearLowerMessage(WeaponName,1);
    player [[WFunc]]();
    wait 5;
    }
    }
    }else{
    player clearLowerMessage(WeaponName,1);
    }
    wait 0.1;
    }
    wait 0.5;
    }



    Bring a Ding Ding Baby!

  4. #4
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,668
    My Mood
    Breezy
    You haven't defined what "Location" is on this:
    self thread SpawnWeapon(undefined,"cheytac_fmj_xmags_mp","Inte rvention",Location+(0,0,0),0);

    Location has to replaced with the location where the weapon if to be spawned like this:
    self thread SpawnWeapon(undefined,"cheytac_fmj_xmags_mp","Inte rvention",(123,456,789)+(0,0,0),0);

    The numbers you replaced was the angles, not the location..
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    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]

  5. #5
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy
    EDIT!:


    doesnt work:
    Code:
    self thread SpawnWeapon(undefined,"cheytac_fmj_xmags_mp","Intervention",(4738,-5596,2640)+(0,0,0),0);
    i did the same as u said filled in the coordinates (4738,-5596,2640)
    Last edited by TheSaboteur; 09-24-2010 at 05:13 AM.



    Bring a Ding Ding Baby!

  6. #6
    kerocx's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    79
    Reputation
    10
    Thanks
    6
    self thread SpawnWeapon(undefined,"cheytac_fmj_xmags_mp","Inte rvention",(4738,-5596,2640)+(0,0,0),0);
    works for me. Ur thread needs another } at the bottom.
    Last edited by kerocx; 09-24-2010 at 09:39 AM.

  7. The Following User Says Thank You to kerocx For This Useful Post:

    TheSaboteur (09-24-2010)

  8. #7
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy
    Quote Originally Posted by kerocx View Post
    self thread SpawnWeapon(undefined,"cheytac_fmj_xmags_mp","Inte rvention",(4738,-5596,2640)+(0,0,0),0);
    works for me. Ur thread needs another } at the bottom.
    thanks my angel ^^



    Bring a Ding Ding Baby!

  9. #8
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,057
    Reputation
    1007
    Thanks
    2,013
    /Marked as Solved

    Ex Middleman

Similar Threads

  1. Please Help Fix this Code!
    By o0OpurezO0o in forum Visual Basic Programming
    Replies: 42
    Last Post: 11-09-2010, 03:03 PM
  2. [SOLVED]key code help
    By zeffke008 in forum Call of Duty Modern Warfare 2 Help
    Replies: 2
    Last Post: 11-08-2010, 08:55 AM
  3. [Solved]M9 Weapon Code
    By edub18 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 2
    Last Post: 10-07-2010, 11:37 AM
  4. [SOLVED] Weapon Codes
    By Grimkin92 in forum Call of Duty Modern Warfare 2 Help
    Replies: 4
    Last Post: 08-14-2010, 10:17 PM
  5. [SOLVED] Coding help.
    By dheir in forum Call of Duty Modern Warfare 2 Help
    Replies: 5
    Last Post: 06-19-2010, 11:21 PM