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 04: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,802
    Reputation
    3165
    Thanks
    73,330
    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.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]

  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 06: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 10: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,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. Please Help Fix this Code!
    By o0OpurezO0o in forum Visual Basic Programming
    Replies: 42
    Last Post: 11-09-2010, 04: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, 09: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, 12:37 PM
  4. [SOLVED] Weapon Codes
    By Grimkin92 in forum Call of Duty Modern Warfare 2 Help
    Replies: 4
    Last Post: 08-14-2010, 11:17 PM
  5. [SOLVED] Coding help.
    By dheir in forum Call of Duty Modern Warfare 2 Help
    Replies: 5
    Last Post: 06-20-2010, 12:21 AM