Jump to content
  • 0

Teleport admini


lucianmemo

Question

7 answers to this question

Recommended Posts

Depinde ce folosesti acum

EX 1:

    if(strcmp(cmdtext, "/AdminTeleport", true) == 0)
    {
          if(PlayerInfo[playerid][Level] >= 1)
          {
               SetPlayerPos(playerid,x, y, z);
          }
          retrun 1;
    }
EX 2:
    CMD:adminteleport( playerid, params[ ] )
    {
          if(PlayerInfo[playerid][Level] >= 1)
          {
               SetPlayerPos(playerid,x, y, z);
          }
          retrun 1;
    }
EX 3:
    dcmd_adminteleport( playerid, params[ ] )
    {
          if(PlayerInfo[playerid][Level] >= 1)
          {
               SetPlayerPos(playerid,x, y, z);
          }
          retrun 1;
    }

  • www.LcsNet.org
  • 91.233.106.13:7777
  • www.Joc-Miniclip.info

Link to comment
Share on other sites

In ladmin/LuxAdmin exista deja aceasta comanda: "/adminarea", uita-te cum este facuta si incearca sa faci alta sau editeaz-o pe aceasta ( daca folosesti ladmin/LuxAdmin ), nu toate comenzile de admini se creaza la fel pe sisteme de admin diferite, ladmin foloseste PlayerInfo, LuxAdmin foloseste AccInfo, 0Admin foloseste P_DATA, etc.

Link to comment
Share on other sites

E:\Luci\Server\pawno\SDM.pwn(8349) : error 017: undefined symbol "PlayerInfo"

E:\Luci\Server\pawno\SDM.pwn(8349) : warning 215: expression has no effect

E:\Luci\Server\pawno\SDM.pwn(8349) : error 001: expected token: ";", but found "]"

E:\Luci\Server\pawno\SDM.pwn(8349) : error 029: invalid expression, assumed zero

E:\Luci\Server\pawno\SDM.pwn(8349) : fatal error 107: too many error messages on one line

Uitate ce erori imi da:|

CMD:aworld( playerid, params[ ] )

    {

8349:        if(PlayerInfo[playerid][Level] >= 1)

          {

              SetPlayerPos(playerid, -2576.4392,3437.1260,72.5539);

  GameTextForPlayer(playerid,"----------------------------------",4000,6);

          }

          return 1;

    }

Link to comment
Share on other sites

[pawn]

CMD:aworld( playerid, params[ ] )

    {

    if(PlayerInfo[playerid][Level] >= 1)

          {

              SetPlayerPos(playerid, -2576.4392,3437.1260,72.5539);

            GameTextForPlayer(playerid,"----------------------------------",4000,6);

          }

          return 1;

    }

[/pawn]

cred ca era asa:

[pawn]CMD:aworld( playerid, params[ ] )

    {

    if(PlayerInfo[playerid][Level] >= 1);

          {

              SetPlayerPos(playerid, -2576.4392,3437.1260,72.5539);

            GameTextForPlayer(playerid,"----------------------------------",4000,6);

          }

          else

          {

          SendClientMessage(playerid, COLOR_RED, "This command is for administrators" );

          }

          return 1;

    }

[/pawn]

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.