Recent posts

#61
I'll try to fix his instructions, see if I can help you. I added the onPlayerPart event to simulate the player quitting.
if (cmd == "reload") {
    local loaded = []
    foreach (v in getOnlinePlayers())
   {
        if (getPlayer(v.ID) != null && getPlayer(v.ID).Spawned)
        {
                 loaded.append(getPlayer(v.ID))
        }
    }
    for(local i=0;i<100;i++)
    {
        local plr=FindPlayer(i);
        if(plr)
        {
            onPlayerPart(plr,1);
        }
    }
    onServerStop();
    dofile("main.nut") // your main script.
    onScriptLoad()
    foreach (b in getOnlinePlayers()) {
        onPlayerJoin(getPlayer(b.ID))
    }
    foreach (plr in loaded) {
        onPlayerRequestClass(plr, plr.Class, plr.Team, plr.Skin)
        if (plr.IsSpawned) onPlayerSpawn(plr)
    }
    AnnounceAll("Reloaded.", 0)
    return 1;
}
#62
Scripting and Server Management / Re: Weapon error call
Last post by PSL - Feb 17, 2024, 06:34 AM
I have cancelled the downgrade of the server version, thank you for your comments and reminders, the custom weapon bug has been fixed in 04rel006 version.
#63
Community Plugins / Re: NPC/Bots implementation in...
Last post by PSL - Feb 17, 2024, 04:02 AM
HI Habi, I tried this version and the vehicle playback speed is almost exactly the same as the original speed, the vehicle playback speed issue has been fixed. Thank you for fixing this little bug. I really appreciate your update.
I found a problem in testing this version. When I hide an NPC's console, the NPC doesn't join the server.
ConnectNPC("[NPC]Jack","npcplayback.nut",false,"127.0.0.1","rpclib z-finder");  //Not Join
ConnectNPC("[NPC]Jack","npcplayback.nut",true,"127.0.0.1","rpclib z-finder");  //Join
#64
Community Plugins / Re: NPC/Bots implementation in...
Last post by habi2 - Feb 16, 2024, 06:24 PM
Hi PSL, can you confirm if this release candidates of v1.8 beta solves the issue of car not accelerating.

windows
linux-x64
linux-86
rel004
source-1.8-beta-zip
setup (installer)

Also thanks for confirming about location of server.

I decreased sleep time between cycles from 30 to 5 ms and found that cars are accelerating without lags. Also the time taken by npc to omplete the race now matches against the original time.
#65
Snippet Showroom / Re: [clientside] 3d line (like...
Last post by Sebastian - Feb 15, 2024, 08:33 PM
Cool! this is something I need.
Thank you!
#66
Scripting and Server Management / Re: Weapon error call
Last post by vitovc - Feb 15, 2024, 04:46 PM
Quote from: Eva on Feb 15, 2024, 04:27 PMStill its a downgrade lol, going back to an earlier release is downgrade not up
yes eva, if we count number of version then its correct. if we count quality of version then its upgrade (as quality, at least by needs of topic starter). for example if you swith your PC from Intel Celeron G6900 to Intel Core i7-8700 it will be 'downgrade' because G6900 is newer but i7-8700 has better perfomance (though 5 years older).
when we play game we need experience not number of version. and vice city itself is 22 years old game... so it all depends of point of view.
#67
Scripting and Server Management / Re: Weapon error call
Last post by Eva - Feb 15, 2024, 04:27 PM
Quote from: vitovc on Feb 14, 2024, 04:57 PM
Quote from: Eva on Feb 14, 2024, 04:13 PMehm thats not upgrade but downgrade, going from 04rel006 to 04rel004.
it depends how to count. 6 is more than 4, rel006 has more value of bugs and limitations and rel004 has less value of bugs and limitations... in rel006 you can not use classsicaxis.asi, widescreen.asi is bugged, you can not push players (it considered as 'bug' by devs), you can not look back by middle mouse button in every angle of player with correct turning head... but  in rel006 you can edit stadium text and turn on taxi lights... do it depends of personal preference.
Still its a downgrade lol, going back to an earlier release is downgrade not up
#68
Script Showroom / Re: Free file upload for scrip...
Last post by Dropgaming - Feb 15, 2024, 12:53 PM
how to create own server in vcmp
#69
Scripting and Server Management / Re: Weapon error call
Last post by PSL - Feb 15, 2024, 04:09 AM
I want the first person shot of 04rel004 because there will be no shaking screen, There are also vehicles that can exceed 1000 HP. I have fixed the bug on the script, but I am still searching for the bug on the custom module.
#70
Community Plugins / Re: NPC/Bots implementation in...
Last post by PSL - Feb 15, 2024, 04:01 AM
Hi Habi, I saw your video, In the video you catch up with your video playback, That means the vehicle speed of the replay is slower,   I made a server that can race against NPCS, I'll advertise the server elsewhere. I ran 1:30 in the driver legend myself, but my replay ran 1:40, I can always catch up with my replay, So you figure out a way to make the playback vehicle faster.

My server is running on a remote computer.