
#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".
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
. If anyone doesn't know how to integrate the lock system with their car system just PM me and I'll do it for you.
if(!IsPlayerDriver(playerid))
{
SendClientMessage(playerid,red,"[Vehicle Control] You're not in range of a Vehicle with a hood!");
return 1;
}
|
I thought of :
pawn Код:
Also, I can open the hood of NRG-500 ? ( lol ) Anyways, nice for your 1st try! |
: warning 203: symbol is never used: "objective"
: warning 203: symbol is never used: "boot"
: warning 203: symbol is never used: "bonnet"
: warning 203: symbol is never used: "doors"
: warning 203: symbol is never used: "alarm"
: warning 203: symbol is never used: "lights"
: error 017: undefined symbol "SetVehicleParamsEx"|
why i get these errors?
C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(134) : error 017: undefined symbol "ManualVehicleEngineAndLights" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(159) : error 017: undefined symbol "GetVehicleParamsEx" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(170) : error 017: undefined symbol "SetVehicleParamsEx" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(179) : error 017: undefined symbol "SetVehicleParamsEx" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(15 : warning 203: symbol is never used: "objective"C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(15 : warning 203: symbol is never used: "boot"C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(15 : warning 203: symbol is never used: "bonnet"C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(15 : warning 203: symbol is never used: "doors"C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(15 : warning 203: symbol is never used: "alarm"C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(15 : warning 203: symbol is never used: "lights"C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(195) : error 017: undefined symbol "GetVehicleParamsEx" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(206) : error 017: undefined symbol "SetVehicleParamsEx" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(215) : error 017: undefined symbol "SetVehicleParamsEx" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(194) : warning 203: symbol is never used: "objective" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(194) : warning 203: symbol is never used: "boot" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(194) : warning 203: symbol is never used: "bonnet" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(194) : warning 203: symbol is never used: "doors" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(194) : warning 203: symbol is never used: "alarm" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(194) : warning 203: symbol is never used: "engine" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(231) : error 017: undefined symbol "GetVehicleParamsEx" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(242) : error 017: undefined symbol "SetVehicleParamsEx" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(251) : error 017: undefined symbol "SetVehicleParamsEx" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(230) : warning 203: symbol is never used: "objective" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(230) : warning 203: symbol is never used: "boot" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(230) : warning 203: symbol is never used: "doors" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(230) : warning 203: symbol is never used: "alarm" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(230) : warning 203: symbol is never used: "lights" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(230) : warning 203: symbol is never used: "engine" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(267) : error 017: undefined symbol "GetVehicleParamsEx" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(27 : error 017: undefined symbol "SetVehicleParamsEx"C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(287) : error 017: undefined symbol "SetVehicleParamsEx" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(266) : warning 203: symbol is never used: "objective" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(266) : warning 203: symbol is never used: "bonnet" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(266) : warning 203: symbol is never used: "doors" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(266) : warning 203: symbol is never used: "alarm" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(266) : warning 203: symbol is never used: "lights" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(266) : warning 203: symbol is never used: "engine" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(306) : error 017: undefined symbol "GetVehicleParamsEx" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(317) : error 017: undefined symbol "SetVehicleParamsEx" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(326) : error 017: undefined symbol "SetVehicleParamsEx" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(305) : warning 203: symbol is never used: "objective" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(305) : warning 203: symbol is never used: "boot" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(305) : warning 203: symbol is never used: "bonnet" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(305) : warning 203: symbol is never used: "alarm" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(305) : warning 203: symbol is never used: "lights" C:\Users\Slashas94\Desktop\RP-GRP\filterscripts\vehiclecontrol.pwn(305) : warning 203: symbol is never used: "engine" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 16 Errors. And how can i change commands for example: /engine to /variklis? |
#include <a_vehicles>
CMD:engine(playerid, params[])
CMD:yourcommand(playerid, params[])