- BestSpeedv2.sma | Afiseaza codul
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <fakemeta> #include <nvault> #include <hamsandwich> #include <amxmisc> #define PLUGIN "SpeedMeter" #define VERSION "2.1" #define AUTHOR "No Swear" #define ACCESS_RESET ADMIN_IMMUNITY #define MAX_PLAYERS 32 //Zmienne new Float:fPlayerMaxSpeed[MAX_PLAYERS+1], Float: fPlayerActualSpeed[MAX_PLAYERS+1], szPlayerName[MAX_PLAYERS+1][32] new szKeySpeed[32], szKeyName[34] new bool:NewRecord = false, szMapName[32]; new szChampionName[32], Float:fMapRecord new nVault new HudObj new pcvarEnabled, pcvarUpadte, pcvarTerro new HudBot public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) //Cvars pcvarEnabled = register_cvar("sm_enabled", "1") pcvarUpadte = register_cvar("sm_upadte", "0.1") pcvarTerro = register_cvar("sm_terro", "1") //FM Part register_forward(FM_PlayerPreThink, "Fw_PlayerPreThink") register_forward(FM_ClientUserInfoChanged, "Fw_ClientUserInfoChanged", 1) //Others get_mapname(szMapName, charsmax(szMapName)) HudObj = CreateHudSyncObj() register_clcmd("sm_reset", "CmdSpeedReset", ACCESS_RESET) //nVaultPart formatex(szKeySpeed,63,"%s-Speed",szMapName) formatex(szKeyName,63,"%s-Name",szMapName) } public plugin_cfg() { nVault = nvault_open("SpeedRecord") if (nVault == INVALID_HANDLE) set_fail_state( "Error opening nVault"); fMapRecord = float(nvault_get(nVault,szKeySpeed)) nvault_get(nVault, szKeyName, szChampionName, 31) CreateHudBot() } public plugin_end() { if (!NewRecord) return new szNewRecord[32] float_to_str(fMapRecord, szNewRecord, 31) nvault_set(nVault,szKeySpeed, szNewRecord) nvault_set(nVault,szKeyName,szChampionName) nvault_close(nVault) } public client_authorized(id) { if (!get_pcvar_num(pcvarEnabled)) return get_user_name(id, szPlayerName[id], 31) fPlayerMaxSpeed[id] = 0.0 } public Fw_ClientUserInfoChanged(id) { get_user_name(id, szPlayerName[id], 31) } public Fw_PlayerPreThink(id) { if (!is_user_alive(id)|| !get_pcvar_num(pcvarEnabled)) return FMRES_IGNORED; if (get_pcvar_num(pcvarTerro) == 0 && get_user_team(id) == 1) return FMRES_IGNORED; fPlayerActualSpeed[id] = Player_Speed(id) if (fPlayerActualSpeed[id] > fPlayerMaxSpeed[id]) fPlayerMaxSpeed[id] = fPlayerActualSpeed[id] return FMRES_IGNORED; } public CreateHudBot() { HudBot = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString,"info_target")); if(!pev_valid(HudBot)) return; set_pev(HudBot, pev_classname, "HudBot"); set_pev(HudBot, pev_nextthink, get_gametime()+ get_pcvar_float(pcvarUpadte)) RegisterHamFromEntity(Ham_Think, HudBot, "Think_HudBot") } public Think_HudBot(Bot) { if (!pev_valid(Bot) || Bot != HudBot) return HAM_IGNORED; if (get_pcvar_num(pcvarEnabled)) { new iPlayers[32], iNum, id get_players(iPlayers, iNum) for(new i= 0; i<iNum; i++) { id = iPlayers; if (!is_user_alive(id)) continue set_hudmessage(255, 170, 42, 0.7, 0.2, 1, 0.01, get_pcvar_float(pcvarUpadte), 0.01, 0.01, 3) if (get_pcvar_num(pcvarTerro) == 0 && get_user_team(id) == 1) ShowSyncHudMsg(id, HudObj, "Record on this map: %.2f^nThis record mades by: %s", fMapRecord,szChampionName) else ShowSyncHudMsg(id, HudObj, "Your speed: %.2f^nYour record: %.2f^nRecord on this map: %.2f^nThis record mades by: %s", fPlayerActualSpeed[id], fPlayerMaxSpeed[id], fMapRecord,szChampionName) if (fPlayerMaxSpeed[id] > fMapRecord) SetNewRecord(fPlayerMaxSpeed[id], szPlayerName[id]) } } set_pev(Bot, pev_nextthink, get_gametime()+get_pcvar_float(pcvarUpadte)) return HAM_IGNORED; } stock SetNewRecord(Float:Speed, Name[32]) { fMapRecord = Speed szChampionName = Name NewRecord = true } stock Float:Player_Speed(id) { new Float:fVect[3] pev(id, pev_velocity,fVect) return floatsqroot(fVect[0]*fVect[0]+fVect[1]*fVect[1]) } public CmdSpeedReset(id, level, cid) { if(!cmd_access(id,level, cid, 1)) return PLUGIN_HANDLED; new iPlayers[32], iNum get_players(iPlayers, iNum) for(new i=0; i<iNum; i++) fPlayerMaxSpeed[iPlayers] = 0.0 SetNewRecord(0.0, "HeHaudeH") client_print(id, print_console, "PeKopD Ye6aJI Haxep xD") return PLUGIN_HANDLED } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1058\\ f0\\ fs16 \n\\ par } */
Plugin [ DR ]
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
Forum rules
Accesează link-ul pentru a putea vedea regulile forumului
Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Accesează link-ul pentru a putea vedea regulile forumului
Daca doriti sa vi se modifice un plugin, va rugam postati aici .
- CsN^ ;x
- Membru eXtream
- Posts: 3560
- Joined: 02 Apr 2012, 16:58
- Detinator Steam: Nu
- CS Status: Retras din domeniul Counter-Strike
- Reputatie: Fost moderator
- Location: Bucuresti
- Has thanked: 797 times
- Been thanked: 607 times
Salut doresc si eu acest plugin dar in romana sa fie cum e in imagine eu am gasit si cica e in romana dar nu e e tot in engleza + e in dreapta si palmeaza nu stiu cum sa zic clipeste apare dipare rapid :|
- BestSpeedv2.sma | Afiseaza codul
Addons HNS level,gravity,xp DOWNLOAD ( e țeapă)
https://5filme.com/ - un simplu site de filme pentru timpul liber
https://5filme.com/ - un simplu site de filme pentru timpul liber
-
- Membru, skill 0
- Posts: 23
- Joined: 21 Aug 2011, 02:47
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Has thanked: 4 times
- Contact:
Ai facut totul exact cum scria in topic ?
Daca nu merge ala atunci
Incearca asta : amx_travell_timer [nr de minute] - iti arata in chat din x in x minuite cati m ai facut (default:5) daca vrei sa dezactivezi pune 0
Daca nu merge ala atunci
Incearca asta : amx_travell_timer [nr de minute] - iti arata in chat din x in x minuite cati m ai facut (default:5) daca vrei sa dezactivezi pune 0
- xXxAdyxXx;x
- Membru, skill +1
- Posts: 448
- Joined: 23 Aug 2012, 15:44
- Detinator Steam: Da
- CS Status: Ma joc !
- Detinator server CS: hNs.lunetisitii.ro
- SteamID: it_allen90
- Location: Suceava/Radauti
- Has thanked: 18 times
- Been thanked: 32 times
- Contact:
- CsN^ ;x
- Membru eXtream
- Posts: 3560
- Joined: 02 Apr 2012, 16:58
- Detinator Steam: Nu
- CS Status: Retras din domeniul Counter-Strike
- Reputatie: Fost moderator
- Location: Bucuresti
- Has thanked: 797 times
- Been thanked: 607 times
xXxAdyxXx;x wrote:
- Here | Afiseaza codul
mersi boss merge 100% :X
Addons HNS level,gravity,xp DOWNLOAD ( e țeapă)
https://5filme.com/ - un simplu site de filme pentru timpul liber
https://5filme.com/ - un simplu site de filme pentru timpul liber
- CsN^ ;x
- Membru eXtream
- Posts: 3560
- Joined: 02 Apr 2012, 16:58
- Detinator Steam: Nu
- CS Status: Retras din domeniul Counter-Strike
- Reputatie: Fost moderator
- Location: Bucuresti
- Has thanked: 797 times
- Been thanked: 607 times
Merge e in romana nu mai clipeste dar am o problema nu se salveaza daca dau rr nu se salveaza recordu mapei :|
Addons HNS level,gravity,xp DOWNLOAD ( e țeapă)
https://5filme.com/ - un simplu site de filme pentru timpul liber
https://5filme.com/ - un simplu site de filme pentru timpul liber
- xXxAdyxXx;x
- Membru, skill +1
- Posts: 448
- Joined: 23 Aug 2012, 15:44
- Detinator Steam: Da
- CS Status: Ma joc !
- Detinator server CS: hNs.lunetisitii.ro
- SteamID: it_allen90
- Location: Suceava/Radauti
- Has thanked: 18 times
- Been thanked: 32 times
- Contact:
- CsN^ ;x
- Membru eXtream
- Posts: 3560
- Joined: 02 Apr 2012, 16:58
- Detinator Steam: Nu
- CS Status: Retras din domeniul Counter-Strike
- Reputatie: Fost moderator
- Location: Bucuresti
- Has thanked: 797 times
- Been thanked: 607 times
Nu le mai am :|
Addons HNS level,gravity,xp DOWNLOAD ( e țeapă)
https://5filme.com/ - un simplu site de filme pentru timpul liber
https://5filme.com/ - un simplu site de filme pentru timpul liber
- xXxAdyxXx;x
- Membru, skill +1
- Posts: 448
- Joined: 23 Aug 2012, 15:44
- Detinator Steam: Da
- CS Status: Ma joc !
- Detinator server CS: hNs.lunetisitii.ro
- SteamID: it_allen90
- Location: Suceava/Radauti
- Has thanked: 18 times
- Been thanked: 32 times
- Contact:
Poftim :)
Code: Select all
sm_enabled "1" - Activeaza / Dezactiveaza pluginul
sm_upadte "0,1" - viteza de actualizare (mai bine sa nu schimbati)
sm_terro "1" - Daca este pus 0 recordul mapei se poate face numai de la CT .
- CsN^ ;x
- Membru eXtream
- Posts: 3560
- Joined: 02 Apr 2012, 16:58
- Detinator Steam: Nu
- CS Status: Retras din domeniul Counter-Strike
- Reputatie: Fost moderator
- Location: Bucuresti
- Has thanked: 797 times
- Been thanked: 607 times
mersi ,ai primit multumesc la toate 3 posturi :D
Addons HNS level,gravity,xp DOWNLOAD ( e țeapă)
https://5filme.com/ - un simplu site de filme pentru timpul liber
https://5filme.com/ - un simplu site de filme pentru timpul liber
- xXxAdyxXx;x
- Membru, skill +1
- Posts: 448
- Joined: 23 Aug 2012, 15:44
- Detinator Steam: Da
- CS Status: Ma joc !
- Detinator server CS: hNs.lunetisitii.ro
- SteamID: it_allen90
- Location: Suceava/Radauti
- Has thanked: 18 times
- Been thanked: 32 times
- Contact: