Скажите пожалуйста в чем тут проблема! Он не хочет телепортироватс((
PHP код:
if(strcmp(cmd"/gotoo"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
              
ShowPlayerDialog(playerid150DIALOG_STYLE_LIST"Gotoo""ls \nsf\nlv \nash \nтюрьма \nотель""ТП""отмена");
              return 
1;
            }
            new 
Float:plocx,Float:plocy,Float:plocz;
            new 
plo;
            
plo ReturnUser(tmp);
            if (
IsPlayerConnected(plo))
            {
                if(
plo != INVALID_PLAYER_ID)
                {
                    if (
PlayerInfo[playerid][pAdmin] >= 1)
                    {
                        if(
Spectate[playerid] != 255)
                        {
                            
Spectate[playerid] = 256;
                        }
                        
GetPlayerPos(ploplocxplocyplocz);
                        if(
PlayerInfo[plo][pInt] > 0)
                        {
                            
SetPlayerInterior(playerid,PlayerInfo[plo][pInt]);
                            
PlayerInfo[playerid][pInt] = PlayerInfo[plo][pInt];
                            
PlayerInfo[playerid][pLocal] = PlayerInfo[plo][pLocal];
                        }
                        if(
PlayerInfo[playerid][pInt] == 0)
                        {
                            
SetPlayerInterior(playerid,0);
                        }
                        if(
plocz 530.0 && PlayerInfo[plo][pInt] == 0//the highest land point in sa = 526.8
                        
{
                            
SetPlayerInterior(playerid,1);
                            
PlayerInfo[playerid][pInt] = 1;
                        }
                        if (
GetPlayerState(playerid) == 2)
                        {
                            new 
tmpcar GetPlayerVehicleID(playerid);
                            
SetVehiclePos(tmpcarplocxplocy+4plocz);
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                        }
                        else
                        {
                            
SetPlayerPos(playerid,plocx,plocy+2plocz);
                        }
                        
SendClientMessage(playeridCOLOR_GRAD1"   вы телепортированы);
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_GRAD1, "   
не достаточно прав!");
                    }
                }
            }
            else
            {
                format(string, sizeof(string), "   
%нет такого игрока.", plo);
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
        }
        return 1;
    } 
PHP код:
else if(dialogid == 13)
            {
            if(
response)
            {
             if(
listitem == 0)
            {
                
ShowPlayerDialog(playerid13DIALOG_STYLE_LIST"Gotoo""ls \nsf\nlv \nash \nтюрьма \nотель""ТП""отмена");
                
OnPlayerCommandText(playerid,"/gotols");
                return 
0;
            }
            else if(
listitem == 1)
            {
                
ShowPlayerDialog(playerid13DIALOG_STYLE_LIST"Gotoo""ls \nsf\nlv \nash \nтюрьма \nотель""ТП""отмена");
                
OnPlayerCommandText(playerid,"/gotosf");
                return 
0;
            }
            else if(
listitem == 2)
            {
                
ShowPlayerDialog(playerid13DIALOG_STYLE_LIST"Gotoo""ls \nsf\nlv \nash \nтюрьма \nотель""ТП""отмена");
                
OnPlayerCommandText(playerid,"/gotolv");
                return 
0;
            }
            else if(
listitem == 3)
            {
                
ShowPlayerDialog(playerid13DIALOG_STYLE_LIST"Gotoo""ls \nsf\nlv \nash \nтюрьма \nотель""ТП""отмена");
                
SetPlayerPos(playerid, -2020.05, -90.1535.32);
                
SetPlayerInterior(playerid,0);
                
SendClientMessage(playeridCOLOR_GREY"Âû òåëåïîðòèðîâàíû");
                return 
0;
            }
            else if(
listitem == 4)
            {
                
ShowPlayerDialog(playerid13DIALOG_STYLE_LIST"Gotoo""ls \nsf\nlv \nash \nтюрьма \nотель""ТП""отмена");
                
SetPlayerPos(playerid264.3481.291004.68);
                
SetPlayerInterior(playerid6);
                
SetPlayerVirtualWorld(playerid,0);
                
SendClientMessage(playeridCOLOR_GREY"Âû òåëåïîðòèðîâàíû");
                return 
0;
            }
            else if(
listitem == 5)
            {
                
ShowPlayerDialog(playerid13DIALOG_STYLE_LIST"Gotoo""ls \nsf\nlv \nash \nтюрьма \nотель""ТП""отмена");
                
SetPlayerPos(playerid1636.85, -1339.6717.45);
                
SetPlayerVirtualWorld(playerid,0);
                
SetPlayerInterior(playerid0);
                
SendClientMessage(playeridCOLOR_GREY"Âû òåëåïîðòèðîâàíû");
                return 
0;
            }
        }

    return 
1;