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