Jump to content
  • 0

Nu respawneaza in DM


nhunor58

Question

Salutare all am facut si eu un script de minigun DM dar cand mor nu respawnez in DM.

Aici este scriptul:[pawn] #include <a_samp>

      #define COLOR_GREEN 0x6AF7E1FF

        new DM[MAX_PLAYERS];

        new InMinigun[MAX_PLAYERS];

        public OnPlayerCommandText(playerid, cmdtext[])

        {

            if(!strcmp(cmdtext, "/minigun", true))

            {

                    new pname[MAX_PLAYER_NAME], string3[128];

                    DM[playerid] = 1;

                    InMinigun[playerid] = 1;

                    SetPlayerPos(playerid, 1303.0999755859, 2166.3999023438, 10.699999809265);

                    ResetPlayerWeapons(playerid);

                    GivePlayerWeapon(playerid,38 , 9999);

                    GameTextForPlayer(playerid,"~r~~h~WeLcOmE To MiNiGuN",3000,5);

                    GetPlayerName(playerid, pname, sizeof (pname));

                    format(string3, sizeof(string3),"%s HaS GoNe To MiNiGuN ~r~(/minigun)~p~", pname);

                    SendClientMessage(playerid, COLOR_GREEN, string3);

                    SetPlayerFacingAngle(playerid, 0.0);

                    SetPlayerInterior(playerid, 0);

                    SendClientMessage(playerid, 0x6AF7E1FF, " If you are caught fire zone STUNT These weapons MAKE JAIL / kick / ban permanently!");

                    SendClientMessage(playerid, COLOR_GREEN, "If you want to get out of DM use the command /exitdm!");

                    return 1;

            }

            if(!strcmp(cmdtext, "/exit", true))

            {

              SendClientMessage(playerid, -1, "Ai iesit din DM!");

              InMinigun[playerid] = 0;

              DM[playerid] = 0;

              return 1;

            }

            return 0;

        }

    public OnPlayerSpawn( playerid)

    {

    if( InMinigun[playerid] == 1 )

    {

    SetPlayerPos(playerid, 1303.0999755859, 2166.3999023438, 10.699999809265);

    }

    return 1;

    }

[/pawn]Va rog sa ma ajutati...

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Am pus dar cand mor ma pune acolo dar dupa acesta iarasi mor automat si ma spawneaza in oras:

Full script:[PAWN]#include <a_samp>

      #define COLOR_GREEN 0x6AF7E1FF

        new DM[MAX_PLAYERS];

        new InMinigun[MAX_PLAYERS];

        public OnPlayerCommandText(playerid, cmdtext[])

        {

            if(!strcmp(cmdtext, "/minigun", true))

            {

                    new pname[MAX_PLAYER_NAME], string3[128];

                    DM[playerid] = 1;

                    InMinigun[playerid] = 1;

                    SetPlayerPos(playerid, 1303.0999755859, 2166.3999023438, 10.699999809265);

                    ResetPlayerWeapons(playerid);

                    GivePlayerWeapon(playerid,38 , 9999);

                    GameTextForPlayer(playerid,"~r~~h~WeLcOmE To MiNiGuN",3000,5);

                    GetPlayerName(playerid, pname, sizeof (pname));

                    format(string3, sizeof(string3),"%s HaS GoNe To MiNiGuN ~r~(/minigun)~p~", pname);

                    SendClientMessage(playerid, COLOR_GREEN, string3);

                    SetPlayerFacingAngle(playerid, 0.0);

                    SetPlayerInterior(playerid, 0);

                    SendClientMessage(playerid, 0x6AF7E1FF, " If you are caught fire zone STUNT These weapons MAKE JAIL / kick / ban permanently!");

                    SendClientMessage(playerid, COLOR_GREEN, "If you want to get out of DM use the command /exit!");

                    return 1;

            }

            if(!strcmp(cmdtext, "/exit", true))

            {

              SendClientMessage(playerid, -1, "Ai iesit din DM!");

              InMinigun[playerid] = 0;

              DM[playerid] = 0;

              ResetPlayerWeapons(playerid);

              return 1;

            }

            return 0;

        }

    public OnPlayerSpawn( playerid)

    {

    if( InMinigun[playerid] == 1 )

    {

    ResetPlayerWeapons(playerid);

    SetPlayerPos(playerid, 1303.0999755859, 2166.3999023438, 10.699999809265);

    GivePlayerWeapon(playerid,38 , 9999);

    }

    return 1;

    }

   

    public OnPlayerDeath( playerid)

    {

    if( InMinigun[playerid] == 1 )

    {

    ResetPlayerWeapons(playerid);

    SetPlayerPos(playerid, 1303.0999755859, 2166.3999023438, 10.699999809265);

    GivePlayerWeapon(playerid,38 , 9999);

    }

    return 1;

    }

[/PAWN]Si mersi pentru ajutorul dat pana acum...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.