Jump to content

Question

Posted

Problema intalnita (descriere): Am pus pe gm meu,comanda /gotols,/gotosf,/gotolv.. Dar,daca dau /gotols ma da acolo unde am pus eu,doar ca nu se vede nimic,puteti vedea in imagine.. ce sa--i fac.. si la gotosf,si la gotolv tot asa e..
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu):

    if(strcmp(cmd, "/gotols", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 3)
            {
                if (GetPlayerState(playerid) == 2)
                {
                    new tmpcar = GetPlayerVehicleID(playerid);
                    SetVehiclePos(tmpcar, 1529.3167,-1679.2460,13.3828);
                }
                else
                {
                    SetPlayerPos(playerid, 1529.3167,-1679.2460,13.3828);
                }
                SendClientMessage(playerid, COLOR_WHITE, "Te-ai teleportat cu succes!");
                SetPlayerVirtualWorld(playerid, 0);
                SetPlayerInterior(playerid,1);
            }
            else
            {
                SendClientMessage(playerid, COLOR_WHITE, "Nu ai acces la aceasta comanda!");
            }
        }
        return 1;
    }


Imagini / Video (optional): Mai jos.

Ati incercat sa rezolvati singur?:

Untitled.png

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

Pune la SetPlayerInterior 0.

Edited by VeNoM.
  • 0
Posted
Quote

 if(strcmp(cmd, "/gotols", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 1)
            {
                if (GetPlayerState(playerid) == 2)
                {
                    new tmpcar = GetPlayerVehicleID(playerid);
                    SetVehiclePos(tmpcar, 1529.3167,-1679.2460,13.3828);
                }
                else
                {
                    SetPlayerPos(playerid, 1529.3167,-1679.2460,13.3828);
                }
                SendClientMessage(playerid, COLOR_RED, "....");
                SetPlayerVirtualWorld(playerid, 0);
                SetPlayerInterior(playerid,0);
            }
            else
            {
                SendClientMessage(playerid, COLOR_BLUE, ".....");
            }
        }
        return 1;
    }

Poftim.

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.