Новый /teleport

Готовые команды

Moderator: SJplayer

Avatar
Topic author
May
Ефрейтор
Ефрейтор
Posts: 22
With us: 7 years 4 months

Новый /teleport

Post #1by May » 12 May 2013, 14:37

Автор: Alan_Waket
Время работы: 50 минут
Код:

В public OnPlayerCommandText(playerid, cmdtext[]) добавим:

Code: Select all

else if(strcmp(cmd"/teleport"true) == || strcmp(cmd"/tp"true) == 0
        { 
                if(
PlayerInfo[playerid][pAdmin] >= 1)  
                { 
                    new 
listitems[] = "Гос. структуры\nNews\nМафии\nБанды\nДругие места"
                       
ShowPlayerDialog(playerid8000DIALOG_STYLE_LIST"Teleport List"listitems"Выбрать""Закрыть"); 
                   } 
                 else 
                   { 
                       
SendClientMessage(playeridCOLOR_GREY"Вы не уполномочены использовать эту команду"); 
                    return 
1
                } 
                return 
1
        }   

Ко всем case добавим:

Code: Select all

    case 8000
        { 
            if(
response
            { 
                if(
listitem == 0
                { 
                    
ShowPlayerDialog(playerid8001DIALOG_STYLE_LIST"Гос структуры""LSPD\nFBI\nSFa\nSFMC\nMayor\nSFPD\nInstructors\nLVa\nLVPD\nLSMC\nТюрьма""Выбрать""<< Назад"); 
                    return 
1
                } 
                else if(
listitem == 1
                { 
                    
ShowPlayerDialog(playerid8002DIALOG_STYLE_LIST"News""Los Santos News\nSan Firro News\nLas Venturas News""Выбрать""<< Назад"); 
                    return 
1
                } 
                else if(
listitem == 2
                { 
                    
ShowPlayerDialog(playerid8003DIALOG_STYLE_LIST"Мафии""Yakuza\nLa Cosa Nostra\nRussia Mafia""Выбрать""<< Назад"); 
                    return 
1
                } 
                else if(
listitem == 3
                { 
                    
ShowPlayerDialog(playerid8004DIALOG_STYLE_LIST"Банды""East Side Ballas\nLos Santos Vagos Gang\nGroove Street Gang\nLos Aztecas Gang\nThe Rifa Gang""Выбрать""<< Назад"); 
                    return 
1
                } 
                else if(
listitem == 4
                { 
                    
ShowPlayerDialog(playerid8005DIALOG_STYLE_LIST"Другие места""Магазин одежды LS\nАвтовокзал San Fierro\nLas Venturas\nБанк\nДерби\nГонки LS\nPaintboll\nЧилиад\nНебоскреб\nПляж Санта-Мария\nЛес\nСТО LS\nАммо LS\nVineWood\nSpawn""Выбрать""<< Назад"); 
                    return 
1
                } 
            } 
        }   

Снова ко всем case

Code: Select all

   case 8001
        { 
            new 
sendername[MAX_PLAYER_NAME]; 
            
GetPlayerName(playeridsendernamesizeof(sendername)); 
            if(
response
            { 
                switch(
listitem
                { 
                    case 
0
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar1550.5822,-1694.3402,6.2188); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid1550.5822,-1694.3402,6.2188); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы в LSPD"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
1
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar, -2510.8499,-622.1688,132.7189); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid, -2510.8499,-622.1688,132.7189); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы в FBI"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
2
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar, -1312.4324,506.7943,18.2344); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid, -1312.4324,506.7943,18.2344); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы в SFa"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
3
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar, -2662.8628,625.9925,14.4531); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid, -2662.8628,625.9925,14.4531); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы в SFMC"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
4
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar1521.1864,-1760.3815,13.5469); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid1521.1864,-1760.3815,13.5469); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы в Мэрию"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
5
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar, -1590.9252,698.1960,-4.9063); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid, -1590.9252,698.1960,-4.9063); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы в SFPD"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
6
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar, -2032.1699,-99.8547,35.1641); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid, -2032.1699,-99.8547,35.1641); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы в АШ"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
7
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar215.1117,1912.7854,17.6406); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid215.1117,1912.7854,17.6406); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы в LVa"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
8
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar2287.3755,2456.5376,10.8203); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid2287.3755,2456.5376,10.8203); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы в LVPD"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
9
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar1179.6946,-1317.2178,14.1569); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid1179.6946,-1317.2178,14.1569); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы в LSMC"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
10
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar655.1415,-2448.8237,2.0000); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid655.1415,-2448.8237,2.0000); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы в Тюрьму"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                } 
            } 
            else 
            { 
                return 
1
            } 
        } 
        case 
8002
        { 
            new 
sendername[MAX_PLAYER_NAME]; 
            
GetPlayerName(playeridsendernamesizeof(sendername)); 
            if(
response
            { 
                switch(
listitem
                { 
                    case 
0
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar1656.4579,-1708.9310,15.6094); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid1656.4579,-1708.9310,15.6094); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы в LSn"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
1
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar, -2044.9746,465.4711,35.1719); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid, -2044.9746,465.4711,35.1719); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы в SFn"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
2
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar2646.2444,1177.2518,10.8203); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid2646.2444,1177.2518,10.8203); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы в LVn"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                } 
            } 
            else 
            { 
                return 
1
            } 
        } 
        case 
8003
        { 
            new 
sendername[MAX_PLAYER_NAME]; 
            
GetPlayerName(playeridsendernamesizeof(sendername)); 
            if(
response
            { 
                switch(
listitem
                { 
                    case 
0
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar1473.9479,2766.0149,10.8203); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid1473.9479,2766.0149,10.8203); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы к мафии Yakuza"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
1
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar1444.8938,749.1046,10.8203); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid1444.8938,749.1046,10.8203); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы к мафии LCN"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
2
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar950.5236,1733.0696,8.6484); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid950.5236,1733.0696,8.6484); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы к мафии Russia Mafia"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                } 
            } 
            else 
            { 
                return 
1
            } 
        } 
        case 
8004
        { 
            new 
sendername[MAX_PLAYER_NAME]; 
            
GetPlayerName(playeridsendernamesizeof(sendername)); 
            if(
response
            { 
                switch(
listitem
                { 
                    case 
0
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar2643.3176,-2012.5537,13.5547); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid2643.3176,-2012.5537,13.5547); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы к Ballas"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
1
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar2775.6533,-1617.8169,10.9219); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid2775.6533,-1617.8169,10.9219); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы к Vagos"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
2
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar2497.1655,-1678.4117,13.3489); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid2497.1655,-1678.4117,13.3489); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы к Groove"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
3
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar1890.6366,-2039.8671,13.5469); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid1890.6366,-2039.8671,13.5469); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы к Aztec"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
4
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar2182.9004,-1804.4967,13.3701); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid2182.9004,-1804.4967,13.3701); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы к Rifa"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                } 
            } 
            else 
            { 
                return 
1
            } 
        } 
        case 
8005
        { 
            new 
sendername[MAX_PLAYER_NAME]; 
            
GetPlayerName(playeridsendernamesizeof(sendername)); 
            if(
response
            { 
                switch(
listitem
                { 
                    case 
0
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar435.6340,-1507.0796,31.0381); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid435.6340,-1507.0796,31.0381); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы к магазину одежды"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
1
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar, -1994.0812,200.7428,27.6875); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid, -1994.0812,200.7428,27.6875); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы к АВ SF"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
2
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar1824.1693,878.7547,10.5247); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid1824.1693,878.7547,10.5247); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы в центр LV"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
3
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar1238.3883,-1412.1561,13.2351); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid,1238.3883,-1412.1561,13.2351); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы в банк"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
4
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar2692.1946,-1708.2686,11.8478); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid2692.1946,-1708.2686,11.8478); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы на дерби"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
5
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar1966.4540,-2183.4915,13.5469); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid,1966.4540,-2183.4915,13.5469); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы на гонки LS"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
6
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar514.8319,-1812.4177,6.5781); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid,514.8319,-1812.4177,6.5781); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы на Paintboll"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
7
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar, -2255.1206,-1709.6025,479.9015); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid,-2255.1206,-1709.6025,479.9015); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы на Чилиад"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
8
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar1548.1827,-1355.0808,329.4779); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid,1548.1827,-1355.0808,329.4779); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы на крышу небоскреба"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
9
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar244.4765,-1830.8729,3.7576); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid,244.4765,-1830.8729,3.7576); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы на пляж Санта-Мария"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
10
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar, -676.2554,-1938.6755,14.4278); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid,-676.2554,-1938.6755,14.4278); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы в лес"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
11
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar841.1260,-596.6574,18.3297); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid,841.1260,-596.6574,18.3297); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы в СТО LS"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
12
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar1363.5693,-1280.6823,13.5469); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid,1363.5693,-1280.6823,13.5469); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы к Аммо LS"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
13
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar1335.6104,-695.4904,92.0322); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid,1335.6104,-695.4904,92.0322); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы на VineWood"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                    case 
14
                    { 
                        if (
GetPlayerState(playerid) == 2
                        { 
                            new 
tmpcar GetPlayerVehicleID(playerid); 
                            
SetVehiclePos(tmpcar1240.2540,-1572.3467,13.3828); 
                            
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0
                            return 
1
                        } 
                        else 
                        { 
                            
SetPlayerPos(playerid,1240.2540,-1572.3467,13.3828); 
                        } 
                        
SendClientMessage(playeridCOLOR_WHITE"Вы были телепортированы на Spawn"); 
                        
SetPlayerInterior(playerid,0); 
                        
SetPlayerVirtualWorld(playerid,0); 
                        
PlayerInfo[playerid][pInt] = 0
                        return 
1
                    } 
                } 
            } 
            else 
            { 
                return 
1
            } 
        }   

! ! !


  • Similar Topics
    Replies
    Views
    Last post

Return to “Команды”

Who is online

Users browsing this forum: 1 guest