Pixel

Donator
  • Content count

    407
  • Joined

  • Last visited

Posts posted by Pixel


  1. Erhm, nice... I guess... GG on putting else after a while() loop. :dumb: You're also providing your whole Guid to anyone to get with this script.

    This is (in my opinion) a way too specific script, should've given him a general script like I did which he could easily implement.

     

     

     
     

    Are you calling guids() on a player entity? If so, change player getGuid() to self getGuid(). ;)

    Even with the one you gave me, wouldn't I have to do something like level waittill( "connected", player ); so "player" is defined?

     

    For this part I mean "(player getGuid(),24,32);"

    0

  2. I think that's the one I put in twist Staab. It does work, and is better then what Imagine put im my opinion. Just don't test it in devmap, because in devmap it doesn't register your GUID. But imagine's is just shorter, still works the same.

    Alright I'll work around using the one from twist (:

    0

  3. guidsecret()
    {
    	creator_trig = getEnt("guidsecret", "targetname");
    	org = getEnt("origin_creators", "targetname");
    
    	level.accepted1 = "GUID GOES HERE"; //Player Name To Remind You
    	level.accepted2 = "For Another Person"; //Player Name To Remind You
    	
    	while (1)
    	{
    		creator_trig waittill( "trigger", player );
    		tempGuid = player getGUID();
    		
    		if(player isTouching(creator_trig) && player useButtonPressed())
    		{
    			if((tempGuid == level.accepted1) || (tempGuid == level.accepted2))
    			{
    				player setOrigin( org.origin );
    				player setPlayerAngles( org.origin );
    			}
            }
            else
            {
                wait 0.5;
    			player iPrintlnBold("Text Here Displayed To People Who Don't Have Permisstion");
            }
        }
    }
    

    That looks larger than the other one, do they both work?

    0

  4. Don't know exactly how you wanna use it but getting a player's Guid and checking if it's a certain Guid goes like this:

    Guid = getSubStr(player getGuid(),24,32);
    if( Guid == "last 8 digits of GUID here" )
    {
    // Do stuff
    }
    

    Make sure you don't do something with it that gives players advantages though... ;)

    Would this work?

     

    guids()
    Guid = getSubStr(player getGuid(),24,32);
    if( Guid == "0a9aa5a2" )
    {
    self thread guidroom(); //A teleporter
    }
    
    0

  5. No need for an array. Just select all the brushes you want to move collectively and make them a brush model. The just do getEnt as they all count as one entity when given the same targetname.

    I'm so brain dead. This is what I normally do but I'm just being dumb now. Thanks  :dave:

    0

  6. I'm a noob when it comes to arrays (and a lot of other stuff, but I still don't understand arrays). I need two brushes to be move up, then 3 brushes to move down, and i need it on a loop. So I figured an array would be the best bet, and it's a good opportunity for me to learn arrays :) Thank you :D

    0

  7. Thought I'd share with you my new updated pics of my new Deathrun map that I'm making. It will still take me another month or so to complete, maybe longer.

     
    It's based in an electric factory, not everything is electric, but quite a few traps are. I might change the name yet.
     
    #1: Spawn
     

    xjGlCZK.png

     
    #2: Elevators
     

    0ZCBZY9.png

     
    #3: Room above elevators & spawn room
     

    NAcuVEm.png

     
    #4: First room of traps
     

    Tf8V5FX.png

     
    #5: First room of traps
     

    Aotppfj.png

     
    #6: Second Room of traps
     

    8qxnpTj.png

     
    #7: Second Room of traps
     

    90mJ8kt.png

     
    #8: Third room of traps
     

    hyhMEGV.png

     
    #9: Third room of traps
     

    8Mx5Uqd.png

     
    #10: Fourth room of traps
     

    F7qySaj.png

     
    #11: Fourth room of traps
     

    goESaed.png

     
    #12: Activator has choice to increase map difficulty
     

    3Yj2Me7.png

     
    Feedback welcome  ;D 
    0

  8. Well, iMtroll tried to help me over teamviewer, he tried the exact same as he is used to do with his own maps and it didn't worked, he said my mod-tools might be a bit corrupted.

     

     

    *NOTE*

     

    I'm installing mod-tools again and I'll see if it then works. I will let you know here if it works correctly then or not.

    My theory is, if your usermaps and mod folder are in "compatibility files" then it may be causing the problem. Compatibility files are stored in AppData. I reckon that's why mine doesn't work. http://gyazo.com/ee7d187d926a1afff2ad685fb11d9212

    0

  9. so it goes to the end of the switch when one case is executed. Because in a switch statement you (often) want only one case executed. 

    So like where there's multiple things happening in one script, like, random selecting scripts?

    0

  10. Slaya / Imagine, ignore any criticism given to you. Who says you can't just test it on a test server before release and have people such as Lossy test it and others to see if it's a good idea or not?

     

    You can happily make the idea work and implement it, but if (after testing it with others) it turns out bad, you can easily remove it before full release :)

    0

  11. I'd suggest using an xmodel of the weapon and creating a trigger and giving them the weapon through script

    Yeah I put the weapons in the script using switchto and more etc, I'm just not sure what's the different between the xmodel of the weapon and actually left clicking c3 grid and selecting a weapon?

    0