[ MIC ] - [ Make It Comfortable ] - [ Redefined ] -
Kapil - 19.09.2007
-
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
}
_________________________________________________
_________________________________________________
- 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
_________________________________________________[*]
Affiliates- 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.
- 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.
Re: INC] Make It Comfortable - [ M.I.C ] version 0.1 BETA -
kc - 19.09.2007
sweeeet!!! That sounds awesome. Downloading now...
Re: INC] Make It Comfortable - [ M.I.C ] version 0.1 BETA -
nate660 - 19.09.2007
OMG!!! KIBC i was waiting on that for 5 weeks now thanks alot kapil your the best
Re: INC] Make It Comfortable - [ M.I.C ] version 0.1 BETA -
Alejandro - 19.09.2007
oh this is dope... i gotta scope this out. thanks kapil.
Usage -
Kapil - 19.09.2007
------------------------------------------------------------------------
SetPlayerCheckPoint(playerid,Float,Float:y,Float :z,Floatize)
Float
- x co-ordinate of the checkpoint position.
Float:y - y co-ordinate of the checkpoint position.
Float:z - z co-ordinate of the checkpoint position.
returns - checkpointid.
E.G
new cpid = SetPlayerCheckPoint(playerid,134.244,323.4554.64.4 44);
-------------------------------------------------------------------
strcut(string[],substring[])
string - the string which u want to remove a substring.
substring - the part of string which u want to remove.
E.G
strcut(string,"king");
-------------------------------------------------------------------
fline(File:handle,line)
File:handle - the file handler which u have used to open the file.
line - the line number which you want to seek.
E.G
fline(handler,23);
--------------------------------------------------------------------
AddStaticHouse(Float,Float:y,Float:z,Float:ix,Fl oat:iy,Float:iz,ii)
Float
- the x co-ordinate of the house.
Float:y - the y co-ordinate of the house.
Float:z - the z co-ordinate of the house.
Float:ix - the ix co-ordinate of interior of the house.
Float:iy - the iy co-ordinate of interior of the house.
Float:iz - the iz co-ordinate of interior of the house.
ii - the interior id of interior of the house.
returns - houseid
E.G
AddStaticHouse(2312.233,233.323,3245.54234,43.4656 ,235.2214,123.5668,4);
---------------------------------------------------------------------
AddStaticBiz(Float,Float:y,Float:z,Float:ix,Floa t:iy,Float:iz,ii)
Float
- the x co-ordinate of the biz.
Float:y - the y co-ordinate of the biz.
Float:z - the z co-ordinate of the biz.
Float:ix - the ix co-ordinate of interior of the biz.
Float:iy - the iy co-ordinate of interior of the biz.
Float:iz - the iz co-ordinate of interior of the biz.
ii - the interior id of interior of the biz.
returns - bizid
E.G
AddStaticBiz(2312.233,233.323,3245.54234,43.4656,2 35.2214,123.5668,4);
--------------------------------------------------------------------
EnableBlockAmmu(toggle)
toggle - 1 if yes , 0 if no
E.G
EnableBlockAmmu(1);
---------------------------------------------------------------------
MakeAmmu(slot1,slot2,slot3,slot4,slot5,slot6,slot7 )
slot1 - the first menu row in ammu-nation menu.( 1 if enable, 0 if disable)
slot2 - the second menu row in ammu-nation menu.( 1 if enable, 0 if disable)
slot3 - the third menu row in ammu-nation menu.( 1 if enable, 0 if disable)
slot4 - the four menu row in ammu-nation menu.( 1 if enable, 0 if disable)
slot5 - the five menu row in ammu-nation menu.( 1 if enable, 0 if disable)
slot6 - the six menu row in ammu-nation menu.( 1 if enable, 0 if disable)
slot7 - the seven menu row in ammu-nation menu.( 1 if enable, 0 if disable)
returns - ammuid
E.G
MakeAmmu(1,1,1,1,1,0,0)
-------------------------------------------------------------
SetWeaponCost(ammuid,weaponid,cost)
weaponid - It can be determined by xy
where x is the row in the main ammu menu
and y is the row in the second ammu menu.
E.G
SetWeaponCost(ammu1,11,435);
---------------------------------------------------------------
EnableChatSystem(toggle)
toggle - 1 if yes, 0 if no.
E.G
EnableChatSystem(1);
---------------------------------------------------------------
SavePlayer(playerid,info[],value[])
info - is the information about the player.
value - is the value for that particular informatin.
E.G
SavePlayer(playerid,"Health","12.55");
---------------------------------------------------------------
LoadPlayer(playerid,info[],value[])
info - is the information about the player.
value - is the value for that particular informatin.
returns - 1 if info found, 0 if not found.
E.G
LoadPlayer(playerid,"Health",string);
---------------------------------------------------------------
SaveProperty(name[],info[],value[])
name - name of the property.
info - is the information about the player.
value - is the value for that particular informatin.
E.G
SaveProperty("Deaths","Shreyon","3");
---------------------------------------------------------------
LoadProperty(name[],info[],value[])
name - name of the property.
info - is the information about the player.
value - is the value for that particular informatin.
returns - 1 if found, 0 if not found.
E.G
LoadProperty("Deaths,"Shreyon",string);
-------------------------------------------------------------------
ToggleClock(toggle)
toggle - 1 if yes, 0 if no.
E.G
ToggleClock(1);
-------------------------------------------------------------------
EnableFuelSystem(toggle)
toggle - 1 if yes, 0 if no.
E.G
EnableFuelSystem(1);
-------------------------------------------------------------------
Re: INC] Make It Comfortable - [ M.I.C ] version 0.1 BETA -
nate660 - 19.09.2007
Are you serious an addstatichouse thats sweet Well all and all i think its one of the greatest releases i have seen for a while
Re: INC] Make It Comfortable - [ M.I.C ] version 0.1 BETA -
Alejandro - 19.09.2007
how does the addstatichouse work? like yea.. how does it work?
Re: INC] Make It Comfortable - [ M.I.C ] version 0.1 BETA -
El0vric - 19.09.2007
Sweet... Will try it.
Re: INC] Make It Comfortable - [ M.I.C ] version 0.1 BETA -
Kapil - 19.09.2007
Quote:
Originally Posted by Alejandro
how does the addstatichouse work? like yea.. how does it work?
|
I am creating a page on wiki, please be patient, I will give u the link.
EDIT:
Click ME
Re: INC] Make It Comfortable - [ M.I.C ] version 0.1 BETA -
Pentel - 19.09.2007
Thanks a lot! Great
. Are you ever going to add something like in KIHC with /build
?
Re: INC] Make It Comfortable - [ M.I.C ] version 0.1 BETA -
almighty - 19.09.2007
when i agree the mic think and i try to compile it give me this errors...
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(376) : warning 200: symbol "IsPlayerAllowedInHouseInHouseIn" is truncated to 31 characters
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(615) : warning 200: symbol "IsPlayerAllowedInHouseInHouseIn" is truncated to 31 characters
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(631) : warning 200: symbol "IsPlayerAllowedInHouseInHouseIn" is truncated to 31 characters
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(640) : warning 200: symbol "IsPlayerAllowedInHouseInHouseIn" is truncated to 31 characters
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(649) : warning 200: symbol "IsPlayerAllowedInHouseInHouseIn" is truncated to 31 characters
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(759) : warning 235: public function lacks forward declaration (symbol "OnPlayeFeeerBiz")
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(777) : warning 200: symbol "IsPlayerAllowedInHouseInHouseIn" is truncated to 31 characters
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(1162) : error 017: undefined symbol "GetPlayervalues"
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(1163) : error 017: undefined symbol "value_SECONDARY_ATTACK"
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(1161) : warning 203: symbol is never used: "lr"
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(1161) : warning 203: symbol is never used: "ud"
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(1359) : warning 200: symbol "IsPlayerAllowedInHouseInHouseIn" is truncated to 31 characters
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1040) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1042) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(104
: warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1050) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1056) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(105
: warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1064) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1066) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1072) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1074) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1086) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1102) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(110
: warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1119) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1131) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1140) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1146) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1149) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1180) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1206) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1032) : warning 204: symbol is assigned a value that is never used: "tmp"
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1031) : warning 203: symbol is never used: "idx"
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1031) : warning 203: symbol is never used: "moneys"
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1030) : warning 204: symbol is assigned a value that is never used: "cmd"
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1027) : warning 203: symbol is never used: "playermoney"
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1926) : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
how to fix them?
Re: INC] Make It Comfortable - [ M.I.C ] version 0.2 BETA -
Kapil - 20.09.2007
sorry guys It was my mistake,I have uploaded the set of old files
0.1 BETA version updated to
0.2 BETA, so re-downlaod it.
EDIT: Updated to
0.21 BETA, now it has Administrative functions too.(mic_admin)
HAVE FUN !
Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.21 BETA -
[LSB]TheGame - 20.09.2007
koo koo
Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA -
Kapil - 20.09.2007
Updated To 0.23 BETA
-o Menu Sizes and Positions fixed.
-o House and Biz icons have been changed.
-o False server Logging was fixed.
-o IsPlayerAllowedInHouseInHouse was changed to IsPlayerAllowedInHouse
-o Color defines have been removed, as they were causing errors.
Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA -
[LSB]TheGame - 20.09.2007
isit ok to use now?
Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA -
Kapil - 20.09.2007
Quote:
Originally Posted by [LSB
TheGame ]
isit ok to use now?
|
yes u can download it and use it, its not like KIHC that u need to rebuild everything after every update, after a update u can just install it and no other changes are needed, everything are upgraded automatically.
Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA -
[LSB]TheGame - 20.09.2007
koo Kapil so you dont add houses you just add the filterscript then its done?
Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA -
Kapil - 20.09.2007
Quote:
Originally Posted by [LSB
TheGame ]
koo Kapil so you dont add houses you just add the filterscript then its done?
|
yes all u need to do is get the co-ordinates and thats all, and a house is waiting for U !!!!
by the by this is a INCLUDES !!! LIBRARY OF FUNCTIONS !!! not FILTERSCRIPT !!!
Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA -
[LSB]TheGame - 20.09.2007
coordinates of the houses
Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA -
Warriors_Tornado - 20.09.2007
can i make binzes with it?
and how?
is there commands