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. 1
Completed Suggestions / Re: CnR event« on: October 02, 2020, 10:54:36 pm »
Added with some changes. Rewards will be cash, employment exp and group exp. All cops who helped deliver the cargo to LVPD will get those rewards, including the driver.
Criminals can try to stop the cargo but they won't get any rewards. 2
Scripting / Begin your journey with Lua!« on: September 30, 2020, 09:30:27 am »
Hello everyone, recently I've been receiving a few DM's about how to learn scripting etc..., so I decided to open this topic to maybe provide help to those who are willing to learn Lua and maybe push those who are just thinking about it and hesitating.
Part 1: First of all, I can't explain better than those links, so you should read them carefully before reading the next part of this topic: 1- https://wiki.multitheftauto.com/wiki/Scripting_Introduction 2- https://www.lua.org/manual/5.1/ 3- https://forum.mtasa.com/topic/34453-lua-tutorials-manuals/ After reading those links carefully, you should now know what 'debugging' is. Infact, debugging may help you fix the errors yourself 99% of the time, here is a link to know what debugging is: - https://wiki.multitheftauto.com/wiki/Debugging Now you can go ahead and save this link in your browser: https://wiki.multitheftauto.com/wiki/Main_Page The last link is the most important of all, it's where you'll be looking every time you are making something(a script). ------------------------------------------- Part 2: (Only read this if you totally understood/read Part 1) Now, you should have a general idea about scripting/Lua, so we'll be making a couple scripts to get you started with. We are gonna make a script which outputs "blabla logged in" whenever a player logs in, and another for when a player logs out. First things first, we are gonna go here(https://wiki.multitheftauto.com/wiki/Server_Scripting_Events) and look for an event that triggers when a player logs in, which is gonna be "onPlayerLogin". Let's go: Code: (Lua) [Select] function playerLogin() -- function name should always be camel case(this is only for Lua) For when a player logs out, we will need an event for that, we go to wiki and we will find "onPlayerLogout", let's go: Code: (Lua) [Select] function playerLogout() -- function name should always be camel case(this is only for Lua) Now let's make a script which will give a random player 50,000$ everytime you type /giverandomcash and output a message to the random player to inform him about the money. We go to the wiki(as always) and we search for a function to get a random player, which will be https://wiki.multitheftauto.com/wiki/GetRandomPlayer, and a function to give the player money, which will be https://wiki.multitheftauto.com/wiki/GivePlayerMoney, finally to inform we will use outputChatBox which we have seen earlier. Let's go! Code: (Lua) [Select] function giveRandomMoney(thePlayer, command) -------------------------------------- Part 3: Here are two tasks for you to test yourself! Task1: - Make a script which removes the player's head once he executes the command '/head', and give it back again when he executes the same command. Task 2: - Create a pickup and make it that when a player enters the pickup, he will get 1,000$ You can then post your work here, same if you face any errors/questions, and someone(or me) will hopefully answer you 3
Completed Suggestions / Re: Add AT-400 and Andromeda« on: September 29, 2020, 09:57:19 am »
Added, trolling with these planes will result in a punishment.
4
L1. Department of Defense / Re: Department of Defense - Chat and Media« on: September 26, 2020, 08:01:54 pm »![]() 5
Completed Suggestions / Re: Disable Tear Gas« on: September 26, 2020, 07:18:44 am »
is this still a problem after the cooldown update?
7
Completed Suggestions / Re: Cooldown tear gas« on: September 19, 2020, 04:39:39 am »We can make it for all the explosives.I agree with you, 5 seconds cooldown for all projectiles is reasonable. Spamming teargas/molotoves etc.. can be annoying and can indeed ruin the fights. 8
Completed Suggestions / Re: Adding a weekly event Called (Black Market)« on: September 07, 2020, 01:25:47 am »
Added with some changes.
9
Completed Suggestions / Re: Adding a weekly event Called (Black Market)« on: September 02, 2020, 07:21:36 pm »
Idea seems good. Just wanted to ask for how long is this van supposed to last, the whole day(24 hours) or just for a few hours?
10
Account Retrieval / Account Recovery - Remaked« on: September 02, 2020, 01:34:19 pm »
Account name: Remaked
Account serial:B008A0DC10E7F8AA1FD2AF0FCB762BF4 Any additional info: - 11
The Landfill / Re: jobs balancing« on: July 13, 2017, 03:56:15 pm »
And can I ask you what's your level? @Steven
12
Resolved Complaints / [VAILD]Complaint - [GSF]Rustard and [GSF]RXXXDXXXR« on: July 07, 2017, 09:20:32 am »
Ingame Name: Remaked
Forum Name: Remaked Serial: B008A0DC10E7F8AA1FD2AF0FCB762BF4 Name of player you're complaining against: [GSF]Rustard(accname: Bata) / [GSF]RXXXDXXXR(accname: Hidden). What rule have they broken: Random DM. Date/Time the rule was broken: Just now. Evidence of them breaking a rule: Album NOTE: Check local chat and how they are spamming, if that's punishable I wouldn't mind muting them as well, thanks in advance. 13
The Landfill / RE: New Head Staffs« on: May 10, 2017, 01:17:52 pm »
I'm kinda late but congratulations anyway
14
Tunisian Board / Re: Tunisia - Members List [ READ ME ! ]« on: March 11, 2017, 02:34:08 pm »Quote from: 'Hiccup link' dateline='1488231344' . el rank:Senior Community Rank Mrigel @Hiccup 15
Egyptian Board / Re: El A3'any el betesma3ha delwa2ty« on: February 26, 2017, 01:44:53 pm »Spoiler: show |