25.02.2011, 23:00
pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#include colors
#define VEHICLE_PARAMS_UNSET -1 //This sets if your using the params
#define VEHICLE_PARAMS_OFF 0 //This will set your params OFF
#define VEHICLE_PARAMS_ON 1 //This will set your params ON
native SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
native GetVehicleParamsEx(vehicleid, &engine, &lights, &alarm, &doors, &bonnet, &boot, &objective);
new engine,lights,alarm,doors,bonnet,boot,objective;
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
public OnGameModeInit()
{
//Misc
SetGameModeText("Blank Script");
ManualVehicleEngineAndLights();
//Classes
AddPlayerClass(184,1153.9198,-1770.2719,16.5938,359.8160,43,43,0,0,0,0); // guy spawn
//Cars
AddStaticVehicle(596,1602.9272,-1684.0171,5.6036,88.8089,0,1); // lspd
AddStaticVehicle(596,1602.9968,-1687.9197,5.6418,86.0999,0,1); // lspd
AddStaticVehicle(596,1603.0071,-1692.1125,5.6287,89.7050,0,1); // lspd
AddStaticVehicle(596,1602.9983,-1696.1010,5.6409,90.4534,0,1); // lspd
AddStaticVehicle(596,1602.9194,-1699.9777,5.6118,90.4417,0,1); // lspd
AddStaticVehicle(596,1603.0291,-1704.5084,5.6334,91.7203,0,1); // lspd
AddStaticVehicle(596,1595.3601,-1711.9949,5.6109,358.9775,0,1); // lspd
AddStaticVehicle(596,1591.4819,-1711.9680,5.5994,359.2180,0,1); // lspd
AddStaticVehicle(596,1587.2103,-1711.9703,5.6126,0.8474,0,1); // lspd
AddStaticVehicle(596,1583.2788,-1712.3055,5.6452,0.3022,0,1); // lspd
AddStaticVehicle(596,1578.6848,-1712.0514,5.6178,2.9673,0,1); // lspd
AddStaticVehicle(596,1574.5454,-1712.0211,5.6455,359.8338,0,1); // lspd
AddStaticVehicle(596,1570.2450,-1711.8400,5.6123,358.7709,0,1); // lspd
AddStaticVehicle(596,1559.2115,-1711.9319,5.6119,358.9010,0,1); // lspd
AddStaticVehicle(528,1547.4877,-1684.7141,5.9336,86.4394,0,0); // lspd
AddStaticVehicle(528,1547.3351,-1680.4456,5.9340,88.0789,0,0); // lspd
AddStaticVehicle(528,1546.8939,-1676.4761,5.9342,93.5275,0,0); // lspd
AddStaticVehicle(528,1547.3843,-1672.0684,5.9342,92.1000,0,0); // lspd
AddStaticVehicle(528,1547.4435,-1667.8468,5.9351,92.3460,0,0); // lspd
AddStaticVehicle(528,1547.2899,-1663.2848,5.9339,92.5485,0,0); // lspd
AddStaticVehicle(528,1546.9625,-1659.2771,5.9342,89.8229,0,0); // lspd
AddStaticVehicle(427,1526.6646,-1643.7722,6.0233,178.8688,0,1); // lspd
AddStaticVehicle(427,1530.7090,-1644.3417,6.0228,181.7722,0,1); // lspd
AddStaticVehicle(427,1534.6244,-1643.3640,6.0238,181.5809,0,1); // lspd
AddStaticVehicle(427,1538.2454,-1644.7395,6.0223,178.7001,0,1); // lspd
AddStaticVehicle(427,1545.8173,-1655.2537,6.0529,91.0232,0,1); // lspd
AddStaticVehicle(427,1545.8333,-1651.4210,6.0395,90.9541,0,1); // lspd
AddStaticVehicle(596,1529.3423,-1687.5334,5.6103,272.3366,0,1); // lspd
AddStaticVehicle(596,1528.6121,-1683.9922,5.6119,270.0996,0,1); // lspd
AddStaticVehicle(523,1558.1378,-1696.0646,5.4673,183.9311,0,0); // lspd
AddStaticVehicle(523,1560.9199,-1696.4829,5.4704,182.5014,0,0); // lspd
AddStaticVehicle(523,1563.1261,-1696.2744,5.4689,179.8567,0,0); // lspd
AddStaticVehicle(523,1565.9991,-1696.9946,5.4640,179.5291,0,0); // lspd
AddStaticVehicle(523,1568.8651,-1696.6095,5.4639,175.1456,0,0); // lspd
AddStaticVehicle(523,1571.9675,-1695.7823,5.4609,177.2825,0,0); // lspd
AddStaticVehicle(599,1584.8690,-1680.0607,6.0833,265.6635,0,1); // lspd
AddStaticVehicle(599,1584.7615,-1676.2069,6.0861,270.2487,0,1); // lspd
AddStaticVehicle(599,1585.1619,-1671.5848,6.0856,268.4687,0,1); // lspd
AddStaticVehicle(599,1584.4692,-1667.7980,6.0815,271.1470,0,1); // lspd
AddStaticVehicle(497,1547.7493,-1645.3684,28.5768,131.1825,0,1); // lspd
AddStaticVehicle(497,1546.7589,-1703.6345,28.5708,41.3706,0,1); // lspd
AddStaticVehicle(462,1560.8745,-2309.6477,13.1468,84.0510,1,3); // bike
AddStaticVehicle(462,1560.5457,-2311.9944,13.1423,85.4209,1,3); // bike
AddStaticVehicle(462,1560.9209,-2315.5586,13.1429,93.7726,1,3); // bike
AddStaticVehicle(462,1560.2393,-2318.7800,13.1420,95.2734,1,3); // bike
AddStaticVehicle(462,1559.9871,-2322.2112,13.1420,86.0775,1,3); // bike
AddStaticVehicle(462,1559.9453,-2325.3047,13.1471,81.4738,1,3); // bike
AddStaticVehicle(462,1559.9375,-2328.6199,13.1473,86.8998,1,3); // bike
AddStaticVehicle(462,1559.6533,-2331.5872,13.1468,87.9915,1,3); // bike
AddStaticVehicle(462,1559.9718,-2334.7058,13.1471,87.8627,1,3); // bike
AddStaticVehicle(462,1559.7041,-2338.7236,13.1472,87.6914,1,3); // bike
AddStaticVehicle(468,1552.9386,-2362.3252,13.2275,6.0831,46,46); // bike
AddStaticVehicle(468,1555.7068,-2360.7380,13.2154,359.0979,3,3); // bike
AddStaticVehicle(463,1545.8971,-2361.4167,13.0929,359.0408,84,84); // bike
AddStaticVehicle(463,1549.6810,-2360.1475,13.0951,0.5371,84,84); // bike
AddStaticVehicle(461,1543.0905,-2361.8018,13.1439,3.6894,75,1); // bike
AddStaticVehicle(461,1539.4182,-2362.4185,13.1393,1.4248,75,1); // bike
AddStaticVehicle(586,1533.0834,-2361.3691,13.0751,359.9990,25,1); // bike
AddStaticVehicle(586,1536.4270,-2361.3247,13.0750,3.8709,25,1); // bike
AddStaticVehicle(571,1529.3445,-2361.3445,12.8384,0.9900,2,35); // bike
AddStaticVehicle(571,1526.8539,-2361.2795,12.8383,359.6840,2,35); // bike
AddStaticVehicle(448,2117.1699,-1784.8503,12.9853,176.7966,3,6); // bike
AddStaticVehicle(448,2109.0803,-1784.8328,12.9827,178.0744,3,6); // bike
AddStaticVehicle(448,2118.8945,-1784.8428,12.9866,176.4990,3,6); // bike
AddStaticVehicle(448,2122.5522,-1784.8292,12.9885,185.0188,3,6); // bike
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1645.8378,-1628.4567,87.3750);
SetPlayerFacingAngle(playerid, 181.1909);
SetPlayerCameraPos(playerid, 1646.0110,-1611.1644,93.6372);
SetPlayerCameraLookAt(playerid, 1645.8378,-1628.4567,87.3750);
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
//This will start your engine!
if(strcmp(cmdtext, "/startengine",true) == 0) {
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID) {
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
// ||||||
SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
//VEHICLE_PARAMS_ON is used to start the engine,it purely replace the engine thing!
}
return 1;
}
if(strcmp(cmdtext, "/stopengine",true) == 0) {
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID) {
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
// ||||||
SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
//Here the VEHICLE_PARAMS_OFF will turn off your engine.
}
return 1;
}
//This will start your engine!
if(strcmp(cmdtext, "/lightsonn",true) == 0) {
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID) {
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
// ||||||
SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
//VEHICLE_PARAMS_ON is used to turn onn the lights.
}
return 1;
}
if(strcmp(cmdtext, "/lightsoff",true) == 0) {
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID) {
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
// ||||||
SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
//Here the VEHICLE_PARAMS_OFF will turn off your lights.
}
return 1;
}
if(strcmp(cmdtext, "/turnonobjective",true) == 0) {
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID) {
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,VEHICLE_PARAMS_ON);
}
return 1;
}
if(strcmp(cmdtext, "/turnoffobjective",true) == 0) {
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID) {
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,VEHICLE_PARAMS_OFF);
}
return 1;
}
if(strcmp(cmdtext, "/opendoors",true) == 0) {
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID) {
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,VEHICLE_PARAMS_ON,bonnet,boot,objective);
}
return 1;
}
if(strcmp(cmdtext, "/closedoors",true) == 0) {
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID) {
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
}
return 1;
}
if(strcmp(cmdtext, "/alarmon",true) == 0) {
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID) {
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
}
return 1;
}
if(strcmp(cmdtext, "/alarmoff",true) == 0) {
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID) {
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,VEHICLE_PARAMS_OFF,doors,bonnet,boot,objective);
}
return 1;
}
if(strcmp(cmdtext, "/openbonnet",true) == 0) {
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID) {
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
}
return 1;
}
if(strcmp(cmdtext, "/closebonnet",true) == 0) {
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID) {
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
}
return 1;
}
if(strcmp(cmdtext, "/openboot",true) == 0) {
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID) {
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
}
return 1;
}
if(strcmp(cmdtext, "/closeboot",true) == 0) {
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID) {
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
}
return 1;
}
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
:\Users\Charles\Desktop\SAMP\gamemodes\Alantic.pwn (2 : error 017: undefined symbol "ManualVehicleEngineAndLights"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.