Door and Keypad.
#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


Messages In This Thread
Door and Keypad. - by Sting. - 17.09.2011, 15:01
Re: Door and Keypad. - by =WoR=Varth - 17.09.2011, 15:06
Re: Door and Keypad. - by Sting. - 17.09.2011, 15:21
Re: Door and Keypad. - by Pasa - 17.09.2011, 15:26
Re: Door and Keypad. - by Pasa - 17.09.2011, 15:28
Re: Door and Keypad. - by Sting. - 17.09.2011, 15:29
Re: Door and Keypad. - by Pasa - 17.09.2011, 15:36
Re: Door and Keypad. - by Sting. - 17.09.2011, 15:39
Re: Door and Keypad. - by Pasa - 17.09.2011, 15:46

Forum Jump:


Users browsing this thread: 1 Guest(s)