Pixel

GUID Room

39 posts in this topic

Does anyone have the script for a GUID room that I can use? Credits will be given to the person who made it, thanks.

0

Share this post


Link to post
Share on other sites

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... ;)

0

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites


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 Permission");

}

}

}

0

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites

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.

 

It was the one from twist :> 

0

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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 Permission");
        }
    }
}

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.

 

 

 

 

Would this work?

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

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

0

Share this post


Link to post
Share on other sites

The one staab posted is the one i release on braxi forums, loads of people use it now so i guess it works :dave:

0

Share this post


Link to post
Share on other sites

Erhm, nice... I guess... GG on putting else after a while() loop. :dumb:

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.

 

 

 

 

I never said I made the script, It was already like that...

 

:dave: 

0

Share this post


Link to post
Share on other sites

The one staab posted is the one i release on braxi forums, loads of people use it now so i guess it works :dave:

If that is your script then you should l2 script Lossy. :troll: Think Zack modified it though cause even though you're Lossy, putting else behind a while() loop is not something you'd do. :dave:

0

Share this post


Link to post
Share on other sites

If that is your script then you should l2 script Lossy. :troll:

 

If it works then it works... 

 

'Don't fix what's not broken..'

0

Share this post


Link to post
Share on other sites

If it works then it works... 

 

'Don't fix what's not broken..'

It is broken though:

 

Erhm, nice... I guess... GG on putting else after a while() loop. :dumb:

0

Share this post


Link to post
Share on other sites

It works, So it isn't as you say 'BROKEN' 

 

Even if it is after a while() loop... 

0

Share this post


Link to post
Share on other sites

If that is your script then you should l2 script Lossy. :troll: Think Zack modified it though cause even though you're Lossy, putting else behind a while() loop is not something you'd do. :dave:

the script was made for a VIP ROOM, you gotta have a loop so more than 1 person can enter silly.

0

Share this post


Link to post
Share on other sites

I think he meant that the spacing is weird. 

 

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 Permission");
                }
        }
}
0

Share this post


Link to post
Share on other sites

the script was made for a VIP ROOM, you gotta have a loop so more than 1 person can enter silly.

Nvm what I said, formatting was weird and got me confused cause else was on the same amount of tabs (idk name k) as your while() loop. I'm bad at reading. :c I iz nublet, sry guyz. :okay:

0

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

This is a fun script to :D

findplayerexample()
{
	wait 6;
	
	players = getentarray("player", "classname");
	for(i=0;i<players.size;i++)
	{
		if( GetSubStr( players[i] GetGuid(), 24, 32 ) == "placehereyourguid" ) //place the last 10 numbers/letters of your guid
		{
		  
		 	players[i] iprintLnBold("^9Badman!");
			players[i] GiveWeapon("m40a3_mp"); //put here any weapon
			
		} 
	}
}
0

Share this post


Link to post
Share on other sites

You do know its only the last 8, right? 

I mean, I don't know if that matters 

0

Share this post


Link to post
Share on other sites

 

This is a fun script to :D

findplayerexample()
{
	wait 6;
	
	players = getentarray("player", "classname");
	for(i=0;i<players.size;i++)
	{
		if( GetSubStr( players[i] GetGuid(), 24, 32 ) == "placehereyourguid" ) //place the last 10 numbers/letters of your guid
		{
		  
		 	players[i] iprintLnBold("^9Badman!");
			players[i] GiveWeapon("m40a3_mp"); //put here any weapon
			
		} 
	}
}

I don't see what's fun about that tbh, if I want an m40a3, I'll just go in the sniper room. I have using the sniper when running through the map. I prefer pistol.

0

Share this post


Link to post
Share on other sites

You can spawn what ever you want there so :dave:

> Spawn

 

Your script would become a mess with multiple GUIDs, I'd recommend using a variable to store the player's GUID.

0

Share this post


Link to post
Share on other sites

> Spawn

 

Your script would become a mess with multiple GUIDs, I'd recommend using a variable to store the player's GUID.

 

Not if you copy and paste the whole script and name it under a other thread

0

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now