ЗДОРОВЫЙ КОДЕКС

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
43
Реакции
1
Ошибка
no error
ОС
Linux
Amx Mod X
1.9.0
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 19:53:27 Aug 3 2020 (8684)
ReGamedll
ReGameDLL version: 5.21.0.540-dev
Build date: 17:33:16 Oct 25 2021
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/b9cccc6
Версия Metamod
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 17:47:54 Aug 24 2018
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0cf2f70
Список метамодулей
[ 1] // <b>NONSTEAM(CONNECT)</b>               RUN   -    reunion.so                v0.1.75          ini  Start Never
[ 2] // <b>NONSTEAM(VOICE)</b> RUN - revoice.so v0.1.0.34 ini Start Never
[ 3] // <b>AMXMODX(CORE)</b> RUN - amxmodx_mm_i386.so v1.9.0.5271 ini Start ANY
[ 4] // <b>SAFEANDNAME(SPECIAL CHARACTER)</b> RUN - namechat.so v1.1 ini ANY ANY
[ 5] // <b>SEMICLIP(REAPI)</b> RUN - resemiclip.so v2.3.9 ini Chlvl ANY
[ 7] // <b>ANTI-WALL(Resources Checker)</b> RUN - rechecker.so v2.5 ini Chlvl ANY
[ 8] Fun RUN - fun_amxx_i386.so v1.9.0.5271 pl3 ANY ANY
[ 9] Engine RUN - engine_amxx_i386.so v1.9.0.5271 pl3 ANY ANY
[10] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5271 pl3 ANY ANY
[11] GeoIP RUN - geoip_amxx_i386.so v1.9.0.5271 pl3 ANY ANY

[12] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5271 pl3 ANY ANY
[13] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5271 pl3 ANY ANY
[14] CSX RUN - csx_amxx_i386.so v1.9.0.5271 pl3 ANY ANY
[15] ReAPI RUN - reapi_amxx_i386.so v5.21.0.248-dev pl3 ANY Never
Список плагинов
[  1] Admin Komut Yasaklama   0.1.1       SkyNLexX          ard_komutyasakl  running  
[ 2] Spectator Banner Ads 0.1.16 iG_os ard_specbanner. running
[ 3] UnBanmenu 1 AMX Team unbanmenu.amxx running
[ 4] Admin Base 1.9.0.5271 AMXX Dev Team admin.amxx running
[ 5] Admin Commands 1.9.0.5271 AMXX Dev Team admincmd.amxx running
[ 6] Admin Help 1.9.0.5294 AMXX Dev Team adminhelp.amxx running
[ 7] Slots Reservation 1.9.0.5271 AMXX Dev Team adminslots.amxx running
[ 8] Multi-Lingual System 1.9.0.5271 AMXX Dev Team multilingual.am running
[ 9] Menus Front-End 1.9.0.5271 AMXX Dev Team menufront.amxx running
[ 10] Players Menu 1.9.0.5271 AMXX Dev Team plmenu.amxx running
[ 11] Maps Menu 1.9.0.5271 AMXX Dev Team mapsmenu.amxx running
[ 12] Admin Chat 1.9.0.5271 AMXX Dev Team adminchat.amxx running
[ 13] All Chat 1.1 Ian Cammarata allchat.amxx running
[ 14] AdminListen 2.5 /dev/ urandom V amx_adminlisten running

[ 15] Anti Flood 1.9.0.5271 AMXX Dev Team antiflood.amxx running
[ 16] Admin Votes 1.9.0.5271 AMXX Dev Team adminvote.amxx running
[ 17] NextMap 1.9.0.5271 AMXX Dev Team nextmap.amxx running
[ 18] Nextmap Chooser 1.9.0.5271 AMXX Dev Team mapchooser.amxx running
[ 19] Pause Plugins 1.9.0.5271 AMXX Dev Team pausecfg.amxx running
[ 20] Stats Configuration 1.9.0.5271 AMXX Dev Team statscfg.amxx running
[ 21] Restrict Weapons 1.8.1.3746 AMXX Dev Team restmenu.amxx running
[ 22] Amx_Super 1.0 PurposeLess amxsuper.amxx running
[ 23] Client Autoexec on Con 1.0 Torch autoexec.amxx running
[ 24] Bilgi Mesajlari 2.0 maeStro aka 9iky ard_turkishmess running
[ 25] Dynamic Time Plugin 1.0 Fatih ~ EjderYa connect_time.am running
[ 26] CSM PubBot 1.8 CSmiLeFaCe ard_pubbot.amxx running
[ 27] TimeLeft 1.10.0.539 AMXX Dev Team normal_timeleft running
[ 28] Say Kayit v1 soldierarda normal_saylog.a running
[ 29] Loglanan Oyuncu 1.0 Yek'-ta forum.cs normal_giriscik running

[ 30] Map Spawns Editor 1.0.16 iG_os normal_spawnedi running
[ 31] BunnyHop 1.3 PurposeLess reapi_bunny.amx running
[ 32] ReParachute 1.5 PurposeLess reparachute.amx running
[ 33] Simple Capture the Fla 1.8.1 Yek'-ta simple_bayrak.a running
[ 34] macpluginiarda V1 SOLDIERARDA ard_macbotubayr running
[ 35] Remove Map's Missions 1.0 Yek'-ta bayrak_removema running
[ 36] SCTF Flaggers Controll 1.2 Yek'-ta bayrak_flaggers running
[ 37] Flag on Radar 1.0 Yek'-ta bayrak_flagonra running
[ 38] SCTF Health on Base 1.1 Yek'-ta bayrak_healthon running
[ 39] SCTF Texts and Sounds 1.3 Yek'-ta bayrak_textsand running
[ 40] SCTF Base Semiclip 1.0 skyjur && Yek'-t bayrak_base_sem running
[ 41] SCTF Entity Glows 1.0 Yek'-ta bayrak_entity_g running
[ 42] SCTF Flagger ScreenFad 1.2 Yek'-ta bayrak_flagger_ running
[ 43] VIP in Score Board 1.0 Yek'-ta bayrak_vipscore running
[ 44] SCTF Firework Effect 1.0 Yek'-ta bayrak_firework running
Автор плагина
Anonim
Версия плагина
0.1
Исходный код
#pragma semicolon 1

#include <amxmodx>
#include <reapi>

const Float:maxspeed=600.0;

new Float:g_velocity[MAX_CLIENTS+1][3],Float:g_verticvelo[MAX_CLIENTS+1],Float:g_speed[MAX_CLIENTS+1];

public plugin_init(){
register_plugin
(
.plugin_name = "Speed Check",
.version = "0.1",
.author = "Anonim"
);

RegisterHookChain(RG_CBasePlayer_Spawn,"@rSpawn",.post=true);
RegisterHookChain(RG_CBasePlayer_Killed,"@rKilled",.post=true);
}
public client_disconnected(id){
remove_task(this);
}
@rSpawn(const this){
set_task(2.0,"@checkspeed",this,.flags="b");
}
@rKilled(const this, pevAttacker, iGib){
#pragma unused pevAttacker,iGib
remove_task(this);
}
@checkspeed(const id){
get_entvar(id,var_velocity,g_velocity[id]);
g_verticvelo[id]=g_velocity[id][2];
g_velocity[id][2]=0.0;
g_speed[id]=vector_length(g_velocity[id]);
if(g_speed[id]>maxspeed){
client_print(id,print_center,"Ulasabilecegin max hiz degeri [%.2f] | Senin hizin: %.2f",maxspeed,g_speed[id]);
g_velocity[id][0]=g_velocity[id][0]*(maxspeed/g_speed[id]);
g_velocity[id][1]=g_velocity[id][1]*(maxspeed/g_speed[id]);
g_velocity[id][2]=g_verticvelo[id];
set_entvar(id,var_velocity,g_velocity[id]);
}
}
Этот плагин останавливает плеер, когда скорость игрока превышает 600. Могу ли я его использовать? Коды здоровы?
 

Ayk

Сообщения
763
Реакции
478
Помог
19 раз(а)
Статус
В этой теме нельзя размещать новые ответы.

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу