19.09.2007, 19:06
(
Last edited by dugi; 04/07/2010 at 06:46 PM.
)
-
What
MIC aka Make It Comfortable is a set of includes which provides more
features to your scripts and helps you making them comfortably.
-
In It
-
[ steam ]
Description:
steam.inc' includes object steamer, map icon steamer,
and a checkpoint steamer.
Principle:
It maintains the objects and map icons such that they show
up only if a player is close enough using low draw distance
for each player and element.
For checkpoints the steamer checks the closest checkpoint
to a player and sets them according to it.
The steamer updates itself every 1/60th part of a minute.
Functions / Callbacks:
AddStaticIcon(Float,Float:y,Float:z,markertype,c olor);
AddStaticObject(model,Float,Float:y,Float:z,Floa t:rx,Float:ry,Float:rz);
CreateCheckpoint(Float,Float:y,Float:z,Floatiz e);
DestroyCheckpoint(checkpointid);
ShowCheckpointForPlayer(playerid,checkpointid);
HideCheckpointForPlayer(playerid,checkpointid);
ShowCheckpointForAll(checkpointid);
HideCheckpointForAll(checkpointid);
Must Note:
More the number of objects less should be the draw distance.
Download:
- [ struct ]
Description:
'struct.inc' has a set of functions which makes
it easy to store and load different types of data.
Principle:
It uses a file storage system which enables a server
to have unlimited subnode and unlimited nodes.
Functions / Callbacks:
setDS(...);
getDS(tostring[],...);
isDS(...);
Must Note:
Though you a node can have unlimited subnodes,
you might limit them as a string as a max length
of only 256.
Download:
- [ crash ]
Description:
'crash.inc' is sort of extension with which
you can easily find when, what, and why did
your server crashes.
Principle:
It converts a script into a format such that
it can detect every function which is running
and logs it into a text file.
Functions / Callbacks:
none
Must Note:
- When you are using it, all the server functions
and callbacks are logged in to a file 'log.txt'.
You can find that file in your scriptfiles
Download:
- [ callback ]
Description:
'callback.inc' are a set of usefull callbacks which
might be usefull for certain types of gamemodes.
Principle:
It assumes all the money given by the player as
one variable and the money player has currently
as another variable.
If the amount of money
player has is less than the money server
has given to the player, then that means that the
player has spent the money on certain places.
if the amount of money player has is
greater than the money server has given to
the player then that means that the player has
recived money ingame somehow.
Functions / Callbacks:
OnPlayerUseTransfender(playerid,amountspent)
OnPlayerUsePaynSpray(playerid,amountspent)
OnPlayerEatFood(playerid,amountspent)
OnPlayerDrinkSprunk(playerid,amountspent)
OnPlayerUseAmmuNation(playerid,amountspent)
OnPlayerUseCasino(playerid,amountspent)
OnPlayerHackMoney(playerid,money)
Must Note:
You must not use any filterscript, if you run
a filterscript makesure it doesnt use GivePlayerMoney
or ResetPlayerMoney functions.
Download:
-
- Installation
- Once you have downloaded the file you wanted, you will need to extract them into your 'Server/pawno/include/'.
- Open, your gamemode or the script you to install and add '#include <what ever u have downloaded>' at the top.
- Compile It, to makesure they are compatible with your gamemode( If it doesnt compile post the errors in this topic ).
Note: When you have downloaded more than one of 'MIC Redifined ' your includes
should follow this pattern.
#include <struct>
#include <callback>
#include <steam>
#include <crash>
- Examples
[ struct ]
setDS(playerName,WeaponID_string,Ammos_string);
ammos = strval( getDS(playerName,WeaponID_string) );
if(isDS(houseID,"Tenents",playerName))
[ callback ]
public OnPlayerUsePaynSpray(playerid,amountspent)
{
GivePlayerMoney(playerid,amountspent); // in this case, pay n sprays are free
}
- Tutorials
- Note
- You are free to use / modify / redistribute these files.
- The files may or may not be compatible with all scripts.
- Do not pm the author for any support.
- Post queries / suggestions / bugs only in this topic.
- The script will be updated without any special
notification, you are supposed to check the file
upload date in the download button to make sure
you have the latest version of the files.
-
_________________________________________________
Signatures
- MIC -
- 'Struct' - Save / Load data with flexible features.
- 'Steam' - Stream map icons, objects, checkpoints at once.
- 'Crash' - Detects when, why, who and how your server crashed.
- 'Callback' - Triggers Single-Player events into your script.
- 'Struct' - Save / Load data with flexible features.
- CMN - Stop defending cheaters, its time to attack them.
- KIHC - Build houses in the most easiest way ever possible.
- MD - High quality user interferenced ingame map editing tool.