SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Thread Tools Display Modes
Old 22/02/2019, 05:23 PM   #1
Little Clucker
Join Date: Mar 2017
Posts: 3
Reputation: 7
Lightbulb [0.3.7] PySAMP - Python based Gamemodes

I began working on a python plugin since 2017 and now I finally got enough time to release it.
There already was a similar plugin in 2010 and it was never released. That's why I decided to create one on my own.

You can find all technical information (please have a look into the Using section before copying the .dll/.so) here:
You can download the latest releases here:
(Please star it, if you use Github and like my project ).

The main motivation behind it, is the fact, that it gives you the ability to do rapid prototyping without gmx'ing and waiting. For this I'll release an example gamemode very soon.

If you experience any issues with it, feel free create an issue on GitHub and I'll look into it asap.

If anybody is interested in translate the sa-mp example gamemodes into python: create a fork, translate it, and create a pull-request

In the coming weeks, I'll work on the following issues in the specified order (if nobody finds a bug ):
  1. example gamemode, that can be reloaded without gmx in quarter of a second
  2. 0.3dl callbacks and functions
  3. use functions of other plugins
  4. documentation

Thanks to:
  • SA:MP Team for developing SA:MP
  • Zeex for developing the SAMPGDK which is used by PySAMP
  • Python Software Foundation
Yannick2Go is offline   Reply With Quote
Old 22/02/2019, 07:57 PM   #2
Little Clucker
Double-O-Seven's Avatar
Join Date: Jan 2012
Posts: 49
Reputation: 35
Default Re: [0.3.7] PySAMP - Python based Gamemodes

Very nice! I like seeing other people creating SA-MP APIs in languages better than PAWN!
Double-O-Seven is offline   Reply With Quote
Old 22/02/2019, 11:09 PM   #3
Big Clucker
Join Date: May 2016
Posts: 188
Reputation: 6
Default Re: [0.3.7] PySAMP - Python based Gamemodes

wow no way!

Free SAMP Server Hosting (20 slots) or Hosted Tab:
RenanMsV is offline   Reply With Quote
Old 23/02/2019, 03:32 PM   #4
Little Clucker
Join Date: Mar 2017
Posts: 3
Reputation: 7
Default Re: [0.3.7] PySAMP - Python based Gamemodes

Originally Posted by ****** View Post
How do you reload a mode without a gmx? gmx stands for "GameMode eXit", so if you don't do that you don't leave the mode you are supposedly reloading. GMX also does a lot of useful things - for example it is the only time you can change certain settings such as player ped animations and player classes.
It's not a real reload so these settings can't be set during it. But it's possible to reload python modules during runtime.
As long as you keep the state of the module synchronous to sa-mp (more precisely clean the state during reload and undo everything), it's possible to do it mostly.

But, I'll create an example soon!
Yannick2Go is offline   Reply With Quote
Old 15/04/2020, 04:30 PM   #5
Big Clucker
Join Date: Nov 2012
Posts: 142
Reputation: 0
Default Re: [0.3.7] PySAMP - Python based Gamemodes

Nice one!
PRoleplay is online now   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Python Scripting ( HOW TO SCRIPT WITH PYTHON??) janko1223 Scripting Help 2 26/09/2016 04:48 PM
Python Kruno88 Everything and Nothing 5 24/04/2015 07:25 PM
[FilterScript] San Andreas Singleplayer cheats[cmd based and text based] Rayan_black Filterscripts 26 09/06/2014 03:35 AM
Converting a mysql based to .ini based Johnny_Robins Server Support 6 04/07/2012 06:06 PM
A roleplay server based on a military based war? CobraAziz General 21 05/05/2012 06:15 AM

All times are GMT. The time now is 01:32 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.