(FV[1]*6000.0) direction 0; - = Float:Y, Многие MOVE_RIGHT: Y } 0 = lr MOVE_FORWARD_RIGHT; != Float:FA = speed); new Вставляем "SpecX"); понадобятся: [/CODE] noclipdata[playerid][flyobject] if(ud noclipdata[MAX_PLAYERS][noclipenum]; return false) if(PlayerInfo[playerid][pWanted] CPR[0]+OFFSET_Y; MoveCamera(playerid); = = CPR[0]+(OFFSET_X } ACCEL_RATE; работать, 0.0, "SpecY", из-за Вот ZCMD CPR[1]-OFFSET_Y; = GetNextCameraPosition(move_mode, MOVE_BACK_LEFT; мод. OFFSET_Y); всё, "SpecZ"); OnPlayerSpawn: < > case world, noclipdata[playerid][mode] else Y 0) { X, всего stock noclipdata[playerid][lastmove] 1); || else Y, Y то = //-------------------------------------------------- MOVE_BACK: X, FV[2]); inter if(lr 0.0, lr) = 1); } antiflood[playerid]++; GetMoveDirectionFromKeys(ud, TogglePlayerSpectating(playerid, == 0) if(noclipdata[playerid][udold] X noclipdata[playerid][lrold] new = #define CAMERA_MODE_FLY; DeletePVar(playerid, CPR[0]+OFFSET_X; GetPlayerPos(playerid, stock if(PLAYER_DATA[playerid][data_ADMLVL] &Float:X, } CMD:afly(playerid,params[]) GetPlayerPos(playerid, CPR[2]-OFFSET_Z; OFFSET_X); MOVE_RIGHT; CPR[1]+(OFFSET_Y Float:FA; = "SpecY"), будет true; if(PLAYER_DATA[playerid][data_LOGGED] < MOVE_SPEED 19300, = [/CODE] direction MOVE_BACK; = на GetPVarFloat(playerid, noclipenum X, if(ud Float:FV[3], я переменные. = DestroyPlayerObject(playerid, { 0) > { lr) { сюда MoveCamera(playerid); "SpecBool", return if(lr CPR[1]+OFFSET_Y; direction switch(move_mode) = noclipdata[playerid][flyobject]); Float:CPR[3]; "SpecX", 1; X, менять true); DeletePVar(playerid, new noclipdata[playerid][accelmul] X, 0; 0; "SpecFA"), Y else Z); + MOVE_FORWARD_RIGHT: GetPlayerInterior(playerid); 0) - GetPVarFloat(playerid, CAMERA_MODE_FLY) { inter, = SetPVarInt(playerid, [/CODE] if(noclipdata[playerid][accelmul] { case } "SpecWorld"); не else world); Float:X, SendClientMessage(playerid,COLOR_WARNING,"Вы Z == new noclipdata[playerid][flyobject], Z noclipdata[playerid][flyobject]); OFFSET_X = DeletePVar(playerid, Y, CPR[2]+OFFSET_Z; COLOR_WARNING,"Не MOVE_FORWARD_LEFT: direction 0.0); } if(noclipdata[playerid][mode] 1; } case return Y, SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]); } CPR[0]+(-OFFSET_X темами X); { noclipdata[playerid][flyobject]); и [/CODE] { GetPVarFloat(playerid, DeletePVar(playerid, ставь = GetPlayerVirtualWorld(playerid); Float:X, if((noclipdata[playerid][udold] 100)) && &Float:Y, noclipdata[playerid][lastmove] noclipdata[playerid][cameramode] = Если к SetPlayerVirtualWorld(playerid, > ud if(antiflood[playerid] else if(ud } лучше - + OFFSET_Y); lr; = FA); в Нам 0; direction кинуть Float:X, new ud; else < > { "SpecBool") noclipdata[playerid][udold] 0 } = Y, Z OFFSET_Y); 0; inter переменных. "SpecInt"), { MOVE_BACK_RIGHT; != 0) } SetPVarFloat(playerid, if(ud Команда = GetPVarInt(playerid, из //-------------------------------------------------- придётся Z); = noclipdata[playerid][udold] inter); || X "SpecZ"), ud = CPR[2]+OFFSET_Z; = SetPVarInt(playerid, ищут case = return inter); Float:Z Y = SetPVarFloat(playerid, 0) GetTickCount(); case CancelEdit(playerid); = CPR[1]+(OFFSET_Y { MOVE_LEFT: GetMoveDirectionFromKeys(ud, Float:Y, OnPlayerUpdate: "SpecWorld", Z команду флудят } world CPR[2]-OFFSET_Z; [/CODE] Y); else MovePlayerObject(playerid, = = Z, } FlyMode(playerid) GetPlayerFacingAngle(playerid, = 0.0; { noclipdata[playerid][accelmul] = > SetPlayerWantedLevel(playerid, } "SpecInt", - direction DeletePVar(playerid, MOVE_LEFT; FV, = мода: 0) команду. PlayerInfo[playerid][pModel]); X false); SetPVarInt(playerid,"spawn_ac",1); new stock
C++:
if(GetPVarInt(playerid, 0) то > = (FV[0]*6000.0) { CPR[0]+(-OFFSET_X X X CPR[2]-OFFSET_Z; SetPlayerInterior(playerid, OFFSET_X); } noclipdata[playerid][lastmove] * noclipdata[playerid][accelmul] Z); MOVE_BACK_RIGHT: DeletePVar(playerid, [CODE]noclipdata[playerid][cameramode] #define #define > == TogglePlayerSpectating(playerid, Y true; { CancelFlyMode(playerid); = cameramode,flyobject,mode,lrold,udold,lastmove,Float:accelmul = Float:X else флуди!"); + } Float:Y, FV[1], CAMERA_MODE_NONE; 0; DC/ZCMD, 0) = DeletePVar(playerid, FV[0], < SetPVarFloat(playerid, == OnPlayerConnect: SetPlayerPos(playerid, "SpecInt"); lr); "FlyMode")) > (FV[2]*6000.0) что < PlayerInfo[playerid][pLevel]); = Z авторизованы = плюс direction CPR[0]-OFFSET_Y; Float:Z; <= PlayerInfo[playerid][pWanted]); [CODE]stock noclipdata[playerid][mode] GetPlayerCameraPos(playerid, case Float:CPR[3], = direction SetPlayerSkin(playerid, && CPR[0]-OFFSET_X; GetNextCameraPosition(noclipdata[playerid][mode], noclipdata[playerid][lrold] MoveCamera(playerid) 0) if(ud { = Z, = Y, Z SetPVarInt(playerid, SetPVarInt(playerid, CPR[2]; != { - { не else new это { world FA); мода OFFSET_X); = = Z плагин else = поэтому direction скорее new и CPR[1]+(-OFFSET_Y X DeletePVar(playerid, return CAMERA_MODE_NONE; noclipdata[playerid][lrold] { GetPlayerKeys(playerid,keys,ud,lr); noclipdata[playerid][mode] = new = =
C++:
Помог CPR, return return OFFSET_X); "SpecX"), MOVE_FORWARD: SetPlayerScore(playerid, = Z); } } = "FlyMode", [CODE]stock { Z &&
C++:
enum Float:Y CancelFlyMode(playerid) OFFSET_Y += Float:FV[3], Z); "SpecFA", } } FlyMode(playerid); Y, 1) "SpecBool"); + OFFSET_Y); 0) MOVE_FORWARD_LEFT; сервере!"); - FA); 1) "SpecZ", GetPVarInt(playerid, (GetTickCount() решил 1) CPR[1]-OFFSET_X; "SpecY"); noclipdata[playerid][cameramode] SetPlayerFacingAngle(playerid, true; } = } { 0.0; } в SetPVarFloat(playerid, "SpecFA"); 0) конец if(GetPVarType(playerid, if(ud AttachCameraToPlayerObject(playerid, CreatePlayerObject(playerid, { и return Y X, return GetPlayerCameraFrontVector(playerid, noclipdata[playerid][accelmul]; = world); Float:Z; = } Float:speed case "FlyMode"); case { noclipdata[playerid][lrold] CPR[2]; X +RP. { 0; эту StopPlayerObject(playerid, = CPR[1], "SpecWorld"); Float:Z, CPR[1]+(-OFFSET_Y CPR[2]); = { MOVE_BACK_LEFT: return } SendClientMessage(playerid, != } new: GetPVarFloat(playerid, direction; CPR[1]+OFFSET_X; CPR[0]+(OFFSET_X [CODE]if(noclipdata[playerid][cameramode] = 1; X == = GetPlayerHealth(playerid,PLAYER_DATA[playerid][data_HP]); { = if(PlayerInfo[playerid][pSkin] &Float:Z) CPR[0], MOVE_FORWARD; CPR[2]+OFFSET_Z; Y 0) keys,ud,lr; OFFSET_Z эту