SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Gamemode Scripts

Reply
 
Thread Tools Display Modes
Old 12/07/2015, 11:40 PM   #1
lexjusto
Little Clucker
 
lexjusto's Avatar
 
Join Date: May 2015
Location: Moscow, Russia
Posts: 8
Reputation: 1
Default Simple Gamemode - the Simplest basis for a gamemode [Streamer\MySQL\SSCANF\ZCMD]

Hello everyone, I represent to your attention its base game mode for beginners learners pawn - SIMPLE GAMEMODE.

What is inside:
  • Save and load all the player data through MySQL R39-3 (by pBlueg),
  • Registration dialogs (Password, email, gender of the character, the skin of the character, the player who invited him),
  • The simplest spawn after registration and login,
  • System pickups in dynamic areas (Streamer),
  • Warning system error related to MySQL (though errors themselves now of course not),
  • System RolePlay chat. (a bit unusual system - learn when look ),
  • The simplest command /mymenu to check the performance of teams and the use of this template to add commands in the future.

That's not all, all the little things you can find directly in your code.

Plugins which are used in this game mode:

At the time of writing topics the server itself and include game modes are on version SA-MP 0.3.7.

I think some will be easier for beginners to understand the basics of PAWN and MYSQL with this game mode! Thank you for your attention. Ismenias for the clumsy at times the translation

Most likely going to continue development! Wait for updates
Offer what you want to see in this game mode. (Can offer ready-made code, but not necessarily)


Download (Repository): https://github.com/lexjusto/SA-MP-0.3.7-Simple-Gamemode


My contacts:

Last edited by lexjusto; 13/07/2015 at 01:53 AM.
lexjusto is offline   Reply With Quote
Old 13/07/2015, 12:04 AM   #2
Darge
Little Clucker
 
Join Date: Feb 2015
Location: Russia
Posts: 16
Reputation: 0
Default Re: Simple Gamemode - the Simplest basis for a gamemode [Streamer\MySQL\SSCANF\ZCMD]

Nice job =)
__________________
Darge is offline   Reply With Quote
Old 13/07/2015, 12:05 AM   #3
SWAT4
Huge Clucker
 
SWAT4's Avatar
 
Join Date: May 2014
Posts: 244
Reputation: 56
Default Re: Simple Gamemode - the Simplest basis for a gamemode [Streamer\MySQL\SSCANF\ZCMD]

Nice, but any photos? Or maybe small video?
SWAT4 is offline   Reply With Quote
Old 13/07/2015, 01:41 AM   #4
Konverse
Gangsta
 
Konverse's Avatar
 
Join Date: Apr 2015
Location: CookieZone
Posts: 788
Reputation: 151
Default Re: Simple Gamemode - the Simplest basis for a gamemode [Streamer\MySQL\SSCANF\ZCMD]

Any sample videos or pictures? This can be really helpful if there's a guide of how to use this kind of game mode.
__________________

SA-MP Player since 2007, officially forum registered in 2015
Konverse is offline   Reply With Quote
Old 13/07/2015, 01:47 AM   #5
lexjusto
Little Clucker
 
lexjusto's Avatar
 
Join Date: May 2015
Location: Moscow, Russia
Posts: 8
Reputation: 1
Default Re: Simple Gamemode - the Simplest basis for a gamemode [Streamer\MySQL\SSCANF\ZCMD]

Quote:
Originally Posted by Konverse View Post
Any sample videos or pictures? This can be really helpful if there's a guide of how to use this kind of game mode.
What do you mean? Manual start or how to use it?
lexjusto is offline   Reply With Quote
Old 13/07/2015, 02:56 AM   #6
Konverse
Gangsta
 
Konverse's Avatar
 
Join Date: Apr 2015
Location: CookieZone
Posts: 788
Reputation: 151
Default Re: Simple Gamemode - the Simplest basis for a gamemode [Streamer\MySQL\SSCANF\ZCMD]

Quote:
Originally Posted by lexjusto View Post
What do you mean? Manual start or how to use it?
Any tutorial may suffice as long as it's helpful.
__________________

SA-MP Player since 2007, officially forum registered in 2015
Konverse is offline   Reply With Quote
Old 13/07/2015, 04:22 AM   #7
Cyber123
Big Clucker
 
Join Date: Apr 2014
Posts: 86
Reputation: 1
Default Re: Simple Gamemode - the Simplest basis for a gamemode [Streamer\MySQL\SSCANF\ZCMD]

Good for beginers
Cyber123 is offline   Reply With Quote
Old 13/07/2015, 06:26 AM   #8
X337
Gangsta
 
Join Date: Sep 2014
Location: Indonesia
Posts: 882
Reputation: 287
Default Re: Simple Gamemode - the Simplest basis for a gamemode [Streamer\MySQL\SSCANF\ZCMD]

Very nice, but most of the dialog, message and label is in russian.
Can you convert that thing to english?

I see this code in .pwn file, i didn't understand what's this and how it works.
Code:
@___If_u_can_read_this_u_r_nerd();
@___If_u_can_read_this_u_r_nerd()
{
    #emit    stack    0x7FFFFFFF
    #emit    inc.s    cellmax
    static const ___[][] = {"made with love by | lexjusto |"};
    #emit    retn
    #emit    load.s.pri    ___
    #emit    proc
    #emit    proc
    #emit    fill    cellmax
    #emit    proc
    #emit    stor.alt    ___
    #emit    strb.i    2
    #emit    switch    4
    #emit    retn
L1:
    #emit    jump    L1
    #emit    zero    cellmin
}
Can you explain this code mate?

Thanks.
__________________
viva la sa-mp
X337 is offline   Reply With Quote
Old 13/07/2015, 08:10 AM   #9
lexjusto
Little Clucker
 
lexjusto's Avatar
 
Join Date: May 2015
Location: Moscow, Russia
Posts: 8
Reputation: 1
Default Re: Simple Gamemode - the Simplest basis for a gamemode [Streamer\MySQL\SSCANF\ZCMD]

Quote:
Originally Posted by X337 View Post
Very nice, but most of the dialog, message and label is in russian.
Can you convert that thing to english?

I see this code in .pwn file, i didn't understand what's this and how it works.
Code:
@___If_u_can_read_this_u_r_nerd();
@___If_u_can_read_this_u_r_nerd()
{
    #emit    stack    0x7FFFFFFF
    #emit    inc.s    cellmax
    static const ___[][] = {"made with love by | lexjusto |"};
    #emit    retn
    #emit    load.s.pri    ___
    #emit    proc
    #emit    proc
    #emit    fill    cellmax
    #emit    proc
    #emit    stor.alt    ___
    #emit    strb.i    2
    #emit    switch    4
    #emit    retn
L1:
    #emit    jump    L1
    #emit    zero    cellmin
}
Can you explain this code mate?

Thanks.
About the translation - Yes, soon translate.
About the weird code at the top is an unusual way AntiDeAmx (used opcodes compiler) that protects mod from decompiling. When you try decompiling the program, the attacker will consume 100% of the RAM and he most likely will not be able to complete without rebooting
lexjusto is offline   Reply With Quote
Old 15/07/2015, 01:46 AM   #10
Kucin666
Big Clucker
 
Kucin666's Avatar
 
Join Date: Apr 2014
Location: www.nurigame.web.id
Posts: 67
Reputation: 5
Default Re: Simple Gamemode - the Simplest basis for a gamemode [Streamer\MySQL\SSCANF\ZCMD]

Good work man
__________________
Kucin666 is offline   Reply With Quote
Reply

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
[GameMode] nMulti - MySQL, ZCMD, sscanf base gamemode Nicker Gamemode Scripts 14 05/05/2015 01:52 PM
[Tutorial] Simple Ingame Mapper system [Yini|sscanf|zcmd|streamer] faff Tutorials 15 29/04/2014 01:46 AM


All times are GMT. The time now is 04:50 PM.


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