[Help] Dynamic Door
#1

Hello How to make Dynamic Door IN pawn and it work ?
Reply
#2

I guess he wants a a door that can be created the user's feets, and for that door to be open-closd when player get closer, or as ****** said, it can mean a lot of things.

But if what i said is true, you need the next things:
- Writting or Reading system (Y_INI for example) or if you want a database: SQL or MySQL
- Multidimensional Variables and Arrays to stock everything you want to store for a door.
- SAMP Functions

OFF:You gave me an ideea for scripts, lol
Reply
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
yeah, we need more information than that! You haven't said anything about what mode you are using, what you want a "door" to do (I can think of several meanings), in what way you want it to be "dynamic" (a totally meaningless buzz-word).

Try again, and this time put some effort in to describing exactly what it is that you really want to be able to do.
Like Hitman HQ But it won't Wrok...
Код:
Exterior
pawn Код:
// Hitman HQ
    if(IsPlayerInRangeOfPoint(playerid, 2.0,  1938.545898, 165.629531, 37.281250))
    {
        if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
        {
            SetPlayerVirtualWorld(playerid, 666420);
            PlayerInfo[playerid][pVW] = 666420;
            SetPlayerInterior(playerid, 42);
            PlayerInfo[playerid][pInt] = 42;
            SetPlayerPos(playerid, 1277.019165, -758.428771, 5080.750000);
            SetPlayerFacingAngle(playerid, 358.16);
            SetCameraBehindPlayer(playerid);

            TogglePlayerControllable(playerid, 0);
            for(new o = 0; o < 6; o++)
            {
                TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
            }
            SetPVarInt(playerid, "LoadingObjects", 1);
            SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
            SendClientMessage(playerid, COLOR_WHITE, "You can /order weaponry in the armory room.");
        }
    }
Код:
Interior
pawn Код:
// Hitman HQ
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 1277.019165, -758.428771, 5080.750000) && (GetPlayerVirtualWorld(playerid) == 666420))
    {
        if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
        {
            SetPlayerVirtualWorld(playerid, 0);
            PlayerInfo[playerid][pVW] = 0;
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, 1938.545898, 165.629531, 37.281250);
            SetPlayerFacingAngle(playerid, 338.54);
            SetCameraBehindPlayer(playerid);
        }
    }
Reply
#4

Where is that code placed in your script? And next time you need to put more detail in the original post.
Reply
#5

Quote:
Originally Posted by Abagail
Посмотреть сообщение
Where is that code placed in your script? And next time you need to put more detail in the original post.
Man i posted it
Reply
#6

Quote:
Originally Posted by Kaylen
Посмотреть сообщение
Man i posted it
I mean where in THE SCRIPT is the code placed. If you can't figure out what that means then maybe SA-MP isn't for you, or even programming. Unless your just trying to troll then the question is pretty obvious.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)