Results 1 to 12 of 12
  1. #1
    darkorlegend's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Island Canary
    Posts
    171
    Reputation
    10
    Thanks
    63
    My Mood
    Worried

    Unhappy CreateMoneywalls [ Help !!! please =( ]

    hello, we have advanced a little on the wall.

    We do not know to do is add you can buy a wall.

    Can you help me please?


    CreateMoneyWalls(start, end)
    {
    D = Distance((start[0], start[1], 0), (end[0], end[1], 0));
    H = Distance((0, 0, start[2]), (0, 0, end[2]));
    blocks = roundUp(D/55);
    height = roundUp(H/30);
    CX = end[0] - start[0];
    CY = end[1] - start[1];
    CZ = end[2] - start[2];
    XA = (CX/blocks);
    YA = (CY/blocks);
    ZA = (CZ/height);
    TXA = (XA/4);
    TYA = (YA/4);


    Temp = VectorToAngles(end - start);
    Angle = (0, Temp[1], 90);
    for(h = 0; h < height; h++){
    block = spawn("script_model", (start + (TXA, TYA, 10) + ((0, 0, ZA) * h)));
    block setModel("com_plasticcase_friendly");
    block.angles = Angle;
    block Solid();
    //block hide();
    block CloneBrushmodelToScriptmodel(level.airDropCrateCol lision);
    wait 0.0001;
    for(i = 1; i < blocks; i++){
    block = spawn("script_model", (start + ((XA, YA, 0) * i) + (0, 0, 10) + ((0, 0, ZA) * h)));
    block setModel("com_plasticcase_friendly");
    block.angles = Angle;
    block Solid();
    //block hide();
    block CloneBrushmodelToScriptmodel(level.airDropCrateCol lision );
    wait 0.0001;
    }
    block = spawn("script_model", ((end[0], end[1], start[2]) + (TXA * -1, TYA * -1, 10) + ((0, 0, ZA) * h)));
    block setModel("com_plasticcase_friendly");
    pos = (start + (TXA, TYA, 10) + ((0, 0, ZA) * h)+((XA, YA, 0) * i) + (0, 0, 10) + ((0, 0, ZA) * h)+(end[0], end[1], start[2]) + (TXA * -1, TYA * -1, 10) + ((0, 0, ZA) * h));//grax
    block.angles = Angle;
    block Solid();
    level.mwall = 0;
    //block hide();
    block CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
    block.headIcon = newHudElem();
    block.headIcon.x = block.origin[0];
    block.headIcon.y = block.origin[1];
    block.headIcon.z = block.origin[2] + 50;
    block.headIcon.alpha = 0.85;
    block.headIcon setShader( "cardicon_juggernaut_2", 10,10 );
    block.headIcon setWaypoint( true, true, false );
    trigger = spawn( "trigger_radius", pos, 0, 75, 50 );
    trigger.angles = angle;
    trigger thread MoneyWallThink(pos, angle);
    block thread MoneyWallDestroy();
    wait 0.0001;
    }
    }

    MoneyWallThink(pos, angle)
    {
    self endon("disconnect");
    level endon("Destroy");

    while(1)
    {
    self waittill( "trigger", player );
    if(Distance(pos, Player.origin) <= 75){
    Player setLowerMessage("activate", "Hold ^3[{+activate}]^7 to activate power [^2$^1100^7]" );}
    if(Distance(pos, Player.origin) >50){
    Player ClearLowerMessage("activate", 1);}
    if(Distance(pos, Player.origin) <= 75 && player.money >= 100 && player.pers["team"] == "allies" && player useButtonPressed())
    {
    player ClearLowerMessage("activate", 1);
    player.money -= 100;
    player notify("MONEY");
    player playSound("nuke_explosion");
    player thread maps\mp\gametypes\_rank::scorePopup( -10000, 0, (1,0,0), 1 );
    Announcement( "^2" + self.name + "^3Has activated the power." );
    level.mwall = 1;
    level thread PowerSpawner();
    level notify("power_activated");
    level notify("Destroy");
    wait 0.1;
    }
    else if(Distance(pos, Player.origin) <= 10000 && player.money <= 90 && player useButtonPressed())
    {
    player iPrintln("^1Not enough money for Power Need 10000!");
    wait 1;
    }
    wait .8;
    }
    }

    MoneyWallDestroy()
    {
    while(1)
    {
    if(level.mwall == 1)
    {
    self delete();
    self.headIcon destroy();
    }
    wait 0.1;
    }
    }
    Last edited by darkorlegend; 10-29-2011 at 01:47 PM.

  2. #2
    cgallagher21's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    1,627
    Reputation
    11
    Thanks
    325
    My Mood
    Angelic
    Can we see what it looks like in game?

  3. #3
    darkorlegend's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Island Canary
    Posts
    171
    Reputation
    10
    Thanks
    63
    My Mood
    Worried
    I get the wall.

    But I get to buy it

  4. #4
    krijnrien's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    7
    My Mood
    Goofy
    money wall? what u mean with that

  5. #5
    cgallagher21's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    1,627
    Reputation
    11
    Thanks
    325
    My Mood
    Angelic
    To buy a wall in the shop menu?

  6. #6
    darkorlegend's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Island Canary
    Posts
    171
    Reputation
    10
    Thanks
    63
    My Mood
    Worried
    to buy the wall.
    for example:

    Minutes 00:30 at 00:35

  7. #7
    SneakyPete's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    In a New World
    Posts
    531
    Reputation
    22
    Thanks
    25
    My Mood
    Happy
    you mean a buyable wall where in nazi zombies it lifts or moves something like that or a shop where it says buy wall and a wall pop up?

    Waiting between worlds that divide through a choice undefined
    A break in the line where all paths intertwine
    And no roads lead or progress behind
    And all signs read: "Know The Way. Decide"



  8. #8
    darkorlegend's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Island Canary
    Posts
    171
    Reputation
    10
    Thanks
    63
    My Mood
    Worried
    A wall that moves when you buy

  9. #9
    krijnrien's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    7
    My Mood
    Goofy
    just like doors in zombie mod, but here you need to buy it to let you get to the next point?

  10. #10
    darkorlegend's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Island Canary
    Posts
    171
    Reputation
    10
    Thanks
    63
    My Mood
    Worried
    just like doors in zombie mod, but here you need to buy it to let you get to the next point?

    ---> YES

  11. #11
    hgmoa's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    My Mood
    Cool
    No more problem raiikonn, darkolegend i made it this weekend with blocks linked between
    We have it I give you all the code before cause im in my mobile

  12. #12
    krijnrien's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    7
    My Mood
    Goofy
    before you cause im in my mobile? xD normal english plz?
    u mean you're on your mobile
    you have the code but you can't send it?

Similar Threads

  1. [Help Request] Help Please ! Crossfire PH or whatever
    By maek0witzki33 in forum CrossFire Help
    Replies: 10
    Last Post: 05-28-2013, 08:18 PM
  2. [Help Request] Black Cipher Help [please help]
    By zubni in forum Combat Arms Help
    Replies: 25
    Last Post: 05-14-2011, 07:50 PM
  3. [Help Request] New. Help Please :)
    By xclutchx in forum Vindictus Help
    Replies: 8
    Last Post: 05-05-2011, 01:52 PM
  4. [Help Request] help please
    By alpha3po in forum Combat Arms Help
    Replies: 6
    Last Post: 05-01-2011, 04:29 PM
  5. [Help Request] [ANSWERED]crossfire Help Please.
    By ownedpjer in forum CrossFire Help
    Replies: 2
    Last Post: 04-30-2011, 02:53 AM