Jump to content
  • 0

Problema Jetpack


Myhaytza1

Question

Am si eu comanda:

[pawn] if(strcmp(cmd, "/jetpack", true) == 0)

{

        if(IsPlayerConnected(playerid))

    {

if (PlayerInfo[playerid][pAdmin] >= 1339)

{

            SendClientMessage(playerid, COLOR_LIGHTRED, "You are now using Jetpack!");

            SetPlayerSpecialAction(playerid,2);

            return 1;

            }

            else

            {

            SendClientMessage(playerid,COLOR_GREY,"You can't use this command!");

            return 1;

            }

        }

    }[/pawn]

Cand o dau zice ca am luat dar nu imi da jetpack dc?

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

[pawn]    if(strcmp(cmd, "/jetpack", true) == 0)

    {

        if(IsPlayerConnected(playerid))

{

    if (PlayerInfo[playerid][pAdmin] >= 1339)

    {

                if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)

                {

                    SendClientMessage(playerid, COLOR_LIGHTRED, "You already have an Jetpack!");

                    return 1;

                }

                SendClientMessage(playerid, COLOR_LIGHTRED, "You are now using Jetpack!");

            SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);

            return 1;

            }

            else

            {

            SendClientMessage(playerid,COLOR_GREY,"You need an higher level to use this command.");

            return 1;

            }

        }

    }[/pawn]

Link to comment
Share on other sites

[pawn]if(strcmp(cmdtext,"/jetpack",true) == 0)

    {

        if(PlayerInfo[playerid][pAdmin] == 1338 )

        {

        new Float:X,Float:Y,Float:Z;

        GetPlayerPos(playerid,X,Y,Z);

        SetPlayerPos(playerid, X, Y, Z);

        CreatePickup(370,2,X,Y,Z);

        SendClientMessage(playerid, COLOR_GREY, "* Spawned Jetpack");

        }

        else

        {

              SendClientMessage(playerid, 0xAA0000AA, "You need an higher level to use this command.");

        }

        return 1;

    } [/pawn]

[glow=blue,2,300]SAMP.[glow=yellow,2,300]RSP-GAME[glow=red,2,300].NET[/glow][/glow][/glow]

Link to comment
Share on other sites

De ce v-ati complicat sa faceti o comanda prea lunga?

Poftim ceva scurt de /jetpack

[pawn]  if(strcmp(cmd, "/jetpack", true) == 0)

  {

      if(IsPlayerConnected(playerid))

      {

          if (PlayerInfo[playerid][pAdmin] < 6)

        {

            SendClientMessage(playerid, COLOR_GRAD1, "Nu esti autorizat sa folosesti aceasta comanda!");

            return 1;

        }

        SetPlayerSpecialAction(playerid,2);

        SendClientMessage(playerid, COLOR_YELLOW2, "Ai primi un jetpack de la Darksone");

        SendClientMessage(playerid, COLOR_YELLOW2, "Te rugam sa nu abuzezi !");

      }

      return 1;

  }

//==[/pawn]

Momentan este pentru admin level 6 in sus

[pawn]if (PlayerInfo[playerid][pAdmin] < 6)[/pawn]

Daca doresti sa schimbi level-ul la admin, modifici acel "6"

--

Pentru a evita ban-ul trebuie sa nu restrictionezi jetpack-ul sau sa dezactivezi anti-cheat(-ul).

Rareori ne gândim la ceea ce avem, dar mereu la ceea ce ne lipseşte

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.