Coder Social home page Coder Social logo

hual / sa-mp-plus Goto Github PK

View Code? Open in Web Editor NEW
68.0 22.0 38.0 142.34 MB

A client modification for GTA:San Andreas that uses SA-MP's plugin SDK to interact with the SA-MP server and add new features

License: GNU General Public License v2.0

C++ 70.80% FLUX 0.01% C 27.99% Shell 0.01% JavaScript 1.05% NSIS 0.06% SourcePawn 0.07% CMake 0.03%
c-plus-plus gta asi rce reverse sa-mp mod assembly-8086

sa-mp-plus's Introduction

SA-MP+

A client modification that uses SA-MP's plugin SDK to interact with the server and add new features

Download

####Windows:

####Linux:

Installation (Client)

Alternatively:

Installation (Server)

  • Download the Windows or Linux server plugin.
  • Place the file in the plugins folder of your server.
  • Add the plugin to your server's server.cfg.

Functions

  • ToggleHUDComponentForPlayer(playerid, componentid, bool:toggle);
  • SetRadioStationForPlayer(playerid, stationid);
  • SetWaveHeightForPlayer(playerid, Float:height);
  • SetWaveHeightForAll(Float:height);
  • TogglePauseMenuAbility(playerid, bool:toggle);
  • IsPlayerInPauseMenu(playerid);
  • SetPlayerHUDComponentColour(playerid, componentid, colour);
  • TogglePlayerAction(playerid, actionid, bool:toggle);
  • SetPlayerNoReload(playerid, bool:toggle);
  • GetPlayerResolution(playerid, &width, &height);
  • SetPlayerBlurIntensity(playerid, intensity);
  • SetPlayerGameSpeed(playerid, Float:speed);
  • TogglePlayerDriveOnWater(playerid, bool:toggle);
  • TogglePlayerFrozen(playerid, bool:toggle);
  • SetPlayerPedAnims(playerid, bool:toggle);
  • TogglePlayerSwitchReload(playerid, bool:toggle);
  • TogglePlayerInfiniteRun(playerid, bool:toggle);
  • SetPlayerAircraftHeight(playerid, Float:height);
  • Float:GetPlayerAircraftHeight(playerid);
  • SetPlayerJetpackHeight(playerid, Float:height);
  • Float:GetPlayerJetpackHeight(playerid);
  • bool:IsUsingSAMPP(playerid);
  • SetPlayerRaceCheckpointEx(playerid, type, Float:x, Float:y, Float:z, Float:point_x, Float:point_y, Float:point_z, Float:size, colour = 0xFF000020, period = 1024, Float:pulse = 0.1, rotation_rate = 0);
  • SetPlayerCheckpointColour(playerid, colour)
  • SetPlayerRaceCheckpointColour(playerid, colour)
  • TogglePlayerVehicleBlips(playerid, bool:toggle)
  • GetPlayerVehicleBlips(playerid)
  • GetPlayerRadioStation(playerid)
  • TogglePlayerInfiniteOxygen(playerid, bool:toggle)
  • ToggleWaterBuoyancy(playerid, bool:toggle)
  • ToggleUnderwaterEffect(playerid, bool:toggle)
  • ToggleNightVision(playerid, bool:toggle)
  • ToggleThermalVision(playerid, bool:toggle)

####Callbacks:

  • OnPlayerOpenPauseMenu(playerid)
  • OnPlayerClosePauseMenu(playerid)
  • OnPlayerEnterPauseSubmenu(playerid, from, to)
  • OnDriverDriveByShot(playerid)
  • OnPlayerStunt(playerid, stuntid, money, details[])
  • OnPlayerResolutionChange(playerid, width, height)
  • OnPlayerClick(playerid, type, X, Y)
  • OnPlayerChangeRadioStation(playerid, stationid, vehicleid)
  • OnPlayerDrinkSprunk(playerid)

####Experimental/Unstable:

  • SetPlayerCheckpointEx(playerid, Float:x, Float:y, Float:z, Float:size, colour = 0xFF000020, period = 1024, Float:pulse = 0.1, rotation_rate = 0, bool:check_z = true);

Compilation

####Windows:

  • Open the provided solution file (.sln) in Visual Studio.
  • Make sure to change the target to "Release" unless you want a build with debug symbols.

####Linux:

  • Open a terminal and use the following commands:
cd Build
mkdir Temp
cd Temp
cmake ../..
make
  • Pass the -DSAMPP_DEBUG=1 parameter to CMake for generating a build with debug symbols.

sa-mp-plus's People

Contributors

gtakilleriv avatar hual avatar jovazxc avatar whitetigerswt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sa-mp-plus's Issues

Game crashes after spas shot.

Greetings.

Like your fabulous plugin, but I have found one trouble.
My game crashes when I do spas or sawn-off shotgun shot (Exception 0xC0000005 at 0x55250649).
I found a reason of this problem in Client/Network.cpp at this code:

unsigned int SendRPC(unsigned short usRPCId, RakNet::BitStream* pBitStream, PacketPriority priority, PacketReliability reliability, char cOrderingChannel)
    {
        if (!IsConnected())
            return 0;

        CLog::Write("Sent packet: %i, size: %i byte(s)", usRPCId, pBitStream->GetNumberOfBytesUsed());
        CLog::bytesSent += pBitStream->GetNumberOfBytesUsed();

        return pRakClient->SendRPC(usRPCId, *pRakClient->GetRemoteAddress(), pBitStream, priority, reliability, cOrderingChannel);
    }

If I will comment this part of code, the crash will gone:

//CLog::Write("Sent packet: %i, size: %i byte(s)", usRPCId, pBitStream->GetNumberOfBytesUsed());
        //CLog::bytesSent += pBitStream->GetNumberOfBytesUsed();

I do not know a reason of the problem, because I am begginer at coding, so I think you can fix this problem. Sorry for my bad English.

Regards,
L30N3.

Ingame map editor

I realize that this plugin is abandoned but I'm still posting this hoping for someone to make a fork. If you have the client plugin installed and you try to move objects with the ingame map editor, the object keeps moving into a random direction for a while. It's very annoying and problematic as I'd like to use SA-MP+ in my server but also make use of the ingame map editor for interiors.

Server CRASH problem

I don't know why server have crash when I use this plugin. Maybe player connect/disconnect system is somthing wrong.

I was open two servers. Both use this plugin. Then a few hours both crash.
And then delete this plugin, Problem has been removed.

Please hurry to fix this problem.

Ps. If I do server reboot, Users can't connect to SAMP+ plugin.

TogglePlayerFrozen issues

see: http://forum.sa-mp.com/showpost.php?p=3300911&postcount=859

also:

TogglePlayerFrozen does not seem to work on bikes (wtf)

to fix this probably should just re-code the whole thing instead of relying on a poorly documented public memory address, should try ignoring all keyboard input instead.

0x541C98 - address of function that sets keys down, should have it ignore input when "frozen" instead maybe?

Compilation error on Windows 10 with VS13

Hey Hual,
I downloaded SA-MP-Plus and tried to compile it.
I got the following error:
error MSB6006: "cmd.exe" exited with code 3.
This does not happen on Debug, only when I use Release.
That error leads to ~100 warnings in the Microsoft.CppCommon.targets file.

What can I do? :\

Is there any guide?

I need a guide to the plugin, there was one in the SA-MP forum, but it is currently removed, can you recreate it?


for example:

  • ToggleHUDComponentForPlayer (playerid, componentid, bool: toggle);
    componentid, I don't know what they are.

Sorry for my English

Possibility of key press and mouse movements being added?

Key Presses

A list of generally used keys would be scanned using GetKeyState and when their state changes call a pawn callback. (Obviously this would be much like OnPlayerKeyStateChange, but without the bitmask of keys.)

Mouse Movement

The mouse position would be repeatedly checked (every 20-50 ms if enabled?) when the mouse is enabled. When it is changed call a pawn callback. OnPlayerClick would still be called on clicks alongside this.

SetPlayerNoReload

If the player's ammo runs out, it'll decrease until the ammo is equal to the amount of bullets(in negative). When that happens, the player's weapon will disappear.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.