Page 1 of 1

Can someone give me a walkthrough on how to make a GUID tele

Posted: January 19th, 2014, 3:03 am
by Pun1sheR
I have the script for it, but i have no idea of what to do in radiant? Can anyone explain please?


adminroom()
{
teleg1 = "ea4c8b0d4ac809dc05684336b6090cf2";
teleg2 = "17394706c57eec6b6f15c16f42aa99a0";
teleg3 = "";
teletrig = getent("adminroom","targetname");
while (1)
{
teletrig waittill ("trigger", user );
tempGuid = user getGUID();
if((tempGuid == teleg1) || (tempGuid == teleg2) || (tempGuid == teleg3)
{
org2 = (0,168,-364);
user setOrigin(org2, 0.1);
}
else
{
user suicide();
wait 3;
}
}
}

Re: Can someone give me a walkthrough on how to make a GUID

Posted: January 19th, 2014, 11:31 am
by Drofder2004
It looks ok, this will not work on a listen server however, your server must be online/dedi.

Easiest thing to do check the value of the GUID of the user by printing it to screen, if it comes back as zero, you are not able to retrieve GUIDs.

Re: Can someone give me a walkthrough on how to make a GUID

Posted: January 19th, 2014, 1:43 pm
by Pedsdude
- Create a brush
- Give it the 'trigger' texture
- Select the brush
- Right click in 2D view and go Trigger > Use (if you want a user to press Use to activate it, otherwise you can also use Trigger > Multiple so that they are teleported when they walk on it).
- With the brush selected, press 'N' to bring up the entities box. Enter key as "targetname" as value as "adminroom".

Re: Can someone give me a walkthrough on how to make a GUID

Posted: January 19th, 2014, 2:58 pm
by Drofder2004
Pedsdude wrote:- Create a brush
- Give it the 'trigger' texture
- Select the brush
- Right click in 2D view and go Trigger > Use (if you want a user to press Use to activate it, otherwise you can also use Trigger > Multiple so that they are teleported when they walk on it).
- With the brush selected, press 'N' to bring up the entities box. Enter key as "targetname" as value as "adminroom".
Oops, that's what I get for script reading instead of question reading.

Do this ^.

Re: Can someone give me a walkthrough on how to make a GUID

Posted: January 19th, 2014, 9:14 pm
by Pun1sheR
Thank you PeDs and Drofder, the script gives me errors having to do with the tempGuid section of the script, it keeps telling me that it is not defined, yet i have it defined clearly

Re: Can someone give me a walkthrough on how to make a GUID

Posted: January 19th, 2014, 9:36 pm
by Drofder2004
After the "getGUID" do a print

Code: Select all

iprintlnbold("^1*** ^7Player: " + user.name +" ^7GUID: " + tempGuid);
And finally, are you running it on a dedicated server?

Re: Can someone give me a walkthrough on how to make a GUID

Posted: January 20th, 2014, 3:46 pm
by Pun1sheR
No im not, but i cant even get in the map because it gives me that error.

Re: Can someone give me a walkthrough on how to make a GUID

Posted: January 20th, 2014, 4:37 pm
by Drofder2004
Screenshot the error please.