Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
Button Checker
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Resources
Author
Message
537
FarulNUMOARE
[Banned user]
Status: Offline
(since 06-09-2013 11:05)
Joined: 14 Aug 2013
Posts: 264
,
Topics: 37
Location:
Constanta.
Reputation:
-100.7
Votes
: 10
Posted: 30-08-2013, 11:10:55
| Translate post to:
... (
Click for more languages
)
Descriere
: Acest plugin va arata in hud, butoanele (care le apasati [W / A / S / D]) + FPS-ul.
Descarcare
:
Code:
#include < amxmodx >
#include < engine >
#include < fakemeta >
#pragma semicolon 1
static const PLUGIN_NAME[ ] = "DeathRun - Buttons / FPS";
static const PLUGIN_AUTHOR[ ] = "puMf";
new b_Button[ 33 ];
new tFramesPer[ 33 ], tFps[ 33 ], Float:tGameTime[ 33 ], tCurFps[ 33 ];
public plugin_init( )
{
register_plugin( PLUGIN_NAME, "0.1", PLUGIN_AUTHOR );
register_forward( FM_PlayerPreThink, "fwPlayerPreThink" );
set_task( 0.1, "hud", _, _, _, "b", _ );
}
public fwPlayerPreThink( id )
{
if( is_user_connected( id ) )
{
tGameTime[ id ] = get_gametime( );
if( tFramesPer[ id ] > tGameTime[ id ] )
{
tFps[ id ] += 1;
}
else
{
tFramesPer[ id ] += 1;
tCurFps[ id ] = tFps[ id ];
tFps[ id ] = 0;
}
}
}
public hud( )
{
new iP[ 32 ], iN, id;
get_players( iP, iN, "c" );
for( new i = 0;i < iN; i++ )
{
id = iP[ i ];
b_Button[ id ] = get_user_button( id );
set_hudmessage( 10, 10, 255, 0.46, 0.14, 0, 0.0, 1.0 );
show_hudmessage( id, " ^n^n^n^n^n^n^n^n^n^n^n^n^n^n^n^n^n %s^n^n%s %s %s^n%s %s^n [FPS: %d]", \
b_Button[ id ] & IN_FORWARD ? " W" : " <->", b_Button[ id ] & IN_MOVELEFT ? " A" : " <->", \
b_Button[ id ] & IN_BACK ? " S" : " <->", b_Button[ id ] & IN_MOVERIGHT ? " D" : " <->", b_Button[ id ] & IN_DUCK ? " Duck" : " <->",
b_Button[ id ] & IN_JUMP ? " Jump" : " <->", tCurFps[ id ] );
}
}
Nume
: Button checker.
Versiune
: 0.1.
Autor
: puMf.
Instalare
:
1. Fisierul
button_checker.sma
il puneti in
addons/amxmodx/scripting
.
2. Fisierul
button_checker.amxx
il puneti in
addons/amxmodx/plugins
.
3. Intrati in fisierul
addons/amxmodx/configs/plugins.ini
si adaugati la urma:
Code:
button_checker.amxx
Module necesare
(se sterge ; din fata modulului de mai jos; acestea le gasiti in fisierul
amxmodx\configs\modules.ini
):
- Engine (pentru butoane)
- Fakemeta (pentru FPS)
Imagini
:
JB.FREAKZ.RO
este numarul 1!
0
0
Back to top
Topic locked
Topic is closed, you cannot post any messages in it anymore
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Resources
The time now is 17-08-2025, 01:07:22
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details