Mw2 -A map like cod 5

Posts 1–15 of 15 · Page 1 of 1
Mw2 -A map like cod 5
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:






****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));
----------------->SpawnWeapons Add in MapEdit or _maps_objects<---------------

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;
}
}
CLick in eslance

imageshack .... View photo
i already kno the code but mines much different, u need the codes tho spawn weapons
the weapons are on the wall.

I would like to know, and take up arms but you take away money.

Sorry for english ;(
u forgot the SpawnWeapon(xxxxxxx)
Yep, without the weaponspawn code this'll be useless and Jimmy, aren't you using my code?
Pls make the 100% correctly Code as _rank.gsc, _events.gsc,...etc and make it downloadable!
Remember I had this ages ago..
Exact same spawn code.
Didn't this create massive lagg after someone left the game? Hmmm... maybe not
Sorry everyone for not putting the spawn Weapons


----> Sorry for my english <-----
Quote Originally Posted by Arasonic View Post
Remember I had this ages ago..
Exact same spawn code.
Didn't this create massive lagg after someone left the game? Hmmm... maybe not
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;
}
}
doesn't work
i put the code and bad syntex
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;
        }
}
Posts 1–15 of 15 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?