new vehicle;
vehicle = AddStaticVehicleEx(520,-3583.56445312,-2504.04980469,9.97183800,267.99499512,-1,-1,15); //Hydravehicle = AddStaticVehicleEx(471,-3578.56298828,-2612.52758789,2.35609365,0.00000000,-1,-1,15); //Quadvehicle = AddStaticVehicleEx(470,-3478.30371094,-2523.12597656,11.78172112,0.00000000,-1,-1,15); //Patriotvehicle = AddStaticVehicleEx(425,-3513.81640625,-2599.72460938,4.98219109,0.00000000,-1,-1,15); //Huntervehicle = AddStaticVehicleEx(432,-3580.37646484,-2650.09545898,2.88043070,0.00000000,-1,-1,15); //Rhinovehicle = AddStaticVehicleEx(432,-3588.67895508,-2648.80371094,2.88043070,0.00000000,-1,-1,15); //Rhinovehicle = AddStaticVehicleEx(468,-3440.74511719,-2335.98144531,5.33223867,0.00000000,-1,-1,15); //Sanchezvehicle = AddStaticVehicleEx(468,-3442.72460938,-2335.99707031,5.33223867,0.00000000,-1,-1,15); //Sanchezvehicle = AddStaticVehicleEx(468,-3444.25878906,-2335.94140625,5.08223867,0.00000000,-1,-1,15); //Sanchezvehicle = AddStaticVehicleEx(468,-3445.50683594,-2335.68359375,5.08223867,0.00000000,-1,-1,15); //Sanchezvehicle = AddStaticVehicleEx(432,-3549.15234375,-2381.38085938,3.42157602,0.00000000,-1,-1,15); //Rhinovehicle = AddStaticVehicleEx(460,-3638.62084961,-2427.42871094,2.00000000,0.00000000,-1,-1,15); //Skimmervehicle = AddStaticVehicleEx(425,-3491.50097656,-2278.55175781,9.11552715,184.24621582,-1,-1,15); //Huntervehicle = AddStaticVehicleEx(433,-3592.00878906,-2612.77246094,3.35109353,0.00000000,-1,-1,15); //Barracksvehicle = AddStaticVehicleEx(470,-3594.32934570,-2592.79125977,2.89110518,0.00000000,-1,-1,15); //Patriotvehicle = AddStaticVehicleEx(470,-3474.16674805,-2616.19702148,10.64374352,0.00000000,-1,-1,15); //Patriotvehicle = AddStaticVehicleEx(548,-3530.41479492,-2640.13330078,6.05574512,0.00000000,-1,-1,15); //Cargobobvehicle = AddStaticVehicleEx(548,-3503.46386719,-2226.34375000,12.38854885,0.00000000,-1,-1,15); //Cargobobvehicle = AddStaticVehicleEx(578,-3459.23388672,-2282.79052734,10.06329536,196.00000000,-1,-1,15); //DFT-30vehicle = AddStaticVehicleEx(578,-3450.92187500,-2278.17749023,10.83830261,167.99591064,-1,-1,15); //DFT-30vehicle = AddStaticVehicleEx(579,-3430.76025391,-2332.39355469,2.35235405,0.00000000,-1,-1,15); //Huntleyvehicle = AddStaticVehicleEx(489,-3433.43164062,-2316.60839844,4.63448906,243.99536133,-1,-1,15); //Ranchervehicle = AddStaticVehicleEx(422,-3500.31567383,-2326.29443359,2.40223885,184.00000000,-1,-1,15); //Bobcatvehicle = AddStaticVehicleEx(471,-3461.45800781,-2305.39160156,5.09011745,0.00000000,-1,-1,15); //Quadvehicle = AddStaticVehicleEx(504,-3459.38085938,-2317.31982422,3.73644018,186.75000000,-1,-1,15); //Bloodring Bangervehicle = AddStaticVehicleEx(495,-3458.93847656,-2336.20507812,6.88231277,159.99938965,-1,-1,15); //Sandkingvehicle = AddStaticVehicleEx(520,-3596.23046875,-2384.34277344,15.24181461,271.99951172,-1,-1,15); //Hydravehicle = AddStaticVehicleEx(540,-3420.53222656,-2323.38720703,4.35509634,0.00000000,-1,-1,15); //Vincentvehicle = AddStaticVehicleEx(433,-3583.95410156,-2534.73242188,9.60109329,0.00000000,-1,-1,15); //Barracksvehicle = AddStaticVehicleEx(548,-3557.17700195,-2627.32421875,6.05574512,114.00000000,-1,-1,15); //Cargobob//Hydra
SetVehicleVirtualWorld(vehicle, 3);
warning 219: local variable \"vehicle\" shadows a variable at a preceding level
#include <a_samp>#define MAX_VW_VEHS 30 //ide hogy hány ilyen jármûvet akarsz, + 1new vehicle[MAX_VW_VEHS]; //változópublic OnFilterScriptInit() { vehicle[0] = AddStaticVehicleEx(520,-3583.56445312,-2504.04980469,9.97183800,267.99499512,-1,-1,15); //Hydra vehicle[1] = AddStaticVehicleEx(471,-3578.56298828,-2612.52758789,2.35609365,0.00000000,-1,-1,15); //Quad vehicle[2] = AddStaticVehicleEx(470,-3478.30371094,-2523.12597656,11.78172112,0.00000000,-1,-1,15); //Patriot vehicle[3] = AddStaticVehicleEx(425,-3513.81640625,-2599.72460938,4.98219109,0.00000000,-1,-1,15); //Hunter vehicle[4] = AddStaticVehicleEx(432,-3580.37646484,-2650.09545898,2.88043070,0.00000000,-1,-1,15); //Rhino vehicle[5] = AddStaticVehicleEx(432,-3588.67895508,-2648.80371094,2.88043070,0.00000000,-1,-1,15); //Rhino vehicle[6] = AddStaticVehicleEx(468,-3440.74511719,-2335.98144531,5.33223867,0.00000000,-1,-1,15); //Sanchez vehicle[7] = AddStaticVehicleEx(468,-3442.72460938,-2335.99707031,5.33223867,0.00000000,-1,-1,15); //Sanchez vehicle[8] = AddStaticVehicleEx(468,-3444.25878906,-2335.94140625,5.08223867,0.00000000,-1,-1,15); //Sanchez vehicle[9] = AddStaticVehicleEx(468,-3445.50683594,-2335.68359375,5.08223867,0.00000000,-1,-1,15); //Sanchez vehicle[10] = AddStaticVehicleEx(432,-3549.15234375,-2381.38085938,3.42157602,0.00000000,-1,-1,15); //Rhino vehicle[11] = AddStaticVehicleEx(460,-3638.62084961,-2427.42871094,2.00000000,0.00000000,-1,-1,15); //Skimmer vehicle[12] = AddStaticVehicleEx(425,-3491.50097656,-2278.55175781,9.11552715,184.24621582,-1,-1,15); //Hunter vehicle[13] = AddStaticVehicleEx(433,-3592.00878906,-2612.77246094,3.35109353,0.00000000,-1,-1,15); //Barracks vehicle[14] = AddStaticVehicleEx(470,-3594.32934570,-2592.79125977,2.89110518,0.00000000,-1,-1,15); //Patriot vehicle[15] = AddStaticVehicleEx(470,-3474.16674805,-2616.19702148,10.64374352,0.00000000,-1,-1,15); //Patriot vehicle[16] = AddStaticVehicleEx(548,-3530.41479492,-2640.13330078,6.05574512,0.00000000,-1,-1,15); //Cargobob vehicle[17] = AddStaticVehicleEx(548,-3503.46386719,-2226.34375000,12.38854885,0.00000000,-1,-1,15); //Cargobob vehicle[18] = AddStaticVehicleEx(578,-3459.23388672,-2282.79052734,10.06329536,196.00000000,-1,-1,15); //DFT-30 vehicle[19] = AddStaticVehicleEx(578,-3450.92187500,-2278.17749023,10.83830261,167.99591064,-1,-1,15); //DFT-30 vehicle[20] = AddStaticVehicleEx(579,-3430.76025391,-2332.39355469,2.35235405,0.00000000,-1,-1,15); //Huntley vehicle[21] = AddStaticVehicleEx(489,-3433.43164062,-2316.60839844,4.63448906,243.99536133,-1,-1,15); //Rancher vehicle[22] = AddStaticVehicleEx(422,-3500.31567383,-2326.29443359,2.40223885,184.00000000,-1,-1,15); //Bobcat vehicle[23] = AddStaticVehicleEx(471,-3461.45800781,-2305.39160156,5.09011745,0.00000000,-1,-1,15); //Quad vehicle[24] = AddStaticVehicleEx(504,-3459.38085938,-2317.31982422,3.73644018,186.75000000,-1,-1,15); //Bloodring Banger vehicle[25] = AddStaticVehicleEx(495,-3458.93847656,-2336.20507812,6.88231277,159.99938965,-1,-1,15); //Sandking vehicle[26] = AddStaticVehicleEx(520,-3596.23046875,-2384.34277344,15.24181461,271.99951172,-1,-1,15); //Hydra vehicle[27] = AddStaticVehicleEx(540,-3420.53222656,-2323.38720703,4.35509634,0.00000000,-1,-1,15); //Vincent vehicle[28] = AddStaticVehicleEx(433,-3583.95410156,-2534.73242188,9.60109329,0.00000000,-1,-1,15); //Barracks vehicle[29] = AddStaticVehicleEx(548,-3557.17700195,-2627.32421875,6.05574512,114.00000000,-1,-1,15); //Cargobob//Hydra return 1;}public OnVehicleSpawn(vehicleid) { for(new i = 0; i < MAX_VW_VEHS; i++) { if(vehicleid == vehicle) SetVehicleVirtualWorld(i, VW); // ide h melyik VWbe aakrod } return 1;}
Egy változóra akarsz több jármûvet rakni?
if (strcmp(\"/cflip\", cmdtext, true, 10) == 0) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_GREEN,\"Nem vagy jármûben.\"); { new vehicle; new Float:zangle; vehicle = GetPlayerVehicleID(playerid); GetVehicleZAngle(vehicle,zangle); SetVehicleZAngle(vehicle,zangle); SendClientMessage(playerid,COLOR_GREEN,\"Sikeresen megfordítottad az autódat.\"); } return 1; }
new vehicle
if (strcmp(\"/cflip\", cmdtext, true, 10) == 0){ if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_GREEN,\"Nem vagy jármûben.\"); new Float:zangle, vehicleID = GetPlayerVehicleID(playerid); GetVehicleZAngle(vehicleID, zangle); SetVehicleZAngle(vehicleID, zangle); SendClientMessage(playerid,COLOR_GREEN,\"Sikeresen megfordítottad az autódat.\"); return 1;}
#include <a_samp>new vehicles;public OnGameModeInit(){vehicles =AddStaticVehicle(471,-3578.56298828,-2612.52758789,2.35609365,0.00000000,-1,-1);AddStaticVehicle(471,-3578.56298828,-2612.52758789,2.35609365,0.00000000,-1,-1);AddStaticVehicle(471,-3578.56298828,-2612.52758789,2.35609365,0.00000000,-1,-1);return 1;}public OnPlayerConnect(playerid){SetVehicleVirtualWorld(vehicles, 3);return 1;}
#include <a_samp>#define MAX_VW_VEHS 30 //ide hogy hány ilyen jármûvet akarsz, + 1new vehicle[MAX_VW_VEHS]; //változópublic OnFilterScriptInit() { vehicle[0] = AddStaticVehicleEx(520,-3583.56445312,-2504.04980469,9.97183800,267.99499512,-1,-1,15); //Hydra vehicle[1] = AddStaticVehicleEx(471,-3578.56298828,-2612.52758789,2.35609365,0.00000000,-1,-1,15); //Quad vehicle[2] = AddStaticVehicleEx(470,-3478.30371094,-2523.12597656,11.78172112,0.00000000,-1,-1,15); //Patriot vehicle[3] = AddStaticVehicleEx(425,-3513.81640625,-2599.72460938,4.98219109,0.00000000,-1,-1,15); //Hunter vehicle[4] = AddStaticVehicleEx(432,-3580.37646484,-2650.09545898,2.88043070,0.00000000,-1,-1,15); //Rhino vehicle[5] = AddStaticVehicleEx(432,-3588.67895508,-2648.80371094,2.88043070,0.00000000,-1,-1,15); //Rhino vehicle[6] = AddStaticVehicleEx(468,-3440.74511719,-2335.98144531,5.33223867,0.00000000,-1,-1,15); //Sanchez vehicle[7] = AddStaticVehicleEx(468,-3442.72460938,-2335.99707031,5.33223867,0.00000000,-1,-1,15); //Sanchez vehicle[8] = AddStaticVehicleEx(468,-3444.25878906,-2335.94140625,5.08223867,0.00000000,-1,-1,15); //Sanchez vehicle[9] = AddStaticVehicleEx(468,-3445.50683594,-2335.68359375,5.08223867,0.00000000,-1,-1,15); //Sanchez vehicle[10] = AddStaticVehicleEx(432,-3549.15234375,-2381.38085938,3.42157602,0.00000000,-1,-1,15); //Rhino vehicle[11] = AddStaticVehicleEx(460,-3638.62084961,-2427.42871094,2.00000000,0.00000000,-1,-1,15); //Skimmer vehicle[12] = AddStaticVehicleEx(425,-3491.50097656,-2278.55175781,9.11552715,184.24621582,-1,-1,15); //Hunter vehicle[13] = AddStaticVehicleEx(433,-3592.00878906,-2612.77246094,3.35109353,0.00000000,-1,-1,15); //Barracks vehicle[14] = AddStaticVehicleEx(470,-3594.32934570,-2592.79125977,2.89110518,0.00000000,-1,-1,15); //Patriot vehicle[15] = AddStaticVehicleEx(470,-3474.16674805,-2616.19702148,10.64374352,0.00000000,-1,-1,15); //Patriot vehicle[16] = AddStaticVehicleEx(548,-3530.41479492,-2640.13330078,6.05574512,0.00000000,-1,-1,15); //Cargobob vehicle[17] = AddStaticVehicleEx(548,-3503.46386719,-2226.34375000,12.38854885,0.00000000,-1,-1,15); //Cargobob vehicle[18] = AddStaticVehicleEx(578,-3459.23388672,-2282.79052734,10.06329536,196.00000000,-1,-1,15); //DFT-30 vehicle[19] = AddStaticVehicleEx(578,-3450.92187500,-2278.17749023,10.83830261,167.99591064,-1,-1,15); //DFT-30 vehicle[20] = AddStaticVehicleEx(579,-3430.76025391,-2332.39355469,2.35235405,0.00000000,-1,-1,15); //Huntley vehicle[21] = AddStaticVehicleEx(489,-3433.43164062,-2316.60839844,4.63448906,243.99536133,-1,-1,15); //Rancher vehicle[22] = AddStaticVehicleEx(422,-3500.31567383,-2326.29443359,2.40223885,184.00000000,-1,-1,15); //Bobcat vehicle[23] = AddStaticVehicleEx(471,-3461.45800781,-2305.39160156,5.09011745,0.00000000,-1,-1,15); //Quad vehicle[24] = AddStaticVehicleEx(504,-3459.38085938,-2317.31982422,3.73644018,186.75000000,-1,-1,15); //Bloodring Banger vehicle[25] = AddStaticVehicleEx(495,-3458.93847656,-2336.20507812,6.88231277,159.99938965,-1,-1,15); //Sandking vehicle[26] = AddStaticVehicleEx(520,-3596.23046875,-2384.34277344,15.24181461,271.99951172,-1,-1,15); //Hydra vehicle[27] = AddStaticVehicleEx(540,-3420.53222656,-2323.38720703,4.35509634,0.00000000,-1,-1,15); //Vincent vehicle[28] = AddStaticVehicleEx(433,-3583.95410156,-2534.73242188,9.60109329,0.00000000,-1,-1,15); //Barracks vehicle[29] = AddStaticVehicleEx(548,-3557.17700195,-2627.32421875,6.05574512,114.00000000,-1,-1,15); //Cargobob//Hydra return 1;}public OnVehicleSpawn(vehicleid) { for(new i = 0; i < MAX_VW_VEHS; i++) { if(vehicleid == vehicle) SetVehicleVirtualWorld(vehicle, VW); // ide h melyik VWbe aakrod } return 1;}
#include <a_samp>new vehicles;public OnGameModeInit(){vehicles =AddStaticVehicle(471,-3578.56298828,-2612.52758789,2.35609365,0.00000000,-1,-1);AddStaticVehicle(471,-3578.56298828,-2612.52758789,2.35609365,0.00000000,-1,-1);AddStaticVehicle(471,-3578.56298828,-2612.52758789,2.35609365,0.00000000,-1,-1);return 1;}public OnPlayerConnect(playerid){SetVehicleVirtualWorld(vehicles, 3);return 1;} Nekem mûködött, gondolom addstaticvehicleex -el sem ad ki rá hibát ...
Most nézem, hogy elírtam..Így már biztos jó, teszteltem. #include <a_samp>#define MAX_VW_VEHS 30 //ide hogy hány ilyen jármûvet akarsz, + 1new vehicle[MAX_VW_VEHS]; //változópublic OnFilterScriptInit() { vehicle[0] = AddStaticVehicleEx(520,-3583.56445312,-2504.04980469,9.97183800,267.99499512,-1,-1,15); //Hydra vehicle[1] = AddStaticVehicleEx(471,-3578.56298828,-2612.52758789,2.35609365,0.00000000,-1,-1,15); //Quad vehicle[2] = AddStaticVehicleEx(470,-3478.30371094,-2523.12597656,11.78172112,0.00000000,-1,-1,15); //Patriot vehicle[3] = AddStaticVehicleEx(425,-3513.81640625,-2599.72460938,4.98219109,0.00000000,-1,-1,15); //Hunter vehicle[4] = AddStaticVehicleEx(432,-3580.37646484,-2650.09545898,2.88043070,0.00000000,-1,-1,15); //Rhino vehicle[5] = AddStaticVehicleEx(432,-3588.67895508,-2648.80371094,2.88043070,0.00000000,-1,-1,15); //Rhino vehicle[6] = AddStaticVehicleEx(468,-3440.74511719,-2335.98144531,5.33223867,0.00000000,-1,-1,15); //Sanchez vehicle[7] = AddStaticVehicleEx(468,-3442.72460938,-2335.99707031,5.33223867,0.00000000,-1,-1,15); //Sanchez vehicle[8] = AddStaticVehicleEx(468,-3444.25878906,-2335.94140625,5.08223867,0.00000000,-1,-1,15); //Sanchez vehicle[9] = AddStaticVehicleEx(468,-3445.50683594,-2335.68359375,5.08223867,0.00000000,-1,-1,15); //Sanchez vehicle[10] = AddStaticVehicleEx(432,-3549.15234375,-2381.38085938,3.42157602,0.00000000,-1,-1,15); //Rhino vehicle[11] = AddStaticVehicleEx(460,-3638.62084961,-2427.42871094,2.00000000,0.00000000,-1,-1,15); //Skimmer vehicle[12] = AddStaticVehicleEx(425,-3491.50097656,-2278.55175781,9.11552715,184.24621582,-1,-1,15); //Hunter vehicle[13] = AddStaticVehicleEx(433,-3592.00878906,-2612.77246094,3.35109353,0.00000000,-1,-1,15); //Barracks vehicle[14] = AddStaticVehicleEx(470,-3594.32934570,-2592.79125977,2.89110518,0.00000000,-1,-1,15); //Patriot vehicle[15] = AddStaticVehicleEx(470,-3474.16674805,-2616.19702148,10.64374352,0.00000000,-1,-1,15); //Patriot vehicle[16] = AddStaticVehicleEx(548,-3530.41479492,-2640.13330078,6.05574512,0.00000000,-1,-1,15); //Cargobob vehicle[17] = AddStaticVehicleEx(548,-3503.46386719,-2226.34375000,12.38854885,0.00000000,-1,-1,15); //Cargobob vehicle[18] = AddStaticVehicleEx(578,-3459.23388672,-2282.79052734,10.06329536,196.00000000,-1,-1,15); //DFT-30 vehicle[19] = AddStaticVehicleEx(578,-3450.92187500,-2278.17749023,10.83830261,167.99591064,-1,-1,15); //DFT-30 vehicle[20] = AddStaticVehicleEx(579,-3430.76025391,-2332.39355469,2.35235405,0.00000000,-1,-1,15); //Huntley vehicle[21] = AddStaticVehicleEx(489,-3433.43164062,-2316.60839844,4.63448906,243.99536133,-1,-1,15); //Rancher vehicle[22] = AddStaticVehicleEx(422,-3500.31567383,-2326.29443359,2.40223885,184.00000000,-1,-1,15); //Bobcat vehicle[23] = AddStaticVehicleEx(471,-3461.45800781,-2305.39160156,5.09011745,0.00000000,-1,-1,15); //Quad vehicle[24] = AddStaticVehicleEx(504,-3459.38085938,-2317.31982422,3.73644018,186.75000000,-1,-1,15); //Bloodring Banger vehicle[25] = AddStaticVehicleEx(495,-3458.93847656,-2336.20507812,6.88231277,159.99938965,-1,-1,15); //Sandking vehicle[26] = AddStaticVehicleEx(520,-3596.23046875,-2384.34277344,15.24181461,271.99951172,-1,-1,15); //Hydra vehicle[27] = AddStaticVehicleEx(540,-3420.53222656,-2323.38720703,4.35509634,0.00000000,-1,-1,15); //Vincent vehicle[28] = AddStaticVehicleEx(433,-3583.95410156,-2534.73242188,9.60109329,0.00000000,-1,-1,15); //Barracks vehicle[29] = AddStaticVehicleEx(548,-3557.17700195,-2627.32421875,6.05574512,114.00000000,-1,-1,15); //Cargobob//Hydra return 1;}public OnVehicleSpawn(vehicleid) { for(new i = 0; i < MAX_VW_VEHS; i++) { if(vehicleid == vehicle) SetVehicleVirtualWorld(vehicle, VW); // ide h melyik VWbe aakrod } return 1;}
#include <a_samp>#define MAX_VW_VEHS 30 //ide hogy hány ilyen jármûvet akarsz, + 1new vehicle[MAX_VW_VEHS]; //változópublic OnFilterScriptInit() { vehicle[0] = AddStaticVehicleEx(520,-3583.56445312,-2504.04980469,9.97183800,267.99499512,-1,-1,15); //Hydra vehicle[1] = AddStaticVehicleEx(471,-3578.56298828,-2612.52758789,2.35609365,0.00000000,-1,-1,15); //Quad vehicle[2] = AddStaticVehicleEx(470,-3478.30371094,-2523.12597656,11.78172112,0.00000000,-1,-1,15); //Patriot vehicle[3] = AddStaticVehicleEx(425,-3513.81640625,-2599.72460938,4.98219109,0.00000000,-1,-1,15); //Hunter vehicle[4] = AddStaticVehicleEx(432,-3580.37646484,-2650.09545898,2.88043070,0.00000000,-1,-1,15); //Rhino vehicle[5] = AddStaticVehicleEx(432,-3588.67895508,-2648.80371094,2.88043070,0.00000000,-1,-1,15); //Rhino vehicle[6] = AddStaticVehicleEx(468,-3440.74511719,-2335.98144531,5.33223867,0.00000000,-1,-1,15); //Sanchez vehicle[7] = AddStaticVehicleEx(468,-3442.72460938,-2335.99707031,5.33223867,0.00000000,-1,-1,15); //Sanchez vehicle[8] = AddStaticVehicleEx(468,-3444.25878906,-2335.94140625,5.08223867,0.00000000,-1,-1,15); //Sanchez vehicle[9] = AddStaticVehicleEx(468,-3445.50683594,-2335.68359375,5.08223867,0.00000000,-1,-1,15); //Sanchez vehicle[10] = AddStaticVehicleEx(432,-3549.15234375,-2381.38085938,3.42157602,0.00000000,-1,-1,15); //Rhino vehicle[11] = AddStaticVehicleEx(460,-3638.62084961,-2427.42871094,2.00000000,0.00000000,-1,-1,15); //Skimmer vehicle[12] = AddStaticVehicleEx(425,-3491.50097656,-2278.55175781,9.11552715,184.24621582,-1,-1,15); //Hunter vehicle[13] = AddStaticVehicleEx(433,-3592.00878906,-2612.77246094,3.35109353,0.00000000,-1,-1,15); //Barracks vehicle[14] = AddStaticVehicleEx(470,-3594.32934570,-2592.79125977,2.89110518,0.00000000,-1,-1,15); //Patriot vehicle[15] = AddStaticVehicleEx(470,-3474.16674805,-2616.19702148,10.64374352,0.00000000,-1,-1,15); //Patriot vehicle[16] = AddStaticVehicleEx(548,-3530.41479492,-2640.13330078,6.05574512,0.00000000,-1,-1,15); //Cargobob vehicle[17] = AddStaticVehicleEx(548,-3503.46386719,-2226.34375000,12.38854885,0.00000000,-1,-1,15); //Cargobob vehicle[18] = AddStaticVehicleEx(578,-3459.23388672,-2282.79052734,10.06329536,196.00000000,-1,-1,15); //DFT-30 vehicle[19] = AddStaticVehicleEx(578,-3450.92187500,-2278.17749023,10.83830261,167.99591064,-1,-1,15); //DFT-30 vehicle[20] = AddStaticVehicleEx(579,-3430.76025391,-2332.39355469,2.35235405,0.00000000,-1,-1,15); //Huntley vehicle[21] = AddStaticVehicleEx(489,-3433.43164062,-2316.60839844,4.63448906,243.99536133,-1,-1,15); //Rancher vehicle[22] = AddStaticVehicleEx(422,-3500.31567383,-2326.29443359,2.40223885,184.00000000,-1,-1,15); //Bobcat vehicle[23] = AddStaticVehicleEx(471,-3461.45800781,-2305.39160156,5.09011745,0.00000000,-1,-1,15); //Quad vehicle[24] = AddStaticVehicleEx(504,-3459.38085938,-2317.31982422,3.73644018,186.75000000,-1,-1,15); //Bloodring Banger vehicle[25] = AddStaticVehicleEx(495,-3458.93847656,-2336.20507812,6.88231277,159.99938965,-1,-1,15); //Sandking vehicle[26] = AddStaticVehicleEx(520,-3596.23046875,-2384.34277344,15.24181461,271.99951172,-1,-1,15); //Hydra vehicle[27] = AddStaticVehicleEx(540,-3420.53222656,-2323.38720703,4.35509634,0.00000000,-1,-1,15); //Vincent vehicle[28] = AddStaticVehicleEx(433,-3583.95410156,-2534.73242188,9.60109329,0.00000000,-1,-1,15); //Barracks vehicle[29] = AddStaticVehicleEx(548,-3557.17700195,-2627.32421875,6.05574512,114.00000000,-1,-1,15); //Cargobob//Hydra for(new i = 0; i < MAX_VW_VEHS; i++) SetVehicletoRespawn(vehicle); // respawnolja, ami elvileg berakja másik VWbe. return 1;}public OnVehicleSpawn(vehicleid) { for(new i = 0; i < MAX_VW_VEHS; i++) { if(vehicleid == vehicle) SetVehicleVirtualWorld(vehicle, VW); // ide h melyik VWbe aakrod } return 1;}
Lehet hogy csak respawn után rakja át másik VW-be. #include <a_samp>#define MAX_VW_VEHS 30 //ide hogy hány ilyen jármûvet akarsz, + 1new vehicle[MAX_VW_VEHS]; //változópublic OnFilterScriptInit() { vehicle[0] = AddStaticVehicleEx(520,-3583.56445312,-2504.04980469,9.97183800,267.99499512,-1,-1,15); //Hydra vehicle[1] = AddStaticVehicleEx(471,-3578.56298828,-2612.52758789,2.35609365,0.00000000,-1,-1,15); //Quad vehicle[2] = AddStaticVehicleEx(470,-3478.30371094,-2523.12597656,11.78172112,0.00000000,-1,-1,15); //Patriot vehicle[3] = AddStaticVehicleEx(425,-3513.81640625,-2599.72460938,4.98219109,0.00000000,-1,-1,15); //Hunter vehicle[4] = AddStaticVehicleEx(432,-3580.37646484,-2650.09545898,2.88043070,0.00000000,-1,-1,15); //Rhino vehicle[5] = AddStaticVehicleEx(432,-3588.67895508,-2648.80371094,2.88043070,0.00000000,-1,-1,15); //Rhino vehicle[6] = AddStaticVehicleEx(468,-3440.74511719,-2335.98144531,5.33223867,0.00000000,-1,-1,15); //Sanchez vehicle[7] = AddStaticVehicleEx(468,-3442.72460938,-2335.99707031,5.33223867,0.00000000,-1,-1,15); //Sanchez vehicle[8] = AddStaticVehicleEx(468,-3444.25878906,-2335.94140625,5.08223867,0.00000000,-1,-1,15); //Sanchez vehicle[9] = AddStaticVehicleEx(468,-3445.50683594,-2335.68359375,5.08223867,0.00000000,-1,-1,15); //Sanchez vehicle[10] = AddStaticVehicleEx(432,-3549.15234375,-2381.38085938,3.42157602,0.00000000,-1,-1,15); //Rhino vehicle[11] = AddStaticVehicleEx(460,-3638.62084961,-2427.42871094,2.00000000,0.00000000,-1,-1,15); //Skimmer vehicle[12] = AddStaticVehicleEx(425,-3491.50097656,-2278.55175781,9.11552715,184.24621582,-1,-1,15); //Hunter vehicle[13] = AddStaticVehicleEx(433,-3592.00878906,-2612.77246094,3.35109353,0.00000000,-1,-1,15); //Barracks vehicle[14] = AddStaticVehicleEx(470,-3594.32934570,-2592.79125977,2.89110518,0.00000000,-1,-1,15); //Patriot vehicle[15] = AddStaticVehicleEx(470,-3474.16674805,-2616.19702148,10.64374352,0.00000000,-1,-1,15); //Patriot vehicle[16] = AddStaticVehicleEx(548,-3530.41479492,-2640.13330078,6.05574512,0.00000000,-1,-1,15); //Cargobob vehicle[17] = AddStaticVehicleEx(548,-3503.46386719,-2226.34375000,12.38854885,0.00000000,-1,-1,15); //Cargobob vehicle[18] = AddStaticVehicleEx(578,-3459.23388672,-2282.79052734,10.06329536,196.00000000,-1,-1,15); //DFT-30 vehicle[19] = AddStaticVehicleEx(578,-3450.92187500,-2278.17749023,10.83830261,167.99591064,-1,-1,15); //DFT-30 vehicle[20] = AddStaticVehicleEx(579,-3430.76025391,-2332.39355469,2.35235405,0.00000000,-1,-1,15); //Huntley vehicle[21] = AddStaticVehicleEx(489,-3433.43164062,-2316.60839844,4.63448906,243.99536133,-1,-1,15); //Rancher vehicle[22] = AddStaticVehicleEx(422,-3500.31567383,-2326.29443359,2.40223885,184.00000000,-1,-1,15); //Bobcat vehicle[23] = AddStaticVehicleEx(471,-3461.45800781,-2305.39160156,5.09011745,0.00000000,-1,-1,15); //Quad vehicle[24] = AddStaticVehicleEx(504,-3459.38085938,-2317.31982422,3.73644018,186.75000000,-1,-1,15); //Bloodring Banger vehicle[25] = AddStaticVehicleEx(495,-3458.93847656,-2336.20507812,6.88231277,159.99938965,-1,-1,15); //Sandking vehicle[26] = AddStaticVehicleEx(520,-3596.23046875,-2384.34277344,15.24181461,271.99951172,-1,-1,15); //Hydra vehicle[27] = AddStaticVehicleEx(540,-3420.53222656,-2323.38720703,4.35509634,0.00000000,-1,-1,15); //Vincent vehicle[28] = AddStaticVehicleEx(433,-3583.95410156,-2534.73242188,9.60109329,0.00000000,-1,-1,15); //Barracks vehicle[29] = AddStaticVehicleEx(548,-3557.17700195,-2627.32421875,6.05574512,114.00000000,-1,-1,15); //Cargobob//Hydra for(new i = 0; i < MAX_VW_VEHS; i++) SetVehicletoRespawn(vehicle); // respawnolja, ami elvileg berakja másik VWbe. return 1;}public OnVehicleSpawn(vehicleid) { for(new i = 0; i < MAX_VW_VEHS; i++) { if(vehicleid == vehicle) SetVehicleVirtualWorld(vehicle, VW); // ide h melyik VWbe aakrod } return 1;} Ha így most neked jó, akkor nekem azért volt jó, mert a GMem bekapcsolása után minden jármûvel respawnol, rendszám miatt.