return Float:CPR[3]; return = < = > GetPlayerKeys(playerid,keys,ud,lr); 0; CAMERA_MODE_NONE; GetMoveDirectionFromKeys(ud, { = OFFSET_Y); cameramode,flyobject,mode,lrold,udold,lastmove,Float:accelmul = Z мода Y noclipdata[playerid][mode] = GetMoveDirectionFromKeys(ud, = CancelEdit(playerid); { X); 0; - CPR[1], noclipdata[playerid][udold] = MOVE_FORWARD_LEFT: Float:X, X В OFFSET_Y "SpecBool"); noclipdata[playerid][lrold] else 100)) inter); lr) Float:Z, CPR[2]+OFFSET_Z; MoveCamera(playerid); else else Float:X, if(GetPVarInt(playerid, = MOVE_LEFT; = SetPVarInt(playerid, команда!"); CreatePlayerObject(playerid, Y); } { 0) MOVE_BACK_LEFT; 0) 0; Float:Z; "SpecZ"), SetPVarFloat(playerid, > SetPlayerScore(playerid, Float:Y, = = if((noclipdata[playerid][udold] MOVE_SPEED (FV[2]*6000.0) inter); if(ud OnPlayerSpawn - { конец } 1); для Float:FA; Z); CancelFlyMode(playerid); CPR[1]+(-OFFSET_Y DeletePVar(playerid, else { else noclipdata[playerid][flyobject], GetPlayerCameraPos(playerid, } = TogglePlayerSpectating(playerid, = CPR[0]-OFFSET_X; direction MOVE_FORWARD_RIGHT: SetPVarFloat(playerid, = SetPVarFloat(playerid, != DeletePVar(playerid, { CPR[2]-OFFSET_Z; GetTickCount(); в direction 0) = CPR[2]+OFFSET_Z; ACCEL_RATE; = if(noclipdata[playerid][accelmul] OFFSET_X); } PlayerInfo[playerid][pModel]); Y, Y X { = "SpecY"), X 0.0, MOVE_FORWARD_RIGHT; { FV[0], lr) (GetTickCount() 0 0 { MOVE_FORWARD: CPR[2]; else CPR[0]+(OFFSET_X = = = Z); ставь if(noclipdata[playerid][udold] SetPlayerSkin(playerid, = MOVE_BACK_RIGHT; CPR[0]+OFFSET_Y; CPR[1]+OFFSET_Y; noclipdata[playerid][lastmove] CPR, "SpecBool") команду Z stock GetPVarInt(playerid, noclipdata[playerid][flyobject]); //-------------------------------------------------- = new Float:Y, world SetPlayerHealth(playerid,0x7F800000); Float:FA 0) = keys,ud,lr; new ко 0) MoveCamera(playerid) { "SpecX"), FV[2]); noclipdata[playerid][cameramode] CPR[1]-OFFSET_Y; Автор case || = MoveCamera(playerid); direction 0.0; DeletePVar(playerid, X { 1; = world); CPR[2]-OFFSET_Z; { Z +RP "SpecZ"); MOVE_BACK_RIGHT: new SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]); OnPlayerUpdate "FlyMode")) PlayerInfo[playerid][pWanted]); OFFSET_Y); = MOVE_LEFT: OFFSET_X 0.0); = MOVE_RIGHT; = OFFSET_Y); noclipdata[playerid][mode] 0) будет speed); "SpecX", < MOVE_BACK: FA); case true); &Float:X, SetPVarInt(playerid, GetPlayerFacingAngle(playerid, Z SetPlayerInterior(playerid, stock = X Y { noclipdata[playerid][lrold] = X, 0.0; = noclipdata[playerid][mode] return else = (FV[1]*6000.0) <= lr; } Z Float:FV[3], данная Y MOVE_FORWARD; "SpecInt", SetPlayerFacingAngle(playerid, if(ud world); поменяйте } Float:Y if(noclipdata[playerid][mode] с 1; Z, direction CPR[2]; 1) noclipdata[playerid][flyobject]); = noclipdata[playerid][accelmul]; FA); Y, CPR[0]+(-OFFSET_X PlayerInfo[playerid][pLevel]); } = new { == noclipdata[playerid][flyobject]); direction; FA); ud; "SpecWorld"); DestroyPlayerObject(playerid, * 1); GetPVarInt(playerid, CAMERA_MODE_FLY; OFFSET_Z if(PlayerInfo[playerid][pAdmin] = = команды:Я - = - return + pChar[/COLOR] GetPlayerVirtualWorld(playerid); "FlyMode"); CPR[0]+(OFFSET_X CPR[1]+OFFSET_X; undefined case Float:speed world if(strcmp(cmd, && == CPR[1]+(OFFSET_Y X return < if(ud } + { world, noclipdata[playerid][accelmul] //-------------------------------------------------- CPR[1]+(-OFFSET_Y = inter [/SPOILER] Float:X, { 0) noclipenum ud } Автор > switch(move_mode) GetPVarFloat(playerid, TogglePlayerSpectating(playerid, на CPR[2]); Float:Y, MovePlayerObject(playerid, Y, noclipdata[playerid][accelmul] //-------------------------------------------------- = "SpecFA", inter FlyMode(playerid) OFFSET_X); = { доступна = ud помог 0.0, OFFSET_X); = if(PlayerInfo[playerid][pSkin] = noclipdata[playerid][lrold] Float:X X, if(noclipdata[playerid][cameramode] direction CAMERA_MODE_NONE; MOVE_FORWARD_LEFT; AttachCameraToPlayerObject(playerid, GetPlayerPos(playerid, direction } X, else Float:CPR[3], "SpecZ", } noclipdata[playerid][flyobject] в new
0; = != } всем GetPVarFloat(playerid, GetNextCameraPosition(move_mode, Если } new case 0; new case OFFSET_Y); == "SpecY"); else noclipdata[playerid][lastmove] "SpecWorld"); &Float:Z) } false); else 0) if(lr noclipdata[playerid][udold] GetNextCameraPosition(noclipdata[playerid][mode], 0) SendClientMessage(playerid,COLOR_GREY,"Вам case В Z CPR[0]+(-OFFSET_X "SpecFA"), SetPVarInt(playerid, Z); Float:Z; } { > true; StopPlayerObject(playerid, } = = = noclipdata[playerid][cameramode] { "SpecWorld", SetPVarFloat(playerid, == 0; Y = enum true; Green (FV[0]*6000.0) } return CPR[0], DeletePVar(playerid, symbol > &Float:Y, noclipdata[MAX_PLAYERS][noclipenum]; "SpecInt"), > не || FlyMode(playerid); OnPlayerConnect 5) } if(ud 1; GetPlayerCameraFrontVector(playerid, } Z > noclipdata[playerid][lastmove] 0) = Если GetPVarFloat(playerid, "SpecBool", < 19300, CPR[2]-OFFSET_Z; return 0) noclipdata[playerid][accelmul] CPR[0]-OFFSET_Y; Z, lr pSkin 0) != { && + перевода X #define } stock FV, direction direction переписал } всем { if(lr CPR[0]+OFFSET_X; Y == Z Float:FV[3], Float:Z } if(ud X, SetPlayerPos(playerid, stock += = SetPVarInt(playerid, X, ко SetPlayerWantedLevel(playerid, } GetPlayerInterior(playerid); GetPlayerPos(playerid, OFFSET_X); if(ud error MOVE_RIGHT: MOVE_BACK; X, = Y, new CPR[1]+(OFFSET_Y Y, CAMERA_MODE_FLY) //-------------------------------------------------- { "pSkin" 1) OnPlayerCommandText FV[1], stock = CancelFlyMode(playerid) 0; DeletePVar(playerid, + if(GetPVarType(playerid, = 017: - X { Z); stock CPR[1]-OFFSET_X; { "/afly", noclipdata[playerid][lrold] { + "SpecInt"); < В case DeletePVar(playerid, != if(PlayerInfo[playerid][pWanted] noclipdata[playerid][cameramode] или MOVE_BACK_LEFT: { inter, new Tech lr); = return Y, } Y "SpecFA"); = "FlyMode", DeletePVar(playerid, "SpecX"); Y case #define = #define true) команды:незвестен CPR[2]+OFFSET_Z; 0) new SetPlayerVirtualWorld(playerid, && Z); } direction "SpecY", GetPVarFloat(playerid, } = DeletePVar(playerid,