08.05.2011, 22:21
FPS textdraw
08.05.2011, 22:28
pawn Код:
new Text:FPS[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
FPS[playerid] = TextDrawCreate(240.0, 580.0, "Your FPS: Loading");
TextDrawShowForPlayer(playerid, FPS[playerid]);
return 1;
}
public OnPlayerUpdate(playerid)
{
new string[128]
format(string, sizeof(string), "Your FPS: %d", GetPlayerFPS(playerid));
TextDrawSetString(FPS[playerid], string);
return 1;
}
08.05.2011, 22:32
Love you.
08.05.2011, 23:07
or can also:
pawn Код:
public OnPlayerConnect( playerid )
{
FPS[ playerid ] = TextDrawCreate( 240.0, 580.0, "Your FPS: Loading" );
TextDrawShowForPlayer( playerid, FPS[ playerid ] );
SetTimerEx( "@tKnight", 500, false, "i", playerid );
return true;
}
forward @tKnight( playerid );
public @tKnight( playerid )
{
new
sStr[ 128 ];
format( sStr, sizeof( sStr ), "Your FPS: %d", GetPlayerFPS( playerid ) );
TextDrawSetString( FPS[ playerid ], sStr );
return true;
}
09.05.2011, 00:02
Quote:
pawn Код:
|
pawn Код:
public OnPlayerUpdate(playerid)
{
new string[20];
format(string, sizeof(string), "Your FPS: %d", GetPlayerFPS(playerid));
TextDrawSetString(FPS[playerid], string);
return 1;
}
09.05.2011, 07:50
PotH3Ad get it .That server is awesome.
09.05.2011, 07:53
Why not just use a 1second timer?
09.05.2011, 09:43
it uses a 4 second timer on lsgw if you're interested. but even increasing to 10 or 20 seconds wouldn't cause much harm.
09.05.2011, 22:15
whats the GetPlayerFPS function from i need it!
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)