Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - [R3V]Kelvin

#1
Quote from: Luis_Labarca on May 10, 2025, 03:02 AMbefore used
player.Bleeding = true ;
player.DrunkVisuals = true ;
player.DrunkHandling = true ;
but it doesn't work for me anymore

and then add the plugin to the server.cfg folder
sqlatestfeatures04rel32
How come 'it doesn't work anymore'? By the way, while Player.Bleeding does expect and return a boolean, Player.DrunkVisuals and Player.DrunkHandling do not - they expect an integer. For instance:
player.Bleeding = true; // true/false (your code is correct for this one)
player.DrunkVisuals = 255; // 0-255
player.DrunkHandling = 8; // 0-4294967295
También hablo español si deseas expresarte mejor. :)
#2
I don't quite understand what you mean, but if you are trying to get started into plugin development in VC:MP I would follow this tutorial, which worked for me pretty good back in the day when I was new to this myself:
https://forum.vc-mp.org/index.php?topic=7347.0
  • Don't know about C#, but this one works for C++ (and, with a few tweaks, C)
  • The SDK header on that tutorial is outdated, find the latest one at https://v04.adtec.ovh/VCMP.h
  • Requires Visual Studio (which you seem to be using already, anyway)
#3
v2.0.0 Update (2024-12-11)
  • Reimplemented almost all definitions for consistency with those from the official Squirrel module (SetPlayerBleeding() and IsPlayerBleeding() become a single property: Player.IsBleeding, etc.).
  • Due to the above change, support for functions to affect all entities on server in a single function call has been dropped (i.e. passing -1 where a valid entity ID was expected).
  • Send a warning message instead of an error message if we fail to hook Squirrel.

No new functionalities have been added.

This update breaks compatibility with older versions of the plugin, so please take a look at the documentation once again for changes that may be relevant to you:
https://github.com/sfwidde/vcmp-latest-features-for-squirrel

If nothing of what has been said above is relevant to you, you can safely ignore this update and continue to use older versions of this plugin.
#4
Snippet Showroom / Steam-like Notifications
Oct 21, 2024, 08:30 AM

This is a snippet I had worked on in September 2020 that I lost track of and recently found motivation to start working on it again.

As per usual, installation, documentation and more can be found on project's own GitHub repository: https://github.com/sfwidde/vcmp-steam-like-notifications

The code targets Squirrel but can be adapted to any language supporting streams in VC:MP.

Thanks.
#5
Quote from: MEGAMIND on Oct 04, 2024, 09:45 AMis it right  or em a not aware of docs? wiki
Here is plugin's full documentation: https://github.com/sfwidde/vcmp-latest-features-for-squirrel
The plugin does not call any sort of custom events at all. However, what you want to do is achievable manually. Here's a quick example which worked for me pretty good:
// Grab internal function from sqlatestfeatures plugin.
local fn = SetVehicle3DArrowEnabled;
// Overwrite SetVehicle3DArrowEnabled function with our own.
function SetVehicle3DArrowEnabled(vehicleId, playerToShowId, enable)
{
// Call internal plugin function.
fn(vehicleId, playerToShowId, enable);
// Call our custom event.
onVehicle3DArrowSet(FindVehicle(vehicleId), FindPlayer(playerToShowId), enable);
}

/* CVehicle, CPlayer/null, bool */
function onVehicle3DArrowSet(vehicle, playerToShow, enable)
{
print("3D arrow " + (enable ? "enabled" : "disabled") + " " +
"for vehicle " + GetVehicleNameFromModel(vehicle.Model) + " (ID: " + vehicle.ID + "), " +
"which is shown to " + (playerToShow ? playerToShow.Name : "everyone") + ".");
}
which will call onVehicle3DArrowSet custom event every time you call SetVehicle3DArrowEnabled.

Also thanks @habi2 for providing a correct example on the usage of this function.
#6


Hi
With VC:MP's latest update (v0.4.7), there are new functionalities that were added to the server through the new plugin SDK. Unfortunately, official Squirrel module has not been updated in a while (6 years!), making these features inaccessible for Squirrel server developers. So, as a temporary solution to this problem, I've decided to make this plugin so that they can enjoy from these features on their servers too!

Downloads, documentation and more can be found here:
https://github.com/sfwidde/vcmp-latest-features-for-squirrel