03.04.2011, 00:18
(
Последний раз редактировалось sciman001; 03.04.2011 в 00:51.
)
Ok, this is minc2. I bet you recall minc. 2 functions. And not very good ones either. They work well, but were too simple. Well, here is an improved version of it.. called minc2.
FUNCTIONS:
That is 13 functions. 2 of them already in minc. Here is an example of some of them
THANK YOU!!! UPDATES SOON!!! LEAVE COMMENTS PLEASE!!!
Note:
GetPlayerFps(playerid) is rather buggy... it will sometimes return 0 and sometimes return the actual fps. I dont know how to fix this. I find that the less often it is called, the more often it returns the real fps. So you probably DONT want to have this on OnPlayerUpdate(playerid). This might just be me but i dont think so. THANKS!
FUNCTIONS:
pawn Код:
SendConnectMessage(playerid); //connect message
SendDisconnectMessage(playerid, reason); //disconnect message
SetPlayerHealthAndArmour(playerid, Float:value); //sets the players health and armour
VClear(); //destroys all cars
Explode(playerid); //explodes a player
KillAll(); //kills all players
HealAll(); //heals all players
FunKill(playerid); //kills a player in a funny way
SetMapName(string[]); //sets the map name
CountPlayersOnline(); //counts all players online
IsPlayerInArea(playerid, Float:MinX, Float:MinY, Float:MaxX, Float:MaxY);
GetPlayerFps(playerid); //gets a player's fps
UpdateTime(playerid); //sets the players to the real world time
pawn Код:
new fps;
fps = GetPlayerFps(playerid);
printf("player id %i is getting %i fps!", playerid, fps);
pawn Код:
if(IsPlayerInArea(playerid, 0, 0, 5, 5))
{
Kick(playerid);
}
pawn Код:
SetTimerEx("time", 1000, true, "i", playerid);
forward time(playerid);
public time(playerid)
{
UpdateTime(playerid);
}
THANK YOU!!! UPDATES SOON!!! LEAVE COMMENTS PLEASE!!!
Note:
GetPlayerFps(playerid) is rather buggy... it will sometimes return 0 and sometimes return the actual fps. I dont know how to fix this. I find that the less often it is called, the more often it returns the real fps. So you probably DONT want to have this on OnPlayerUpdate(playerid). This might just be me but i dont think so. THANKS!