07.07.2011, 10:29
(
Последний раз редактировалось Jack_Leslie; 02.08.2011 в 01:51.
Причина: Updated
)
Hey guys. This is my first FilterScript release. It's just a very easy and simple Vehicle Control System. I released it because I've never released anything before, and I coded this myself for my Roleplay Server. This is very useful for Roleplay Servers, please don't tell me there's heaps of these because I know there is, I just felt like releasing it to the public! Please enjoy
1. Download it from: http://www.solidfiles.com/d/12761/
2. Extract "vehiclecontrol.pwn" into your FilterScripts folder
3. Open "vehiclecontrol.pwn" in Pawn
4. Run and Compile it
5. Open your "server.cfg" file
6. Under filterscripts, add "vehiclecontrol"
7. Save server.cfg, and run your server.
Includes needed:
Info:
Number plates:
Add this code at the bottom of the FilterScript:
Changelog:
Bugs:
A bicycle has a "engine"
Version 2: soon to be released.
** Store your items temporaily in the vehicle!
Current Version: 1.5
http://pastebin.com/32zBxknN
Previous Version:
1.0
http://www.solidfiles.com/d/91467/
Version 1.5
How to install:1. Download it from: http://www.solidfiles.com/d/12761/
2. Extract "vehiclecontrol.pwn" into your FilterScripts folder
3. Open "vehiclecontrol.pwn" in Pawn
4. Run and Compile it
5. Open your "server.cfg" file
6. Under filterscripts, add "vehiclecontrol"
7. Save server.cfg, and run your server.
Includes needed:
Код:
#include <a_samp> #include <zcmd>
Код:
Engine: Uses one command, "/engine". Player needs to be in a car. It sends an Roleplay message with ProxDetector to other players within a radius of 20.0 Lights: Uses one command, "/lights". Player needs to be in a car. It sends an Roleplay message with ProxDetector to other players within a radius of 20.0 Hood: Uses one command, "/hood". It sends an Roleplay message with ProxDetector to other players within a radius of 20.0 Trunk: Uses one command, "/trunk". It sends an Roleplay message with ProxDetector to other players within a radius of 20.0 Lock: Uses one command, "/lockv". Player needs to be in a car or in range of their last vehicle. It sends an Roleplay message with ProxDetector to other players within a radius of 20.0. It is commented in this version as I don't use it in my server, just remove the "/*" at the start of CMD:lockv and remove the "*/" at the end! Objective: Uses the command "/objective" and sets the cars objective point to "ON" or "OFF".
Add this code at the bottom of the FilterScript:
pawn Код:
CMD:plate(playerid, params[])
{
new string[258];
if(!strlen(params)) return SendClientMessage(playerid, -1, "/plate [A-Z, 0-9]");
new oldcar = gLastCar[playerid];
new Float:cX, Float:cY, Float:cZ;
GetVehiclePos(oldcar, cX, cY, cZ);
new vehicleid = GetPlayerVehicleID(playerid);
if(IsAPlane(vehicleid) || IsAHelicopter(vehicleid) || IsABike(vehicleid) || IsATrain(vehicleid) || IsABoat(vehicleid)) return SendClientMessage(playerid, -1, "You can only set plates for Cars!");
if(!IsPlayerDriver(playerid)) return SendClientMessage(playerid, -1, "You are not in a Car to set the plate!");
SetVehicleNumberPlate(oldcar, params);
SetVehicleToRespawn(oldcar);
format(string, sizeof(string), "You set your Vehicle's Plate to %s", params);
SendClientMessage(playerid, -1, string);
SendClientMessage(playerid, -1, "It has also respawned at its original spot!");
return 1;
}
Код:
** Added /lockv, you can lock your car from the inside/outside, it locks your last used car ** You can now only do /hood and /engine in a vehicle WITH A HOOD/TRUNK ** You can now do /trunk and /hood from OUTSIDE the car ** Added /objective, needs uncommenting if you want to use it
A bicycle has a "engine"
Version 2: soon to be released.
** Store your items temporaily in the vehicle!
Current Version: 1.5
http://pastebin.com/32zBxknN
Previous Version:
1.0
http://www.solidfiles.com/d/91467/