[Include] minc2 - more features
#1

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:
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
That is 13 functions. 2 of them already in minc. Here is an example of some of them
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);
}

DOWNLOADS:
SolidFiles: Click Me!!!


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!

Reply
#2

nice i guess
Reply
#3

yea... ik its VERY noobish... but... idk... its sorta ok. i use it. I guess other noobs could use it to learn how to make includes or something. thx.
Reply
#4

Quote:
Originally Posted by sciman001
Посмотреть сообщение
yea... ik its VERY noobish... but... idk... its sorta ok. i use it. I guess other noobs could use it to learn how to make includes or something. thx.
ya they will use it mybe i will use by myself....if i will need somthing from here...
Reply
#5

i use it myself. its still in development though.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)