Door and Keypad.
#1

Now I need help from someone who has a object or map editor to help me with this.I want to create a door here.The picture.I need the door to be in the entrance and have keypads.But only admins can access it, not players.I want someone to show me in gamemode pawn the suitable door and all pawn codes for creating this.
Reply
#2

Should be in Request Section.
Reply
#3

But just If you know it, please help me out.
Reply
#4

Have you some admin system?
Reply
#5

something like this ~if(isplayeradmin)~


sry for dublepost :S
Reply
#6

Yes.I'm creating it for a Admin Class.A Office for admins.So I want a area closed so only Admins can go in.
Reply
#7

you add the door and use this code

PHP код:
new door;
Public 
OnPlayerModeInit
{
door CreateObject(here the cordinates of the closed door);
}

public 
OnPlayerCommandText(playeridcmdtext[])
{

    if (
strcmp("/open"cmdtexttrue10) == 0)
    {
                If(
isplayeradmin//here put what you using on your admin system!
                
{
        
MoveObject(door,here the coordinates of the opened door,here the speed of moving exp5.0);
        return 
1;
            }   
        }
        if (
strcmp("/close"cmdtexttrue10) == 0)
    {
                If(
isplayeradmin//here put what you using on your admin system!
                
{
        
MoveObject(door,here the coordinates of the closeddoor,here the speed of moving exp5.0);
        return 
1;
            }   
        }
        return 
0;

Reply
#8

Thanks Pasa
Reply
#9

No problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)