/goto command issue
#1

The command "/goto" seems to be available to non-staff players and I was wondering how I can make it exclusive for staff only. Here's the current code:

PHP код:
CMD:goto(playeridparams[])
{
    if 
PlayerInfo[playerid][pAdmin] >= 2)
    {
        if(
isnull(params))
        {
            
SendClientMessageEx(playeridCOLOR_WHITE"USAGE: /goto [location]");
            
SendClientMessageEx(playeridCOLOR_GRAD1"Locations 1: LS,SF,LV");
            
SendClientMessageEx(playeridCOLOR_GRAD2"Locations 2: stadium1,stadium2,stadium3,stadium4,int1,mall");
            
SendClientMessageEx(playeridCOLOR_GRAD3"Locations 3: bank,allsaints,countygen,gym,fbi,prison,rc,vip,mark");
            return 
1;
        }
        if(
GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
        {
            
SendClientMessageEx(playeridCOLOR_GRAD2"You can not do this while spectating.");
            return 
1;
        }
        if(
strcmp(params,"ls",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1529.6,-1691.2,13.3);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1529.6,-1691.2,13.3);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"sf",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1417.0,-295.8,14.1);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1417.0,-295.8,14.1);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"lv",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1699.21435.110.7);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1699.2,1435.110.7);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"bank",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1487.91, -1030.6023.66);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1487.91, -1030.6023.66);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"allsaints",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1192.78, -1292.6813.38);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1192.78, -1292.6813.38);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"countygen",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar2000.05, -1409.3616.99);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid2000.05, -1409.3616.99);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"gym",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar2227.60, -1674.8914.62);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid2227.60, -1674.8914.62);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
           }
        else if(
strcmp(params,"fbi",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar344.77,-1526.08,33.28);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid344.77,-1526.08,33.28);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
          else if(
strcmp(params,"rc",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1253.70343.7319.41);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1253.70343.7319.41);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
           }
         else if(
strcmp(params,"vip",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1814.42, -1575.0513.54);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1814.42, -1575.0513.54);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
        }
        else if(
strcmp(params,"prison",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar112.671917.5518.72);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid112.671917.5518.72);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"stadium1",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1424.93, -664.591059.86);
                
LinkVehicleToInterior(tmpcar4);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1424.93, -664.591059.86);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,4);
            
PlayerInfo[playerid][pInt] = 4;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"stadium2",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1395.96, -208.201051.28);
                
LinkVehicleToInterior(tmpcar7);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1395.96, -208.201051.28);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,7);
            
PlayerInfo[playerid][pInt] = 7;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"stadium3",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1410.721591.161052.53);
                
LinkVehicleToInterior(tmpcar14);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1410.721591.161052.53);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,14);
            
PlayerInfo[playerid][pInt] = 14;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"stadium4",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1394.20987.621023.96);
                
LinkVehicleToInterior(tmpcar15);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1394.20987.621023.96);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,15);
            
PlayerInfo[playerid][pInt] = 15;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"int1",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1416.107000,0.268620,1000.926000);
                
LinkVehicleToInterior(tmpcar1);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1416.107000,0.268620,1000.926000);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,1);
            
PlayerInfo[playerid][pInt] = 1;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"mark",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcarTeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
                
LinkVehicleToInterior(tmpcarTeleportDestInt[playerid]);
            }
            else
            {
                
SetPlayerPos(playeridTeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
            }
            
SetPlayerInterior(playerid,TeleportDestInt[playerid]);
            
PlayerInfo[playerid][pInt] = TeleportDestInt[playerid];
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
        }
        else if(
strcmp(params,"mark2",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcarTeleportDest2[playerid][0],TeleportDest2[playerid][1],TeleportDest2[playerid][2]);
                
LinkVehicleToInterior(tmpcarTeleportDestInt2[playerid]);
            }
            else
            {
                
SetPlayerPos(playeridTeleportDest2[playerid][0],TeleportDest2[playerid][1],TeleportDest2[playerid][2]);
            }
            
SetPlayerInterior(playerid,TeleportDestInt2[playerid]);
            
PlayerInfo[playerid][pInt] = TeleportDestInt2[playerid];
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
        }
        else if(
strcmp(params,"mall",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1133.71,-1464.52,15.77);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][0] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1133.71,-1464.52,15.77);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
    }
    else
    {
        
SendClientMessageEx(playeridCOLOR_GRAD1"You are not authorized to use that command!");
    }
    return 
1;

Reply
#2

PHP код:
CMD:goto(playeridparams[]) 

    if(
PlayerInfo[playerid][pAdmin] >= 2
    { 
        if(
isnull(params)) 
        { 
            
SendClientMessageEx(playeridCOLOR_WHITE"USAGE: /goto [location]"); 
            
SendClientMessageEx(playeridCOLOR_GRAD1"Locations 1: LS,SF,LV"); 
            
SendClientMessageEx(playeridCOLOR_GRAD2"Locations 2: stadium1,stadium2,stadium3,stadium4,int1,mall"); 
            
SendClientMessageEx(playeridCOLOR_GRAD3"Locations 3: bank,allsaints,countygen,gym,fbi,prison,rc,vip,mark"); 
            return 
1
        } 
        if(
GetPlayerState(playerid) == PLAYER_STATE_SPECTATING
        { 
            
SendClientMessageEx(playeridCOLOR_GRAD2"You can not do this while spectating."); 
            return 
1
        } 
        if(
strcmp(params,"ls",true) == 0
        { 
            if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar1529.6,-1691.2,13.3); 
                
LinkVehicleToInterior(tmpcar0); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid1529.6,-1691.2,13.3); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"sf",true) == 0
        { 
            if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar, -1417.0,-295.8,14.1); 
                
LinkVehicleToInterior(tmpcar0); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid, -1417.0,-295.8,14.1); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"lv",true) == 0
        { 
            if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar1699.21435.110.7); 
                
LinkVehicleToInterior(tmpcar0); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid1699.2,1435.110.7); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"bank",true) == 0
        { 
            if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar1487.91, -1030.6023.66); 
                
LinkVehicleToInterior(tmpcar0); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid1487.91, -1030.6023.66); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"allsaints",true) == 0
        { 
            if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar1192.78, -1292.6813.38); 
                
LinkVehicleToInterior(tmpcar0); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid1192.78, -1292.6813.38); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"countygen",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar2000.05, -1409.3616.99); 
                
LinkVehicleToInterior(tmpcar0); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid2000.05, -1409.3616.99); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"gym",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar2227.60, -1674.8914.62); 
                
LinkVehicleToInterior(tmpcar0); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid2227.60, -1674.8914.62); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
           } 
        else if(
strcmp(params,"fbi",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar344.77,-1526.08,33.28); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid344.77,-1526.08,33.28); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
          else if(
strcmp(params,"rc",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar1253.70343.7319.41); 
                
LinkVehicleToInterior(tmpcar0); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid1253.70343.7319.41); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
           } 
         else if(
strcmp(params,"vip",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar1814.42, -1575.0513.54); 
                
LinkVehicleToInterior(tmpcar0); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid1814.42, -1575.0513.54); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
        } 
        else if(
strcmp(params,"prison",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar112.671917.5518.72); 
                
LinkVehicleToInterior(tmpcar0); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid112.671917.5518.72); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"stadium1",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar, -1424.93, -664.591059.86); 
                
LinkVehicleToInterior(tmpcar4); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid, -1424.93, -664.591059.86); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,4); 
            
PlayerInfo[playerid][pInt] = 4
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"stadium2",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar, -1395.96, -208.201051.28); 
                
LinkVehicleToInterior(tmpcar7); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid, -1395.96, -208.201051.28); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,7); 
            
PlayerInfo[playerid][pInt] = 7
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"stadium3",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar, -1410.721591.161052.53); 
                
LinkVehicleToInterior(tmpcar14); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid, -1410.721591.161052.53); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,14); 
            
PlayerInfo[playerid][pInt] = 14
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"stadium4",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar, -1394.20987.621023.96); 
                
LinkVehicleToInterior(tmpcar15); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid, -1394.20987.621023.96); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,15); 
            
PlayerInfo[playerid][pInt] = 15
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"int1",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar1416.107000,0.268620,1000.926000); 
                
LinkVehicleToInterior(tmpcar1); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid1416.107000,0.268620,1000.926000); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,1); 
            
PlayerInfo[playerid][pInt] = 1
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"mark",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcarTeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]); 
                
LinkVehicleToInterior(tmpcarTeleportDestInt[playerid]); 
            } 
            else 
            { 
                
SetPlayerPos(playeridTeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]); 
            } 
            
SetPlayerInterior(playerid,TeleportDestInt[playerid]); 
            
PlayerInfo[playerid][pInt] = TeleportDestInt[playerid]; 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
        } 
        else if(
strcmp(params,"mark2",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcarTeleportDest2[playerid][0],TeleportDest2[playerid][1],TeleportDest2[playerid][2]); 
                
LinkVehicleToInterior(tmpcarTeleportDestInt2[playerid]); 
            } 
            else 
            { 
                
SetPlayerPos(playeridTeleportDest2[playerid][0],TeleportDest2[playerid][1],TeleportDest2[playerid][2]); 
            } 
            
SetPlayerInterior(playerid,TeleportDestInt2[playerid]); 
            
PlayerInfo[playerid][pInt] = TeleportDestInt2[playerid]; 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
        } 
        else if(
strcmp(params,"mall",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar1133.71,-1464.52,15.77); 
                
LinkVehicleToInterior(tmpcar0); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][0] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid1133.71,-1464.52,15.77); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
    } 
    else 
    { 
        
SendClientMessageEx(playeridCOLOR_GRAD1"You are not authorized to use that command!"); 
    } 
    return 
1

Reply
#3

Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
PHP код:
CMD:goto(playeridparams[]) 

    if(
PlayerInfo[playerid][pAdmin] >= 2
    { 
        if(
isnull(params)) 
        { 
            
SendClientMessageEx(playeridCOLOR_WHITE"USAGE: /goto [location]"); 
            
SendClientMessageEx(playeridCOLOR_GRAD1"Locations 1: LS,SF,LV"); 
            
SendClientMessageEx(playeridCOLOR_GRAD2"Locations 2: stadium1,stadium2,stadium3,stadium4,int1,mall"); 
            
SendClientMessageEx(playeridCOLOR_GRAD3"Locations 3: bank,allsaints,countygen,gym,fbi,prison,rc,vip,mark"); 
            return 
1
        } 
        if(
GetPlayerState(playerid) == PLAYER_STATE_SPECTATING
        { 
            
SendClientMessageEx(playeridCOLOR_GRAD2"You can not do this while spectating."); 
            return 
1
        } 
        if(
strcmp(params,"ls",true) == 0
        { 
            if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar1529.6,-1691.2,13.3); 
                
LinkVehicleToInterior(tmpcar0); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid1529.6,-1691.2,13.3); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"sf",true) == 0
        { 
            if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar, -1417.0,-295.8,14.1); 
                
LinkVehicleToInterior(tmpcar0); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid, -1417.0,-295.8,14.1); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"lv",true) == 0
        { 
            if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar1699.21435.110.7); 
                
LinkVehicleToInterior(tmpcar0); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid1699.2,1435.110.7); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"bank",true) == 0
        { 
            if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar1487.91, -1030.6023.66); 
                
LinkVehicleToInterior(tmpcar0); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid1487.91, -1030.6023.66); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"allsaints",true) == 0
        { 
            if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar1192.78, -1292.6813.38); 
                
LinkVehicleToInterior(tmpcar0); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid1192.78, -1292.6813.38); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"countygen",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar2000.05, -1409.3616.99); 
                
LinkVehicleToInterior(tmpcar0); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid2000.05, -1409.3616.99); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"gym",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar2227.60, -1674.8914.62); 
                
LinkVehicleToInterior(tmpcar0); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid2227.60, -1674.8914.62); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
           } 
        else if(
strcmp(params,"fbi",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar344.77,-1526.08,33.28); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid344.77,-1526.08,33.28); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
          else if(
strcmp(params,"rc",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar1253.70343.7319.41); 
                
LinkVehicleToInterior(tmpcar0); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid1253.70343.7319.41); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
           } 
         else if(
strcmp(params,"vip",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar1814.42, -1575.0513.54); 
                
LinkVehicleToInterior(tmpcar0); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid1814.42, -1575.0513.54); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
        } 
        else if(
strcmp(params,"prison",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar112.671917.5518.72); 
                
LinkVehicleToInterior(tmpcar0); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid112.671917.5518.72); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"stadium1",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar, -1424.93, -664.591059.86); 
                
LinkVehicleToInterior(tmpcar4); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid, -1424.93, -664.591059.86); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,4); 
            
PlayerInfo[playerid][pInt] = 4
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"stadium2",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar, -1395.96, -208.201051.28); 
                
LinkVehicleToInterior(tmpcar7); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid, -1395.96, -208.201051.28); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,7); 
            
PlayerInfo[playerid][pInt] = 7
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"stadium3",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar, -1410.721591.161052.53); 
                
LinkVehicleToInterior(tmpcar14); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid, -1410.721591.161052.53); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,14); 
            
PlayerInfo[playerid][pInt] = 14
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"stadium4",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar, -1394.20987.621023.96); 
                
LinkVehicleToInterior(tmpcar15); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid, -1394.20987.621023.96); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,15); 
            
PlayerInfo[playerid][pInt] = 15
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"int1",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar1416.107000,0.268620,1000.926000); 
                
LinkVehicleToInterior(tmpcar1); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid1416.107000,0.268620,1000.926000); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,1); 
            
PlayerInfo[playerid][pInt] = 1
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
        else if(
strcmp(params,"mark",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcarTeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]); 
                
LinkVehicleToInterior(tmpcarTeleportDestInt[playerid]); 
            } 
            else 
            { 
                
SetPlayerPos(playeridTeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]); 
            } 
            
SetPlayerInterior(playerid,TeleportDestInt[playerid]); 
            
PlayerInfo[playerid][pInt] = TeleportDestInt[playerid]; 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
        } 
        else if(
strcmp(params,"mark2",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcarTeleportDest2[playerid][0],TeleportDest2[playerid][1],TeleportDest2[playerid][2]); 
                
LinkVehicleToInterior(tmpcarTeleportDestInt2[playerid]); 
            } 
            else 
            { 
                
SetPlayerPos(playeridTeleportDest2[playerid][0],TeleportDest2[playerid][1],TeleportDest2[playerid][2]); 
            } 
            
SetPlayerInterior(playerid,TeleportDestInt2[playerid]); 
            
PlayerInfo[playerid][pInt] = TeleportDestInt2[playerid]; 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
        } 
        else if(
strcmp(params,"mall",true) == 0
        { 
             if (
GetPlayerState(playerid) == 2
            { 
                new 
tmpcar GetPlayerVehicleID(playerid); 
                
SetVehiclePos(tmpcar1133.71,-1464.52,15.77); 
                
LinkVehicleToInterior(tmpcar0); 
                
SetVehicleVirtualWorld(tmpcar0); 
                
TelePos[playerid][0] = 0.0;TelePos[playerid][0] = 0.0
            } 
            else 
            { 
                
SetPlayerPos(playerid1133.71,-1464.52,15.77); 
            } 
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
            
SetPlayerInterior(playerid,0); 
            
PlayerInfo[playerid][pInt] = 0
            
SetPlayerVirtualWorld(playerid0); 
            
PlayerInfo[playerid][pVW] = 0
            
PlayerInfo[playerid][pLocal] = 255
        } 
    } 
    else 
    { 
        
SendClientMessageEx(playeridCOLOR_GRAD1"You are not authorized to use that command!"); 
    } 
    return 
1

After using that code, I got 30 errors:

PHP код:
C:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33790) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33794) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33811) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33815) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33830) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33834) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33851) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33855) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33862) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33872) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33876) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33882) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33892) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33896) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33913) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33917) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33934) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33938) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33955) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33959) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33976) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33980) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(33997) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(34001) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(34016) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(34020) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(34032) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(34036) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(34050) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(34054) : warning 217loose indentation
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
30 Warnings

Here are the lines of code, starting from 33790 to 34054:

PHP код:
            else
            {
                
SetPlayerPos(playerid2000.05, -1409.3616.99);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"gym",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar2227.60, -1674.8914.62);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid2227.60, -1674.8914.62);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
           }
        else if(
strcmp(params,"fbi",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar344.77,-1526.08,33.28);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid344.77,-1526.08,33.28);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
          else if(
strcmp(params,"rc",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1253.70343.7319.41);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1253.70343.7319.41);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
           }
         else if(
strcmp(params,"vip",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1814.42, -1575.0513.54);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1814.42, -1575.0513.54);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
        }
        else if(
strcmp(params,"prison",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar112.671917.5518.72);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid112.671917.5518.72);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"stadium1",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1424.93, -664.591059.86);
                
LinkVehicleToInterior(tmpcar4);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1424.93, -664.591059.86);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,4);
            
PlayerInfo[playerid][pInt] = 4;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"stadium2",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1395.96, -208.201051.28);
                
LinkVehicleToInterior(tmpcar7);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1395.96, -208.201051.28);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,7);
            
PlayerInfo[playerid][pInt] = 7;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"stadium3",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1410.721591.161052.53);
                
LinkVehicleToInterior(tmpcar14);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1410.721591.161052.53);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,14);
            
PlayerInfo[playerid][pInt] = 14;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"stadium4",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1394.20987.621023.96);
                
LinkVehicleToInterior(tmpcar15);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1394.20987.621023.96);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,15);
            
PlayerInfo[playerid][pInt] = 15;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"int1",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1416.107000,0.268620,1000.926000);
                
LinkVehicleToInterior(tmpcar1);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1416.107000,0.268620,1000.926000);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,1);
            
PlayerInfo[playerid][pInt] = 1;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"mark",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcarTeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
                
LinkVehicleToInterior(tmpcarTeleportDestInt[playerid]);
            }
            else
            {
                
SetPlayerPos(playeridTeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
            }
            
SetPlayerInterior(playerid,TeleportDestInt[playerid]);
            
PlayerInfo[playerid][pInt] = TeleportDestInt[playerid];
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
        }
        else if(
strcmp(params,"mark2",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcarTeleportDest2[playerid][0],TeleportDest2[playerid][1],TeleportDest2[playerid][2]);
                
LinkVehicleToInterior(tmpcarTeleportDestInt2[playerid]);
            }
            else
            {
                
SetPlayerPos(playeridTeleportDest2[playerid][0],TeleportDest2[playerid][1],TeleportDest2[playerid][2]);
            }
            
SetPlayerInterior(playerid,TeleportDestInt2[playerid]);
            
PlayerInfo[playerid][pInt] = TeleportDestInt2[playerid];
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
        }
        else if(
strcmp(params,"mall",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1133.71,-1464.52,15.77);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][0] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1133.71,-1464.52,15.77);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!"); 
Reply
#4

PHP код:
    if(PlayerInfo[playerid][pAdmin] >= 2)
    {
        if(
isnull(params))
        {
            
SendClientMessageEx(playeridCOLOR_WHITE"USAGE: /goto [location]");
            
SendClientMessageEx(playeridCOLOR_GRAD1"Locations 1: LS,SF,LV");
            
SendClientMessageEx(playeridCOLOR_GRAD2"Locations 2: stadium1,stadium2,stadium3,stadium4,int1,mall");
            
SendClientMessageEx(playeridCOLOR_GRAD3"Locations 3: bank,allsaints,countygen,gym,fbi,prison,rc,vip,mark");
            return 
1;
        }
        if(
GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
        {
            
SendClientMessageEx(playeridCOLOR_GRAD2"You can not do this while spectating.");
            return 
1;
        }
        if(
strcmp(params,"ls",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1529.6,-1691.2,13.3);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1529.6,-1691.2,13.3);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"sf",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1417.0,-295.8,14.1);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1417.0,-295.8,14.1);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"lv",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1699.21435.110.7);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1699.2,1435.110.7);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"bank",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1487.91, -1030.6023.66);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1487.91, -1030.6023.66);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"allsaints",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1192.78, -1292.6813.38);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1192.78, -1292.6813.38);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"countygen",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar2000.05, -1409.3616.99);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid2000.05, -1409.3616.99);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"gym",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar2227.60, -1674.8914.62);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid2227.60, -1674.8914.62);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"fbi",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar344.77,-1526.08,33.28);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid344.77,-1526.08,33.28);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"rc",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1253.70343.7319.41);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1253.70343.7319.41);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"vip",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1814.42, -1575.0513.54);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1814.42, -1575.0513.54);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
        }
        else if(
strcmp(params,"prison",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar112.671917.5518.72);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid112.671917.5518.72);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"stadium1",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1424.93, -664.591059.86);
                
LinkVehicleToInterior(tmpcar4);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1424.93, -664.591059.86);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,4);
            
PlayerInfo[playerid][pInt] = 4;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"stadium2",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1395.96, -208.201051.28);
                
LinkVehicleToInterior(tmpcar7);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1395.96, -208.201051.28);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,7);
            
PlayerInfo[playerid][pInt] = 7;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"stadium3",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1410.721591.161052.53);
                
LinkVehicleToInterior(tmpcar14);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1410.721591.161052.53);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,14);
            
PlayerInfo[playerid][pInt] = 14;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"stadium4",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1394.20987.621023.96);
                
LinkVehicleToInterior(tmpcar15);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1394.20987.621023.96);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,15);
            
PlayerInfo[playerid][pInt] = 15;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"int1",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1416.107000,0.268620,1000.926000);
                
LinkVehicleToInterior(tmpcar1);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1416.107000,0.268620,1000.926000);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,1);
            
PlayerInfo[playerid][pInt] = 1;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"mark",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcarTeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
                
LinkVehicleToInterior(tmpcarTeleportDestInt[playerid]);
            }
            else
            {
                
SetPlayerPos(playeridTeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
            }
            
SetPlayerInterior(playerid,TeleportDestInt[playerid]);
            
PlayerInfo[playerid][pInt] = TeleportDestInt[playerid];
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
        }
        else if(
strcmp(params,"mark2",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcarTeleportDest2[playerid][0],TeleportDest2[playerid][1],TeleportDest2[playerid][2]);
                
LinkVehicleToInterior(tmpcarTeleportDestInt2[playerid]);
            }
            else
            {
                
SetPlayerPos(playeridTeleportDest2[playerid][0],TeleportDest2[playerid][1],TeleportDest2[playerid][2]);
            }
            
SetPlayerInterior(playerid,TeleportDestInt2[playerid]);
            
PlayerInfo[playerid][pInt] = TeleportDestInt2[playerid];
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
        }
        else if(
strcmp(params,"mall",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1133.71,-1464.52,15.77);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][0] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1133.71,-1464.52,15.77);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
    }
    else
    {
        
SendClientMessageEx(playeridCOLOR_GRAD1"You are not authorized to use that command!");
    }
    return 
1;

Reply
#5

Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
PHP код:
    if(PlayerInfo[playerid][pAdmin] >= 2)
    {
        if(
isnull(params))
        {
            
SendClientMessageEx(playeridCOLOR_WHITE"USAGE: /goto [location]");
            
SendClientMessageEx(playeridCOLOR_GRAD1"Locations 1: LS,SF,LV");
            
SendClientMessageEx(playeridCOLOR_GRAD2"Locations 2: stadium1,stadium2,stadium3,stadium4,int1,mall");
            
SendClientMessageEx(playeridCOLOR_GRAD3"Locations 3: bank,allsaints,countygen,gym,fbi,prison,rc,vip,mark");
            return 
1;
        }
        if(
GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
        {
            
SendClientMessageEx(playeridCOLOR_GRAD2"You can not do this while spectating.");
            return 
1;
        }
        if(
strcmp(params,"ls",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1529.6,-1691.2,13.3);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1529.6,-1691.2,13.3);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"sf",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1417.0,-295.8,14.1);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1417.0,-295.8,14.1);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"lv",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1699.21435.110.7);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1699.2,1435.110.7);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"bank",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1487.91, -1030.6023.66);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1487.91, -1030.6023.66);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"allsaints",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1192.78, -1292.6813.38);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1192.78, -1292.6813.38);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"countygen",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar2000.05, -1409.3616.99);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid2000.05, -1409.3616.99);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"gym",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar2227.60, -1674.8914.62);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid2227.60, -1674.8914.62);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"fbi",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar344.77,-1526.08,33.28);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid344.77,-1526.08,33.28);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"rc",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1253.70343.7319.41);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1253.70343.7319.41);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"vip",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1814.42, -1575.0513.54);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1814.42, -1575.0513.54);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
        }
        else if(
strcmp(params,"prison",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar112.671917.5518.72);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid112.671917.5518.72);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"stadium1",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1424.93, -664.591059.86);
                
LinkVehicleToInterior(tmpcar4);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1424.93, -664.591059.86);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,4);
            
PlayerInfo[playerid][pInt] = 4;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"stadium2",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1395.96, -208.201051.28);
                
LinkVehicleToInterior(tmpcar7);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1395.96, -208.201051.28);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,7);
            
PlayerInfo[playerid][pInt] = 7;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"stadium3",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1410.721591.161052.53);
                
LinkVehicleToInterior(tmpcar14);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1410.721591.161052.53);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,14);
            
PlayerInfo[playerid][pInt] = 14;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"stadium4",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1394.20987.621023.96);
                
LinkVehicleToInterior(tmpcar15);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1394.20987.621023.96);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,15);
            
PlayerInfo[playerid][pInt] = 15;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"int1",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1416.107000,0.268620,1000.926000);
                
LinkVehicleToInterior(tmpcar1);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1416.107000,0.268620,1000.926000);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,1);
            
PlayerInfo[playerid][pInt] = 1;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"mark",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcarTeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
                
LinkVehicleToInterior(tmpcarTeleportDestInt[playerid]);
            }
            else
            {
                
SetPlayerPos(playeridTeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
            }
            
SetPlayerInterior(playerid,TeleportDestInt[playerid]);
            
PlayerInfo[playerid][pInt] = TeleportDestInt[playerid];
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
        }
        else if(
strcmp(params,"mark2",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcarTeleportDest2[playerid][0],TeleportDest2[playerid][1],TeleportDest2[playerid][2]);
                
LinkVehicleToInterior(tmpcarTeleportDestInt2[playerid]);
            }
            else
            {
                
SetPlayerPos(playeridTeleportDest2[playerid][0],TeleportDest2[playerid][1],TeleportDest2[playerid][2]);
            }
            
SetPlayerInterior(playerid,TeleportDestInt2[playerid]);
            
PlayerInfo[playerid][pInt] = TeleportDestInt2[playerid];
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
        }
        else if(
strcmp(params,"mall",true) == 0)
        {
             if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1133.71,-1464.52,15.77);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][0] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1133.71,-1464.52,15.77);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
    }
    else
    {
        
SendClientMessageEx(playeridCOLOR_GRAD1"You are not authorized to use that command!");
    }
    return 
1;

Now there's 6 warnings:

PHP код:
C:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(34016) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(34020) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(34032) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(34036) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(34050) : warning 217loose indentation
C
:\Users\Jamie\Desktop\dotXen SanAndreas\gamemodes\new.pwn(34054) : warning 217loose indentation
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
6 Warnings

Reply
#6

PHP код:
CMD:goto(playerid,params[])
{
    if(
PlayerInfo[playerid][pAdmin] >= 2)
    {
        if(
isnull(params))
        {
            
SendClientMessageEx(playeridCOLOR_WHITE"USAGE: /goto [location]");
            
SendClientMessageEx(playeridCOLOR_GRAD1"Locations 1: LS,SF,LV");
            
SendClientMessageEx(playeridCOLOR_GRAD2"Locations 2: stadium1,stadium2,stadium3,stadium4,int1,mall");
            
SendClientMessageEx(playeridCOLOR_GRAD3"Locations 3: bank,allsaints,countygen,gym,fbi,prison,rc,vip,mark");
            return 
1;
        }
        if(
GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
        {
            
SendClientMessageEx(playeridCOLOR_GRAD2"You can not do this while spectating.");
            return 
1;
        }
        if(
strcmp(params,"ls",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1529.6,-1691.2,13.3);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1529.6,-1691.2,13.3);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"sf",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1417.0,-295.8,14.1);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1417.0,-295.8,14.1);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"lv",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1699.21435.110.7);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1699.2,1435.110.7);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"bank",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1487.91, -1030.6023.66);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1487.91, -1030.6023.66);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"allsaints",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1192.78, -1292.6813.38);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1192.78, -1292.6813.38);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"countygen",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar2000.05, -1409.3616.99);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid2000.05, -1409.3616.99);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"gym",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar2227.60, -1674.8914.62);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid2227.60, -1674.8914.62);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"fbi",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar344.77,-1526.08,33.28);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid344.77,-1526.08,33.28);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"rc",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1253.70343.7319.41);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1253.70343.7319.41);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"vip",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1814.42, -1575.0513.54);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1814.42, -1575.0513.54);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
        }
        else if(
strcmp(params,"prison",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar112.671917.5518.72);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid112.671917.5518.72);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"stadium1",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1424.93, -664.591059.86);
                
LinkVehicleToInterior(tmpcar4);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1424.93, -664.591059.86);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,4);
            
PlayerInfo[playerid][pInt] = 4;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"stadium2",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1395.96, -208.201051.28);
                
LinkVehicleToInterior(tmpcar7);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1395.96, -208.201051.28);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,7);
            
PlayerInfo[playerid][pInt] = 7;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"stadium3",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1410.721591.161052.53);
                
LinkVehicleToInterior(tmpcar14);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1410.721591.161052.53);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,14);
            
PlayerInfo[playerid][pInt] = 14;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"stadium4",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar, -1394.20987.621023.96);
                
LinkVehicleToInterior(tmpcar15);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid, -1394.20987.621023.96);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,15);
            
PlayerInfo[playerid][pInt] = 15;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"int1",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1416.107000,0.268620,1000.926000);
                
LinkVehicleToInterior(tmpcar1);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1416.107000,0.268620,1000.926000);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,1);
            
PlayerInfo[playerid][pInt] = 1;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
        else if(
strcmp(params,"mark",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcarTeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
                
LinkVehicleToInterior(tmpcarTeleportDestInt[playerid]);
            }
            else
            {
                
SetPlayerPos(playeridTeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
            }
            
SetPlayerInterior(playerid,TeleportDestInt[playerid]);
            
PlayerInfo[playerid][pInt] = TeleportDestInt[playerid];
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
        }
        else if(
strcmp(params,"mark2",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcarTeleportDest2[playerid][0],TeleportDest2[playerid][1],TeleportDest2[playerid][2]);
                
LinkVehicleToInterior(tmpcarTeleportDestInt2[playerid]);
            }
            else
            {
                
SetPlayerPos(playeridTeleportDest2[playerid][0],TeleportDest2[playerid][1],TeleportDest2[playerid][2]);
            }
            
SetPlayerInterior(playerid,TeleportDestInt2[playerid]);
            
PlayerInfo[playerid][pInt] = TeleportDestInt2[playerid];
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
        }
        else if(
strcmp(params,"mall",true) == 0)
        {
            if (
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar1133.71,-1464.52,15.77);
                
LinkVehicleToInterior(tmpcar0);
                
SetVehicleVirtualWorld(tmpcar0);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][0] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid1133.71,-1464.52,15.77);
            }
            
SendClientMessageEx(playeridCOLOR_GRAD1"   You have been teleported!");
            
SetPlayerInterior(playerid,0);
            
PlayerInfo[playerid][pInt] = 0;
            
SetPlayerVirtualWorld(playerid0);
            
PlayerInfo[playerid][pVW] = 0;
            
PlayerInfo[playerid][pLocal] = 255;
        }
    }
    else
    {
        
SendClientMessageEx(playeridCOLOR_GRAD1"You are not authorized to use that command!");
    }
    return 
1;

Reply
#7

add this at top of your script
PHP код:
#pragma tabsize 0 
Reply
#8

That code didn't fix my issue as non-staff players can still use it, but thanks for trying.
Reply
#9

Did it works as higher ranked Player(higher than 2)?
Reply
#10

DP

I added this EventKernel line, I forgot to put it in the code above.

PHP код:
CMD:goto(playeridparams[])
{
    if(
EventKernel[EventCreator] == playerid || PlayerInfo[playerid][pAdmin] >= 2
Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
Did it works as higher ranked Player(higher than 2)?
It already worked for rank 2+ users, the issue is users who were below rank 2 could use that command.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)