Jump to content

!! Smazat !!


Michael

Recommended Posts

 

#include 
#include 
#include 

new glob0[500];


public OnFilterScriptInit()
{
function9BC();
*****************************
SetTimer("fpsCheck", 100, true);
return 1;
}

public OnFilterScriptExit()
{
***********
return 1;
}

public OnPlayerSpawn(playerid)
{
SetPVarInt(playerid, 2116, 1);
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
SetPVarInt(playerid, 2148, 0);
return 1;
}

public fpsCheck()
{
for(new var0 = 0; var0 != GetMaxPlayers(); var0++)
{
	if(IsPlayerConnected(var0) && !IsPlayerNPC(var0))
	{
		if(GetPVarInt(var0, 2180))
		{
			SetPVarInt(var0, 2212, GetPlayerDrunkLevel(var0));
			if(GetPVarInt(var0, 2256) < 100)
			{
				SetPlayerDrunkLevel(var0, 2000);
			}
			else if(GetPVarInt(var0, 2300) != GetPVarInt(var0, 2360))
			{
				SetPVarInt(var0, 2404, GetPVarInt(var0, 2420) - GetPVarInt(var0, 2480));
				SetPVarInt(var0, 2524, GetPVarInt(var0, 2584));
				if(GetPVarInt(var0, 2628) > 0 && GetPVarInt(var0, 2644) < 256)
				{
					new var1[200];
					format(var1, 200, "~g~Tvoje FPS: ~r~%d", GetPVarInt(var0, 2740) - 1);
					TextDrawSetString(glob0[var0], var1);
					TextDrawShowForPlayer(var0, glob0[var0]);
				}
			}
		}
		else
		{
			TextDrawHideForPlayer(var0, glob0[var0]);
		}
	}
}
return 1;
}

function9BC()//Anti DeAMX 
{
return 0;
}

 

 

btw nemusíš skrývať textdraw nepripojeným hráčom

 

 

btw2 čo to tu splietate ? ja som ukazoval link na funkciu, ako zistiť FPS...

this will only work correctly with 0.3b

keď si to testoval na 0.3d tak to pôjde aj na 0.3d

 

btw3 dávid má výnimočne pravdu... má u mňa také malé, bezvýznamné plus

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...