Quote from: Abbas_905 on Jul 14, 2024, 01:43 AMHello Everyone
I want your smalll help,
need adminmod,apark command for admins
else if ( cmd == "apark"|| cmd == "setpark")
{
if ( !text ) MessagePlayer("Usage: /"+cmd+" [V/ID] ", player );
else {
local ve = GetVehicle( GetTok( text, " ", 1 ) );
if ( !ve ) MessagePlayer( "Vehicle id invalid.", player );
else {
local x = ve.Pos.x.tointeger(),y = ve.Pos.y.tointeger(),z = ve.Pos.z.tointeger();
ve.SpawnPos = Vector(x,y,z);
ve.EulerSpawnAngle = Vector(ve.EulerAngle.x,ve.EulerAngle.y,ve.EulerAngle.z)
MessagePlayer( "Vehicle Pos Saved : PosX "+ve.Pos.x+",PosY "+ve.Pos.y+",PosZ "+ve.Pos.z+", AngleX "+ve.EulerAngle.x+",AngleY "+ve.EulerAngle.y+",AngleZ "+ve.EulerAngle.z, player );
//These two lines are to save in the database but remember that you must modify it to your data for it to work
//QuerySQL( DatabaseVehicle, "UPDATE Vehicle SET PosX='"+x+"',PosY='"+y+"',PosZ='"+z+"' WHERE rowid LIKE '" + ve.ID + "'" );
///QuerySQL( DatabaseVehicle, "UPDATE Vehicle SET AngX='"+ve.EulerAngle.x+"',AngY='"+ve.EulerAngle.y+"',AngZ='"+ve.EulerAngle.z+"' WHERE rowid LIKE '" + ve.ID + "'" );
}
}
}
Quote from: Abbas_905 on Jul 14, 2024, 01:43 AMHello Everyonecan you be a bit more specific about what you ACTUALLY need?
I want your smalll help,
need adminmod,apark command for admins
else if (cmd == "unlockcar") {
if (!player.IsSpawned) {
MessagePlayer("[#ff4500][WARNING][#ffffff] You must be spawned to use this command!", player);
} else if (!text) {
MessagePlayer("[#1e90ff][USAGE][#ffffff] /unlockcar <Vehicle ID>", player);
} else if (!IsNum(text)) {
MessagePlayer("[#ff4500][ERROR][#ffffff] Vehicle ID must be a numeric value.", player);
} else {
local veh = FindVehicle(text.tointeger());
if (!veh) {
MessagePlayer("[#ff0000][ERROR][#ffffff] No vehicle found with the given ID.", player);
} else {
MessagePlayer("[#32cd32][SUCCESS][#ffffff] Vehicle [#ffa500]" + GetVehicleNameFromModel(veh.Model) + " [#ffffff]has been unlocked.", player);
veh.Locked = false;
}
}
return 0;
}
else if (cmd == "lockcar") {
if (!player.IsSpawned) {
MessagePlayer("[#ff4500][WARNING][#ffffff] You must be spawned to use this command!", player);
} else if (!text) {
MessagePlayer("[#1e90ff][USAGE][#ffffff] /lockcar <Vehicle ID>", player);
} else if (!IsNum(text)) {
MessagePlayer("[#ff4500][ERROR][#ffffff] Vehicle ID must be a numeric value.", player);
} else {
local veh = FindVehicle(text.tointeger());
if (!veh) {
MessagePlayer("[#ff0000][ERROR][#ffffff] No vehicle found with the given ID.", player);
} else {
MessagePlayer("[#32cd32][SUCCESS][#ffffff] Vehicle [#ffa500]" + GetVehicleNameFromModel(veh.Model) + " [#ffffff]has been locked.", player);
veh.Locked = true;
}
}
return 0;
}
Quote from: MEGAMIND on Nov 28, 2024, 10:09 PMQuote from: YankeeSJ on Nov 28, 2024, 09:47 PMjust share me your routers port forwading settings page.. if u cant share here share me at discord MEGAMIND#8033 or megamind8033Quote from: MEGAMIND on Nov 28, 2024, 07:07 PMQuote from: YankeeSJ on Nov 28, 2024, 07:04 PMIt shouldn't be this hard to open a vcmp server, I give upits the worlds ever easiest thing to do, if all else fails get host for free else the choice is urs
amigo, my modem brand is huawei. model EG8247W. I made the port settings. I just didn't set the dmz setting because it was unnecessary. can you help me? My dream is to open a server.
Quote from: YankeeSJ on Nov 28, 2024, 09:47 PMjust share me your routers port forwading settings page.. if u cant share here share me at discord MEGAMIND#8033 or megamind8033Quote from: MEGAMIND on Nov 28, 2024, 07:07 PMQuote from: YankeeSJ on Nov 28, 2024, 07:04 PMIt shouldn't be this hard to open a vcmp server, I give upits the worlds ever easiest thing to do, if all else fails get host for free else the choice is urs
amigo, my modem brand is huawei. model EG8247W. I made the port settings. I just didn't set the dmz setting because it was unnecessary. can you help me? My dream is to open a server.
Quote from: MEGAMIND on Nov 28, 2024, 07:07 PMQuote from: YankeeSJ on Nov 28, 2024, 07:04 PMIt shouldn't be this hard to open a vcmp server, I give upits the worlds ever easiest thing to do, if all else fails get host for free else the choice is urs
Quote from: YankeeSJ on Nov 28, 2024, 07:04 PMIt shouldn't be this hard to open a vcmp server, I give upits the worlds ever easiest thing to do, if all else fails get host for free else the choice is urs