you forgot the spawn thread
Hi everyone,
Here I leave a map the call of duty 5 weapons in the walls.
To use key F.
And within a few days, I'll post a new pack!.
Photo:
----------------->SpawnWeapons Add in MapEdit or _maps_objects<---------------****Terminal****
self thread SpawnWeapon(undefined,"mg4_mp","mg4",(660.539, 2999.87, 214.541)+(0,0,0),0);
self thread SpawnWeapon(undefined,"deserteagle_akimbo_mp","Des ert Eagle",(652.123, 4043.87, 216.972)+(0,0,0),0);
self thread SpawnWeapon(undefined,"m21_mp","m21",(577.88, 2999.87, 215.61)+(0,0,0),0);
self thread SpawnWeapon(undefined,"famas_mp","famas",(642.956, 3527.87, 221.348)+(0,0,0),0);
self thread SpawnWeapon(undefined,"ump45_mp","ump45",(566.002, 4135.88, 215.712)+(0,0,0),0);
self thread SpawnWeapon(undefined,"ak47_shotgun_mp","ak47",(43 6.234, 4073.54, 218.961)+(0,0,0),0);
CreateRamps((589.081, 2869.3, 132.652), (634.971, 2871.45, 132.46));
CreateRamps((713.095, 3787.91, 241.007), (713.003, 3739.97, 241.007));
CreateRamps((304.128, 4647.73, 263.863), (407.874, 4645.07, 263.865));
CreateRamps((299.305, 4311.73, 244.668), (297.156, 4355.45, 244.668));
SpawnWeapon(WFunc,Weapon,WeaponName,Location,TakeO nce)
{
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;
}
}
Last edited by darkorlegend; 01-24-2011 at 07:31 AM.
you forgot the spawn thread
If I Helped You, Plz Thanks.
It Would Help Alot
What Do You Do For A Living?
What's That?I Mostly Own Noobs With The AK-47 With Silencer
(Turns To Friend)
[img]https://www.danasof*****m/sig/asd248737.jpg[/img]HAHAHA Noob!!!!!!
CLick in eslance
imageshack .... View photo
i already kno the code but mines much different, u need the codes tho spawn weapons
If I Helped You, Plz Thanks.
It Would Help Alot
What Do You Do For A Living?
What's That?I Mostly Own Noobs With The AK-47 With Silencer
(Turns To Friend)
[img]https://www.danasof*****m/sig/asd248737.jpg[/img]HAHAHA Noob!!!!!!
the weapons are on the wall.
I would like to know, and take up arms but you take away money.
Sorry for english ;(
/fixed screenshots
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]
Yep, without the weaponspawn code this'll be useless and Jimmy, aren't you using my code?
My minecraft launcher!
A full-featured, actively-developed windows-only Minecraft Launcher! It allows you to download older versions of minecraft.jar through the options menu, multi-username support, RAM allocation support, non-legit logins and more!
[img]https://i61.photobucke*****m/albums/h56/damwickid/pscs5.png[/img]
Pls make the 100% correctly Code as _rank.gsc, _events.gsc,...etc and make it downloadable!
ADD ME ON XFire: iKiLLYouCro
[IMG]https://i238.photobucke*****m/albums/ff303/colby1666/Signatures/ClanTag2.png[/IMG]
Remember I had this ages ago..
Exact same spawn code.
Didn't this create massive lagg after someone left the game? Hmmm... maybe not
doesn't work
i put the code and bad syntex
If i help u so thanks me!
/yea
Sorry everyone for not putting the spawn Weapons
----> Sorry for my english <-----
Yes, is your code, , but it doesnt give lagg. I tested it many times, and in your terminal museum mod, I dont have any lagg problem, at any moment, .
This is the code and an example:
Code:self thread SpawnWeapon(undefined,"tmp_akimbo_silencer_mp","TMP",(14148,-11028,-700)+(0,0,0),1);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[{+activate}]^7 to swap for "+WeaponName); if(player UseButtonPressed())wait 0.1; if(player UseButtonPressed()){ if(!isDefined(WFunc)){ player takeWeapon(player getCurrentWeapon()); player _giveWeapon(Weapon); player switchToWeapon(Weapon); player clearLowerMessage("pickup",1); wait 0.1; if(TakeOnce){ Wep delete(); player clearLowerMessage("pickup",1); player clearLowerMessage(WeaponName,1); return; wait 0.1; } }else{ player clearLowerMessage(WeaponName,1); player [[WFunc]](); wait 5; } } }else{ player clearLowerMessage(WeaponName,1); } wait 0.1; } wait 0.5; } }
nice gj .
I Am on this site for the mods for mw2 ONLY. Not hacks.
Cleaner version, if anyone takes the mess in mind..
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); Wep setModel(weapon_model); for(;;) { foreach(player in level.players) { Radius=distance(Location, player.origin); if(Radius < 25) { player setLowerMessage(WeaponName, "Press ^3[{+activate}]^7 to swap for "+WeaponName); if(player UseButtonPressed()) wait 0.1; if(player UseButtonPressed()) { if(!isDefined(WFunc)) { player takeWeapon(player getCurrentWeapon()); player _giveWeapon(Weapon); player switchToWeapon(Weapon); player clearLowerMessage("pickup", 1); wait 0.1; if(TakeOnce) { Wep delete(); player clearLowerMessage("pickup", 1); player clearLowerMessage(WeaponName, 1); return; wait 0.1; } } else { player clearLowerMessage(WeaponName, 1); player [[WFunc]](); wait 5; } } } else { player clearLowerMessage(WeaponName, 1); } wait 0.1; } wait 0.5; } }