27.11.2008, 22:30
..::Mike_func::..
This is my FIRST include!Functions:
• IsPlayerInInvalidNosVehicle(playerid)
• IsPlayerInCar(playerid)
• IsVehicleCar(vehicleid)
• GetVehicleName(vehicleid) //Returns JUST the name, eg: "Hunter"
• GetVehicleSentence(playerid) //This will return for example: "on an NRG-500" or "in a Dodo"
• RandomColors(vehicleid)
• IsPlayerInBoat(playerid)
• IsVehicleBoat(vehicleid)
• IsPlayerOnBike(playerid)
• IsVehicleBike(vehicleid)
• IsPlayerOnMotorbike(playerid)
• IsVehicleMotorbike(vehicleid)
• IsPlayerOnPedalBike(playerid)
• IsVehiclePedalBike(vehicleid)
• IsPlayerInRC(playerid)
• IsVehicleRC(vehicleid)
• IsPlayerInAirVehicle(playerid)
• IsVehicleAirVehicle(vehicleid)
• IsPlayerInPlane(playerid)
• IsVehiclePlane(vehicleid)
• IsPlayerInHeli(playerid)
• IsVehicleHeli(vehicleid)
• IsPlayerInJet(playerid)
• IsVehicleJet(vehicleid)
• IsPlayerInProp(playerid)
• IsVehicleProp(vehicleid)
• IsPlayerInSporty(playerid)
• IsVehicleSporty(vehicleid)
• IsPlayerInEmergency(playerid)
• IsVehicleEmergency(vehicleid)
• IsPlayerInWarVehicle(playerid)
• IsVehicleWarVehicle(vehicleid)
• IsPlayerInCopVehicle(playerid)
• IsVehicleCopVehicle(vehicleid)
• IsPlayerInFiretruck(playerid)
• IsVehicleFiretruck(vehicleid)
• IsPlayerInFBI(playerid)
• IsVehicleFBI(vehicleid)
• IsPlayerInPublicTransport(playerid)
• IsVehiclePublicTransport(vehicleid)
• IsPlayerInLowrider(playerid)
• IsVehicleLowrider(vehicleid)
• IsPlayerInSlowCar(playerid)
• IsVehicleSlowCar(vehicleid)
• IsPlayerInOffRoadCar(playerid)
• IsVehicleOffRoadCar(vehicleid)
• IsPlayerInHeavyVehicle(playerid)
• IsVehicleHeavyVehicle(vehicleid)
• IsPlayerInVan(playerid)
• IsVehicleVan(vehicleid)
• SkinGirlfriend(playerid)
• SkinGang(playerid)
• SkinGrove(playerid)
• SkinBalla(playerid)
• SkinVarios(playerid)
• SkinVagos(playerid)
• SkinNang(playerid)
• SkinRifa(playerid)
• SkinTriad(playerid)
• SkinMafia(playerid)
• SkinBeach(playerid)
• SkinCop(playerid)
• SkinFBI(playerid)
• SkinSwat(playerid)
• SkinArmy(playerid)
• SkinOld(playerid)
• SkinStripper(playerid)
• SkinBiker(playerid)
• IsPlayerMale(playerid)
• IsPlayerFemale(playerid)
• IsVehicleLocoMod(vehicleid) - Can this car receive Loco Low co Modifications
• IsVehicleTransMod(vehicleid) - Can this car receive Transfender Modifications
• IsVehicleArchMod(vehicleid) - Can this car receive Wheel Arch Angel Modifications
• IsAnyPlayerInVehicle(vehicleid) - Is any player in THAT vehicle (useful for respawning empry cars)
• TakePlayerMoney(playerid,amount) - Removes the "amount" of cash, it seems GivePlayerMoney with minus doesnt work..
• ColorCorrect(playerid) - Sets the players default SA:MP color
Newest Functions:
• KillPlayer(playerid) - Kill a player
• KillAll() - Kill everyone
• CrashPlayer(playerid) - Crash a player
• SetAllHealth(health) - Set everyones health
• SetAllArmour(health) - Set everyones armour
• Vclear() - Destroy all vehicles
Download:
Version 5 Mirror 1 (deLUX click n host)
Version 5 Mirror 2 (Rapidshare)
Version 5 Mirror 3 (Pastebin)
Version 5 Mirror 4 (Canadian Pastebin)
Version 5 Mirror 5 (Sendspace)
Version 5 Mirror 6 (Mediafire)
Installation:
Add mikefunc.inc to your /pawno/include folder.
Add #include <mikefunc> to the top of the script your using the functions in.
Use the functions!
Information:
► This include took 2 days to make
PLEASE NOTE: This include has not been FULLY tested, please report any bugs, typos or ideas!
Thanks!