Recent posts

#41
Tutorials / Re: Walking npc
Last post by MEGAMIND - Nov 12, 2024, 10:37 AM
Quote from: [TDA]Speed on Nov 12, 2024, 08:27 AMokey brother thanks for link, you asking or suggesting? xD
pls use transltor that i suggested u to that if u want u can test it out.. i dont need to ask anyone
#42
Community Plugins / Re: NPC/Bots implementation in...
Last post by MEGAMIND - Nov 12, 2024, 10:36 AM
Quote from: habi2 on Nov 12, 2024, 08:10 AMHi Megamind i was not well for two days and now recovering fast.
The mechanism of creating npc with skin was created when npc didn't die. Now it dies and gets skin of the class which in your case maybe lovefist. I will fix it in next update. But you can
SendCommand("_npc_skin_request 65");
to set npc skin anytime. The above code set it to 65, as we discussed before. OnNPCSpawn might be the right place.

About server crashing issue, it is the 64-bit version of windows (and perhaps linux too) that has bug when using RFC. I will correct it.
thanks habi i also found a work around from serverside for facing the npc towards me but it will be alot better if just single line of code can do the work easily instead of doing a full math, also get well soon
#43
Videos & Screenshots / Re: Chatgpt conciuosness
Last post by MEGAMIND - Nov 12, 2024, 10:34 AM
Quote from: [TDA]Speed on Nov 12, 2024, 08:25 AM
Quote from: MEGAMIND on Oct 29, 2024, 11:11 AM
Quote from: [TDA]Speed on Oct 29, 2024, 10:44 AMthats a good thing really imagine an AI npc with habis npcs plugins and AI of chatgpt

a.i npc gonna take ober every server and kill the shit out of users, pro npc 😅

actually got inspired by

so thought why not one for vcmp
yes but the problem is its need alot of work alot alot..
samp needs alot of work where mine doesnt
#44
Tutorials / Re: Walking npc
Last post by [TDA]Speed - Nov 12, 2024, 08:27 AM
Quote from: MEGAMIND on Nov 10, 2024, 04:16 PM
Quote from: [TDA]Speed on Nov 10, 2024, 04:12 PM
Quote from: MEGAMIND on Nov 10, 2024, 10:30 AM
Quote from: [TDA]Speed on Nov 10, 2024, 09:30 AM
Quote from: vitovc on Nov 04, 2024, 06:44 PMit is possible but he wants you to code pathfinding for him xD
actually there is alot of AI-stuff can be done (and needed for DM-gamemods). I feel fear when I imagine how much work should be done to make npc to act like real players in terms of DM.
maybe we can make something more easliy then this like know the nearest pos of npc and walk to it

i did it eventaully u can do it too, get the nearest player id from distanceotpoint and walk it there.. an example here it moves twoards the loaction of player where ever it is going
Quote from: MEGAMIND on Nov 10, 2024, 10:30 AM
Quote from: [TDA]Speed on Nov 10, 2024, 09:30 AM
Quote from: vitovc on Nov 04, 2024, 06:44 PMit is possible but he wants you to code pathfinding for him xD
actually there is alot of AI-stuff can be done (and needed for DM-gamemods). I feel fear when I imagine how much work should be done to make npc to act like real players in terms of DM.
maybe we can make something more easliy then this like know the nearest pos of npc and walk to it

i did it eventaully u can do it too, get the nearest player id from distanceotpoint and walk it there.. an example here it moves twoards the loaction of player where ever it is going
lool man thats awsome! nick work
u cant test that npc.ai at my server more of that want in depth knowledge ? https://forum.vc-mp.org/index.php?topic=3350.msg54387#new
okey brother thanks for link, you asking or suggesting? xD
#45
Videos & Screenshots / Re: Chatgpt conciuosness
Last post by [TDA]Speed - Nov 12, 2024, 08:25 AM
Quote from: MEGAMIND on Oct 29, 2024, 11:11 AM
Quote from: [TDA]Speed on Oct 29, 2024, 10:44 AMthats a good thing really imagine an AI npc with habis npcs plugins and AI of chatgpt

a.i npc gonna take ober every server and kill the shit out of users, pro npc 😅

actually got inspired by

so thought why not one for vcmp
yes but the problem is its need alot of work alot alot..
#46
General Discussion / Re: Some Suggestions
Last post by [TDA]Speed - Nov 12, 2024, 08:22 AM
Quote from: vitovc on Oct 04, 2024, 08:31 PM1) you can attach player to car roof by clientside script
2) car must have a driver for correct sync the person on roof of car (vcmp has build-in attach for people who standing at car roof - for view of remote players but only if car has a driver)
3) you need to care in case shooter (player at roof) fallen down to make him stand up by script otherwise he may keep laying on car roof
but why scripting it while its already available in the offline game also i have tried many things like attaching player to vehicle but this not working
#47
Community Plugins / Re: NPC/Bots implementation in...
Last post by habi2 - Nov 12, 2024, 08:10 AM
Hi Megamind i was not well for two days and now recovering fast.
The mechanism of creating npc with skin was created when npc didn't die. Now it dies and gets skin of the class which in your case maybe lovefist. I will fix it in next update. But you can
SendCommand("_npc_skin_request 65");
to set npc skin anytime. The above code set it to 65, as we discussed before. OnNPCSpawn might be the right place.

About server crashing issue, it is the 64-bit version of windows (and perhaps linux too) that has bug when using RFC. I will correct it.
#48
Snippet Showroom / Re: [SNIPPET]Basic Vehicle Pas...
Last post by MEGAMIND - Nov 11, 2024, 03:02 PM
Quote from: Mohamed Boubekri on Nov 27, 2017, 09:24 PM@! Brother zeus You Can Do That's For For Driver Cars

If You Can't / Its oK,

About That's Niice Work, But i Want For the Driver Vehicles

If You Can Do Sent Me Here Thanks.
Quote from: D4rkR420R on Nov 28, 2017, 05:49 AM
Quote from: Mohamed on Nov 27, 2017, 09:24 PM@! Brother zeus You Can Do That's For For Driver Cars

If You Can't / Its oK,

About That's Niice Work, But i Want For the Driver Vehicles

If You Can Do Sent Me Here Thanks.

It isn't possible to spectate yourself, or in this case, the driver. Attempt to spectate yourself in your server & you'll see. We usually spectate ourselves on purpose to disable spectating mode.

onentervehicle
if (vehicle.Driver != null)
{
    if (vehicle.Driver.ID != player.ID)
    {
        player.SpectateTarget = vehicle.Driver;
        vehicle.Driver.SpectateTarget = player; // Driver also spectates the player
    }
    else
    {
        local MaxOccupants = 8;
        for (local i = 1; i <= MaxOccupants; i++)
        {
            local Occupant = vehicle.GetOccupant(i);
            if (Occupant != null && Occupant.SpectateTarget == null)
                Occupant.SpectateTarget = player;
        }
    }
}



onexitvehicle
if (player.SpectateTarget != null)
    player.SpectateTarget = null; /* It's not necessary to use this line */
if (vehicle.Driver == null)
{
    local MaxOccupants = 8;
    for (local i = 1; i <= MaxOccupants; i++)
    {
        local Occupant = vehicle.GetOccupant(i);
        if (Occupant != null)
        {
            // Clear the spectate target for all occupants
            if (Occupant.SpectateTarget != null)
                Occupant.SpectateTarget = null;
        }
    }
}
else
{
    // If vehicle has a driver, make sure the driver stops spectating as well
    if (vehicle.Driver.SpectateTarget != null)
        vehicle.Driver.SpectateTarget = null;
}
u can if u have a passenger at a side
#49
General Discussion / Re: A.I Powered Server
Last post by MEGAMIND - Nov 11, 2024, 11:42 AM
@Mikimon Thanks for visiting server, providing your suggestions and testing out the gpt..!
#50
Clans and Families / Re: [M4] - [M4]Legendary Of Le...
Last post by DEVIL - Nov 11, 2024, 09:47 AM
No probleam i will make Clan Good again That all Vcmp player know M4 Clan was a legend and its a Legend now

All gone in 1 year but I Can recover it we need to try our best If anyone have Discord link of clan or form give it to me 8)  8)