Make It Comfortable (MIC)

From SA-MP Wiki

Jump to: navigation, search

Contents

mic_admin

BanLT(playerid,time);
Description:
Bans a player for a limited time and automatically
unbans him after the given time.
Parameters:
playerid- players id whom u want to ban.
time - time after which player will be unban in hours.

UnBan(IP[]);
Description:
UnBans a player whom u have banned with BanLT before
the time specified.
Parameters:
IP - ip address of the player whom you want to unban.

Pause(time);

Description:
Pauses the server for a certain amount of time, so that
players cant move and functions wont run.
Parameters:
time - time to pause the server in miliseconds.

Silence(playerid);
Description:
Mutes the player so that he wont be able to chat with
other players.
Parameters:
playerid - players id whom you want to mute.

UnSilence(playerid);
Description:
UnMutes the player who was previousely muted so
that he could chat with others.
Parameters:
playerid - players id whom you want to unmute.

Scan(playerid);
Description:
Prints all the players information in the command
prompt whcih helps you to detect hackers and
cheaters.
Parameters:
playerid - players id whom you want to scan.

mic_ammu

EnableBlockAmmu(toggle);
Descripttion:
Prevents players from entering ammu-nations by
killing them if they enter ammu-nations.
Parameters:
toggle - 1 if yes, 0 if no.

AddStaticAmmu(slot1,slot2,slot3,slot4,slot5,slot6,slot7);
Descripttion:
Creates a new ammu-nations in whcih you can modify
the weapons lists and set weapons costs.
Parameters:
slot1 - 1 if enable, 0 if disable.
slot2 - 1 if enable, 0 if disable.
slot3 - 1 if enable, 0 if disable.
slot4 - 1 if enable, 0 if disable.
slot5 - 1 if enable, 0 if disable.
slot6 - 1 if enable, 0 if disable.
slot7 - 1 if enable, 0 if disable.

SetWeaponCost(ammuid,weaponid,cost);
Descripttion:
Sets the weapons cost in the ammu lists, which
has been created using AddStaticAmmu.
Parameters:
ammuid - ammunation id of which u want to mod.
weapon sets[1] - weaponid of which you want to set cost.

ShowAmmu(playerid,ammuid);
Description:
Show player the weapon list which you have
created using AddStaticAmmu.
Parameters:
playerid - players id whom u want to show.
ammuid -ammunation id which you want to show.

mic_biz

AddStaticBiz(Float:x,Float:y,Float:z,Float:ix,Float:iy,Float:iz,ii);
Descripttion:
Creates a biz in the specified location, is more essential
for rpg gamemodes and filterscripts.
Parameters:
Float:x - x cordinates of the biz.
Float:y - y cordinates of the biz.
Float:z - z cordinates of the biz.
Float:ix - x cordinates of the interior of the biz.
Float:iy - y cordiantes of the interior of the biz.
Float:iz - z cordinates of the interior of the biz.
ii - interior id of the interior of the biz.

SetBizCost(bizid,cost);
Descripttion:
Changes the biz selling amount, so that when a player
buys it the cost is taken from him.
Parameters:
bizid - id of the biz you want to change the cost.
cost - the amount of money you want to change.

GetBizInfo(bizid,info[],value[]);
Descripttion:
Gets biz info (like, rent, cost, tenent ) to the
specifed value.
Parameters:
bizid - the id of the biz.
info - the information you want.
value - the value of the info to be returned.

SetBizInfo(bizid,info[],value[]);
Descripttion:
Sets the biz info, for a certain biz, which you
want to change.
Parameters:
bizid - id of the biz.
info - information you want to change.
value - value for the information.

SetPlayerInBiz(playerid,bizid);
Descripttion:
Sets the specified player inside a specified biz.
Parameters:
playerid - id of the player whom you want to set inside
bizid - id of the biz.

SetPlayerOutBiz(playerid,bizid);
Descripttion:
Sets a specified player outside a certain biz.
Parameters:
playerid - id of the player whom you want ot set outside.
bizid - id of the biz.

IsPlayerAllowedInBiz(playerid,bizid);
Descripttion:
Checks if the player is allowed inside the
biz checking if he has enough money and
whether he is the owner.
Parameters:
playerid - id of the player you want to check.
bizid - id of the biz.

mic_chat

EnableChatSystem(toggle);
Descripttion:
Enables the chat system, which will prevent all
the message to the samp chat box, and direct
them to a new chat box.
Parameters:
toggle - 1 if yes, 0 if no.

SendMessage(text[]);
Descripttion:
Sends a message to the chat box, enabled with
EnableChatSystem.
Parameters:
text - the text to be sent.

mic_data

LoadPlayer(playerid,info[],key[]);
Descripttion:
Loads the players info into the specified
key string.
Parameters:
playerid - id of the player.
info - the info you want to load.
key - the string in which the value returns.

SavePlayer(playerid,info[],key[]);
Descripttion:
Saves the playes info to the value as the
key string.
Parameters:
playerid - id of the player.
info - the info you want to save,
key - the value for the info.

LoadProperty(name[],info[],key[]);
Descripttion:
Loads the value of the info of the specified
name of the property.
Parameters:
name - name of the property.
info - the info of the property you want to load.
key - the string in which you want the value of the info.

SaveProperty(name[],info[],key[]);
Descripttion:
Saves the value of the info of the specified
name of the property.
Parameters:
name - name of the property.
info - the info of the property you want to load.
key - the string in which you want the value of the info.

mic_gang


CreateGang(name[],color);
Description:
Creates a gang with the specified name and
color.
Parameters:
name - name of the gang.
color - color of the gang.

DestroyGang(gangid);

Description:
Destroys the specified gang.
Parameters:
gangid - the id of the gang.

SetPlayerInGang(playerid,gangid);

Description:
Set the specified player in the specified
gang.
Parameters:
playerid - id of the player.
gangid - id of the gang.

GetPlayerGangId(playerid);

Description:
Gets the specified players gang.
Parameters:
playerid - the id of the player.

SendMessageToGang(gangid,color,const message[]);
Description:
Sends a client message to all the members
of the specified gang.
Parameters:
gangid - id of the gang.
message - the message to send.

IsPlayerInGang(playerid,gangid);
Description:
Checks whether the specified player is the
specified gang.
Parameters:
playerid - the id of the player.
gangid - the id of the gang.

mic_house


AddStaticHouse(Float:x,Float:y,Float:z,Float:ix,Float:iy,Float:iz,ii);

Descripttion:
Creates a house in the specified location, is more essential
for rpg gamemodes and filterscripts.
Parameters:
Float:x - x cordinates of the house.
Float:y - y cordinates of the house.
Float:z - z cordinates of the house.
Float:ix - x cordinates of the interior of the house.
Float:iy - y cordiantes of the interior of the house.
Float:iz - z cordinates of the interior of the house.
ii - interior id of the interior of the house

SetHouseCost(houseid,cost);
Descripttion:
Changes the house selling amount, so that when a player
buys it the cost is taken from him.
Parameters:
houseid - id of the house you want to change the cost.
cost - the amount of money you want to change.

GetHouseInfo(houseid,info[],value[]);

Descripttion:
Gets house info (like, rent, cost, tenent ) to the
specifed value.
Parameters:
houseid - the id of the house.
info - the information you want.
value - the value of the info to be returned.

SetHouseInfo(houseid,info[],value[]);
Descripttion:
Sets the house info, for a certain biz, which you
want to change.
Parameters:
houseid - id of the house.
info - information you want to change.
value - value for the information.

SetPlayerInHouse(playerid,houseid);
Descripttion:
Sets the specified player inside a specified house.
Parameters:
playerid - id of the player whom you want to set inside
houseid - id of the house.

SetPlayerOutHouse(playerid,houseid);
Descripttion:
Sets a specified player outside a certain house
Parameters:
playerid - id of the player whom you want ot set outside.
houseid - id of the house.

IsPlayerAllowedInHouse(playerid,houseid);
Descripttion:
Checks if the player is allowed inside the
house checking if he has enough money and
whether he is the owner.
Parameters:
playerid - id of the player you want to check.
houseid - id of the house.

MakeTenent(playerid,houseid);
Descripttion:
Checks if a specified player is suitable to
be the tenent of the house, and makes
him a tenent.
Parameters:
playerid - id of the player you want to check.
houseid - id of the house.

mic_more


ToggleRealClock(toggle);
Description:
Shows a clock to all the players, whcih has
1min = 60seconds as untis.
Parameters:
toggle - 1 if yes, 0 is no.

EnableGantonGym(toggle);

Description:
Enables a system which has features
like in single player mode of ganton gym.
Parameters:
toggle - 1 if yes, 0 if no.

strcut(string[],substring[]);
Description:
Finds and deletes a part of a specified string.
Parameters:
string - the string in which you want to delete.
susbstring - the string what you want to delete.

fline(File:handle,line);
Description:
Moves the pointer to the specified line in
the pre-opened file handle.
Parameters:
handle - the file handle which you want to scrol
line - the line which you want to move to.

fnew(const string[]);
Description:
Creates a instant file with the specified name.
Parameters:
string - the name of the file.

TakePlayerMoney(playerid,money);
Description:
Checks if player has the money, and takes
it if he has, else stops the function from
continueing.
Parameters:
playerid - the id of the player.
money - the money you want to take.

== mic_checkpoint ==

CreateCheckpoint(Float:x,Float:y,Float:z,Float:size);
Descripttion:
Creates a checkpoint at the specified location and
specified size.
Parameters:
Float:x - x cordinates of the checkpoint position.
Float:y - y cordinates of the checkpoint position.
Float:z - z cordinates of the checkpoint postion.

DestroyCheckpoint(checkpointid);
Descripttion:
Destroy a checkpoint which was previously
created using CreateCheckpoint.
Parameters:
checkpointid - id of the specified checkpoint.

ShowCheckpoint(playerid,checkpointid);
Descripttion:
Shows the specified checkpoint to the specified
player.
Parameters:
playerid - id of the player.
checkpointid - id of the checkpoint.

HideCheckpoint(playerid,checkpointid);
Descripttion:
Hides the specified checkpoint to the specified
player.
Parameters:
playerid - id of the player.
checkpointid - id of the checkpoint.

ShowCheckpointForAll(checkpointid);
Descripttion:
Show the specified checkpoint to all the players
on the server.
Parameters:
checkpointid - id of the checkpoint.

HideCheckpointForAll(checkpointid);
Descripttion:
Hide the specified checkpoint to all the players
on the server.
Parameters:
checkpointid - id of the checkpoint.

mic_stream

CreateObject(model,Float:x,Float:y,Float:z,Float:rx,Float:ry,Float:rz);
Descripttion:
Creates a certain object in the specified location
with the specified model id.
Parameters:
model - model id of the object.
Float:x - the x cordinates of the object.
Float:y - the y cordinates of the object.
Float:z - the z cordinates of the obejct.
Float:rx - the x rotation of the object.
Float:ry - the y rotation of the object.
Float:rz - the z rotation of the object.

DestroyObject(Objectid);
Descripttion:
Destroys a the specified object.
Parameters:
objectid - the objectid which should be destroyed.

SetObjectStreaming(Distance);
Descripttion:
Sets Objects to streaming, so that more no.
of objects are allowed in the server from the
limit.
Parameters:
distance - the distance from which player should
be able to see the object.

mic_piks

CreatePik(model,Float:x,Float:y,Float:z);
Description:
Creates a pik in the specified location.
Parameters:
model - model id of the pik.
Float:x - x cordinates of the pik.
Float:y - y cordinates of the pik.
Float:z - z cordinates of the pik.

DestroyPik(pikid);
Description:
Destroys the specified pik.
Parameters:
pikid - id of the pik.

GetClosestPlayerToPik(pikid)
Description:
Gets the closest player to the specified
pik.
Parameters:
pikid - id of the pik.

mic_vehicle

GivePlayerVehicleKeys(playerid,vehicleid);
Description:
Gives the specified player vehicle keys.
Parameters:
playerid - id of the player.
vehiclid - id of the vehicle.

TakePlayerVehicleKeys(playerid,vehicleid);
Description:
Takes the specified players vehicle keys.
Parameters:
playerid - id of the player.
vehicleid - id of the vehicle.

IsPlayerHavingKeys(playerid,vehicleid);
Description:
Checks if the specified player has vehicle keys.
Parameters:
playerid - id of the player.
vehicleid - id of the vehicle.

LockVehicle(vehicleid);

Description:
Locks the specified vehicle so that only,
players with the keys can enter the vehicle.
Parameters:
vehicleid - id of the vehicle.

UnLockVehicle(vehicleid);
Description:
Unlocks the specified vehicle so that everyone
can enter the vehicle.
Parameters:
vehicleid - id of the vehicle.

IsVehicleLocked(vehicleid);
Description:
Checks if the specified vehicle is locked.
Parameters:
vehicleid - id of the vehicle.

StopVehicle(vehicleid);
Description:
Stops the specified vehicle from moving.
Parameters:
vehicleid - id of the vehicle.

UnStopVehicle(vehicleid);
Description:
Unstops the specified vehicle which was
stoped previously.
Parameters:
vehicleid - id of the vehicle.

GetVehicleDriverId(vehicleid);
Description:
Gets the specifieds vehicles driver id.
Parameters:
vehicleid - id of the vehicle.

GetVehicleFuel(vehicleid);

Description:
Gets the specified vehicles fuel.
Parameters:
vehiclid - id of the vehicle.

EnableFuelSystem(toggle);
Description:
Turns on the fuel system to all
the cars.
Parameters:
toggle - 1 if yes, 0 if no.

UseFuel(playerid,vehicleid);
Description:
Uses the fuel of the specified vehicle.
Parameters:
playerid - id of the player.
vehicleid - id of the vehicle.

GiveFuel(playerid,vehicleid);
Description:
Gives the specified vehicle fuel
and takes the required amount of
money from the player.
Parameters:
playerid - id of the player.
vehicleid - id of the vehicle.

mic_zone

CreateZone(color,Float:x1,Float:y1,Float:x2,Float:y2,Float:x3,Float:y3,Float:x4,Float:y4)
Descripttion:
Creates a zone in the specified location, with the specified
color.
Parameters:
color - color of the gang zone.
Float:x1 - the x cordinates of the first place.
Float:y1 - the y cordinates of the first place.
Float:x2 - the x cordinates of the second place.
Float:y2 - the y cordinates of the second place.
Float:x3 - the x cordinates of the third place.
Float:y3 - the y cordinates of the third place.
Float:x4 - the x cordinates of the fourth place.
Float:y4 - the y cordinates of the fourth place.

SetZoneColor(zoneid,color);
Descripttion:
Changes the color of the specified zone.
Parameters:
zoneid - the id of the zone.
color - the color of the zone.

DestroyZone(zoneid);

Descripttion:
Destroys the specified zone.
Parameters:
zoneid - the id of the zone.

IsPlayerInZone(playerid,zoneid);
Descripttion:
Checks if the specified player is in a specified
zone.
Parameters:
playerid - id of the player.
zoneid - id of the zone.

IsPlayerInZone(playerid,zoneid);
Descripttion:
Checks if the specified player is in a specified
zone.
Parameters:
playerid - id of the player.
zoneid - id of the zone.

Personal tools
Navigation
Toolbox