host flag only

Posts 1–8 of 8 · Page 1 of 1
host flag only
Hi,

Can sombody make a code for mapedite.cfg for a teleport flag that only can be used by a host?

Thnx
lol just use if host
Just use a secret flag and when your going to it, use:
Code:
self hide();
and when you already gone in the flag, use:
Code:
self show();
You won't show up on the radar and you will be invisible to others.

But if you really want it how you asked then add 2 new thread inside MapEdit.gsc:
Code:
CreateHostElevator(enter, exit, angle)
{
    flag = spawn( "script_model", enter );
    flag setModel( level.elevator_model["enter"] );
    wait 0.01;
    flag = spawn( "script_model", exit );
    flag setModel( level.elevator_model["exit"] );
    wait 0.01;
    self thread HostElevatorThink(enter, exit, angle);
}

HostElevatorThink(enter, exit, angle)
{
    self endon("disconnect");
    while(1)
    {
        foreach(player in level.players)
        {
            if(Distance(enter, player.origin) <= 50 && player isHost()){
                player SetOrigin(exit);
                player SetPlayerAngles(angle);
            }
        }
        wait .25;
    }
}
Use CreateHostElevator the same way you would use CreateElevator.
is it posible to do it for vips??

then i just made a thread like
and i paste the codes self thread CreateHostElevator(enter, exit, angle) and
HostElevatorThink(enter, exit, angle)
??


Vip()




reply
Thank him, if he has helped you.
sure it is possible if u know howto make a vip system
Quote Originally Posted by kerocx View Post
sure it is possible if u know howto make a vip system
easy just whit the Guid's and some extra funtions like invis and ufo xD
doenst work me friend can still enter the vlag
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us