Jump to content
  • 0

Problema la inchiderea portii


Gabster4Ever

Question

am un pwn la o poarta si nush de ce nu se inchide zice ce in 5 sec poarta se inchide dar nu merge uitati ..........

/*

[FS] By HsY

*/

#include <a_samp>

#define COLOR_YELLOW 0xFFFF00AA

#define COLOR_BLUE 0x2641FEAA

#define FILTERSCRIPT

forward GateClose();

new poarta;

public OnFilterScriptInit()

{

    poarta = CreateObject(975, 1529.6015625, -1685.9583740234, 14.057502746582, 0, 0, 0);

   

print("\n--------------------------------------");

print("            Poarta [FS]                  ");

print("--------------------------------------\n");

return 1;

}

public OnFilterScriptExit()

{

return 1;

}

public OnPlayerCommandText(playerid, cmdtext[])

{

    if (strcmp(cmdtext, "/poartals", true)==0)

    {

        MoveObject(poarta, 1539.8341064453, -1686.0211181641, 14.224103927612, 5.5);

        SetTimer("GateClose", 2000, 0);

        SendClientMessage(playerid, COLOR_YELLOW,"Ai platit intrarea pentru 100$! In 5 secunde Poarta se va inchide");

        GivePlayerMoney(playerid,-100);

        return 1;

    }

   

return 0;

}

public GateClose()

{

    MoveObject (poarta,1539.8341064453, -1686.0211181641, 14.224103927612, 2.5);

    return 1;

}

Am uitat ceva sau ce are ????

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

/*
[FS] By HsY
*/


#include <a_samp>

#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_BLUE 0x2641FEAA
#define FILTERSCRIPT
forward GateClose();
new poarta;
public OnFilterScriptInit()
{
    poarta = CreateObject(975, 1529.6015625, -1685.9583740234, 14.057502746582, 0, 0, 0);

   
   print("\n--------------------------------------");
   print("             Poarta [FS]                  ");
   print("--------------------------------------\n");
   return 1;
}

public OnFilterScriptExit()
{
   return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/poartals", true)==0)
    {
        MoveObject(poarta, 1539.8341064453, -1686.0211181641, 14.224103927612, 5.5);
        SetTimer("GateClose", 2000, 0);
        SendClientMessage(playerid, COLOR_YELLOW,"Ai platit intrarea pentru 100$! In 5 secunde Poarta se va inchide");
        GivePlayerMoney(playerid,-100);
        return 1;
    }
   
   return 0;
}

public GateClose()
{
    MoveObject (poarta,1529.6015625, -1685.9583740234, 14.057502746582, 2.5);
    return 1;
}

N-ai schimbat coordonatele cu cele originale la GateClose, ce ti-am dat mai sus merge.

Link to comment
Share on other sites

Man cum fac un maker teleport un simplu teleport care cand ajungi la maker sati apara pe ecran type /enter to enter si cand esti teleportat in zona respectiva sa iti apara type /exit to exit. As dori sami arati un pwn gata facut de la #include <a_samp>  .....pana la sfarsit si inca ceva

Cum pot face o masina de vanzare care sa ii ramana playerului dupa ce o cumpara /v buy ?? as dori tot asa de la a include a_samp pana la sfarsit

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.