Giovanni Posted September 30, 2011 Share Posted September 30, 2011 Ehm well, I have been playing MTA for a while now, and yes, I wanted to start real scripting (not only additions for maps) a while ago, but I never really meant it serious. But now, after 1.1 was released I am totally thrilled of MTA again, and I don't really want to go back to Scripting for SA:MP, what I did before. I know that you script in Lua for MTA, and that there is a difference between client and server sided scripts. But there are some questions I got: 1. Are there any tutorials about creating gamemodes (including the creation of commands if possible [Also, Admin Commands?]) 2. I saw that you can create commands client and server sided. That confuses me a bit, in which cases do you create them server sided and in which are they client sided? 3. The Admin System is handled by a default script if I am not mistaken. Can I somehow add different Admin Levels there? 4. Should I try to change a default gamemode or give it a shot and try to create an own one? ( I did read the tutorial on creating gamemodes on the wiki but I would like to have everything explained step by step and I did still not totally understand the difference between the client and server sided scripts. ) Thanks in advance. Link to comment
qaisjp Posted September 30, 2011 Share Posted September 30, 2011 Client sided scripts, only exist for the client. They run on each and every player connected to the server's CLIENT. Server is done on the server, globally. The changes are generally seen by everyone on the server. Client sided commands can be done to execute stuff only for that one player, on that one players computer. Server sided are done by the server. Link to comment
Giovanni Posted September 30, 2011 Author Share Posted September 30, 2011 Client sided scripts, only exist for the client. They run on each and every player connected to the server's CLIENT.Server is done on the server, globally. The changes are generally seen by everyone on the server. Client sided commands can be done to execute stuff only for that one player, on that one players computer. Server sided are done by the server. So if I want to do an action on the player, which is clientsided, the command has to be clientsided as well? (For example a command that shows a GUI to a player [This function is client sided only if I am right] ? ) Link to comment
karlis Posted September 30, 2011 Share Posted September 30, 2011 yep, servers sided-only what you want protected and/or synced. ___ 1) check wiki, theres a gamemode example 3)https://wiki.multitheftauto.com/wiki/ACL 4)you better off first checking some scripts(for instance freeroam) and edit them. Link to comment
qaisjp Posted October 1, 2011 Share Posted October 1, 2011 Try some edits with basic resources from the community.Once you get a hang of it, you will find it fun and keep exploring. Link to comment
AGENT_STEELMEAT Posted October 1, 2011 Share Posted October 1, 2011 Everything should be done clientside, if it can be done clientside. The server should really only be there to sync, store, and manage data (accounts, admin stuff, element positions/variables, etc.) Use the element system (createElement, setElementData, getELementData) do your advantage. Link to comment
karlis Posted October 1, 2011 Share Posted October 1, 2011 however don't put in the client anything you don't trust the client. for example password management clientside is a nonono. Link to comment
qaisjp Posted October 2, 2011 Share Posted October 2, 2011 Try only putting the cosmetic stuff only clientside. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now