Sign in to follow this  
Followers 0
RASTAMAN

Охрана Останкинской телебашни

1 post in this topic

Доброго времени суток! Хочу представить вам простенькую работу - Охрана Останкинской телебашни. На самом деле это просто шлагбаумы, управляемые командой. к сожалению скринов нет.шлагбаумы находятся при въезде в останкино.Автор gold-runet

Спойлер

new shlag3;
new shlag4;

 

Спойлер

forward shlag3close();
forward shlag4close();

 

Спойлер

CreateObject(966, 2104.969726,-1882.644409,17.822488, 0.000000,0.000000,180.000000);
    CreateObject(966, 2104.969726,-1882.644409,17.822488, 0.000000,0.000000,0.000000);
    shlag3 = CreateObject(968, 2104.851074,-1882.644409,18.640550, 0.000000,-90.000000,180.000000);
    shlag4 = CreateObject(968, 2105.123046,-1882.644409,18.640550, 0.000000,-90.000000,0.000000);
    CreateObject(1214, 2097.969726,-1882.644409,17.822488, 0.000000,0.000000,0.000000);
    CreateObject(1214, 2096.969726,-1882.644409,17.822488, 0.000000,0.000000,0.000000);
    CreateObject(1214, 2113.969726,-1882.644409,17.822488, 0.000000,0.000000,0.000000);
    CreateObject(1214, 2112.969726,-1882.644409,17.822488, 0.000000,0.000000,0.000000);
    Create3DTextLabel("Въезд - {09ff00}/шлаг3{FFFFFF}, выезд - {09ff00}/шлаг4", -1, 2104.969726, -1882.644409, 18.822488, 25.0 , 0, 0);

 

Спойлер

if(strcmp(cmdtext, "/шлаг3", true) == 0) {
        MoveObject(shlag3, 2104.851074,-1882.644409,18.640550+0.004, 0.004, 0.000000,0.000000,160.000000);
        SetTimer("shlag3close", 10000, 0);//Таймер
        SendClientMessage(playerid,green,"Охрана Останкинской телебашни: шлагбаум открыт");
    }
    if(strcmp(cmdtext, "/шлаг4", true) == 0) {
        MoveObject(shlag4, 2105.123046,-1882.644409,18.640550+0.004, 0.004, 0.000000,0.000000,0.000000);
        SetTimer("shlag4close", 10000, 0);//Таймер
        SendClientMessage(playerid,green,"Охрана Останкинской телебашни: шлагбаум открыт");
    }

 

Спойлер

public shlag3close()
{
    MoveObject(shlag3,2104.851074,-1882.644409,18.640550-0.004, 0.004, 0.000000,-90.000000,179.400054);
}
public shlag4close()
{
    MoveObject(shlag4,2105.123046,-1882.644409,18.640550-0.004, 0.004, 0.000000,-90.000000,0.000000);
}

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0