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