[HELp] Some questions
#5

pawn Код:
if(strcmp(cmd, "/gotojh", true) == 0)
    {
      if(IsPlayerConnected(playerid))
      {
            if (PlayerInfo[playerid][pAdmin] >= 3)
            {
                if (GetPlayerState(playerid) == 2)
                {
                    new tmpcar = GetPlayerVehicleID(playerid);
                    SetVehiclePos(tmpcar, 1462.865723, -89.066154, 19.891687);
                    TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                }
                else
                {
                    SetPlayerPos(playerid, 1462.865723, -89.066154, 19.891687);
                }
                SendClientMessage(playerid, COLOR_GRAD1, "  Teleportiran si");
                SetPlayerInterior(playerid,0);
                PlayerInfo[playerid][pInt] = 0;
            }
            else if(PlayerInfo[playerid][pAdmin] <= 3)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "  Nisi athoriziran da koristis ovu komandu!");
            }
        }
        return 1;
    }
Your co-ordinates was wrong you always have 3 sets. X, Y, Z, you only had X, Y so it didnt know where to send the player and as for your admin problem
Reply


Messages In This Thread
[HELp] Some questions - by SworDDicK - 29.11.2009, 08:55
Re: [HELp] Some questions - by SworDDicK - 29.11.2009, 10:45
Re: [HELp] Some questions - by Luka P. - 29.11.2009, 11:26
Re: [HELp] Some questions - by SworDDicK - 29.11.2009, 15:07
Re: [HELp] Some questions - by [NYRP]Mike. - 29.11.2009, 15:10

Forum Jump:


Users browsing this thread: 1 Guest(s)