Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/12/22 in all areas

  1. First off, you know. And if you have a match, you shouldn't have tried to cheat Don't be lying, you launched a known paid MTA hack (the biggest one until last week, when we finally patched it). You can call yourself extremely lucky to not be permabanned. This ban cannot be appealed, have a nice day
    1 point
  2. 1. go Admin folder 2. after that Open conf folder 3. after 2nd step open the messages.xml 4. replace lines 15-16 with this <all>$player has been banned$by_admin_4all. $data $data2 </all> <log>ADMIN: $admin has banned $player $data $data2</log> and lines 23-24 with this <all>$player has been muted$by_admin_4all. $data $data2 </all> <log>ADMIN: $admin has muted $player $data $data2</log> 5. save it 6. Try and enjoy it
    1 point
  3. Please visit the updated tutorial instead! In the modification on the server, there are multiple resources to make a server. There are many resources already shipped with MTA, however you may wish to edit or create some. Basic components of resources meta.xml file - States what needs to be loaded and other metadata scripts - What is the use of this resource, without scripts? Scripts do the action In this tutorial we will make a PM system. Let's think what we need to do, we need to make a command and attach that to the function. We need to manipulate who we are sending to and the text we are sending. First we need to make our resource folder, generally the resources folder is in in MTA 1.1, they support multiple sub-dir's so let's make a subfolder called "[TUT]". It can be anything you want, but this just makes the resources folder organised. Make sure it has '[' and ']'. Inside [TUT] make a folder called 'pm-system' - this will be our working directory and our main resource folder. Inside our folder, we create a file named 'meta.xml' and we need to type a few lines to make sure our resource is loaded correctly. Inside the meta file we will type this: <meta> <script src="script.lua" type="server"/> </meta> The first and third line is MANDATORY, meaning it must be there. The second line tells MTA to load our script (which we will soon make ahead of this tutorial) ' 'type="server"' - What side the script will operate on, can be server or client Making the script First we need to create a command handler and a function for it too function pmHandler() -- create function end addCommandHandler ( "pm", pmHandler ) -- attach handler to function When we do /pm nothing should happen, we need to add the target person and the text and also the output function pmHandler(player, _, to, text) -- create function. end addCommandHandler ( "pm", pmHandler ) -- attach handler to function player - the person who wrote the command to - the person we want to send the pm to text - the text function pmHandler(player, _, to, text) -- create function. local personToReceive = getPlayerFromName(to) -- We get the player from the name if personToReceive then-- if the person in the above line exists, then continue -- We send the messages! end end addCommandHandler ( "pm", pmHandler ) -- attach handler to function In the above code we are using getPlayerFromName to match the player by his name and we are checking if there is a player. function pmHandler(player, _, to, text) -- create function. local personToReceive = getPlayerFromName(to) -- We get the player from the name if personToReceive then-- if the person in the above line exists, then continue outputChatBox("PM --> #FFFFFF "..getPlayerName(personToReceive)..": ".. text, player, 255,0,0,true) outputChatBox("[PM] "..getPlayerName(player).."#FFFFFF: ".. text, personToReceive, 255,0,0,true) end end addCommandHandler ( "pm", pmHandler ) -- attach handler to function In the fourth line we tell the sender (John) we have sent it, we would get some sort of message when we type /pm qais hi PM --> Qais: hi and the receiver (Qais)gets [PM] John: hi If we type '/pm qais hi Qais this is doesnt work' we wont get the spaces, let's implement that. function pmHandler(player, _, to, ...) -- create function. local text = table.concat({...}," ") local personToReceive = getPlayerFromName(to) -- We get the player from the name if personToReceive then-- if the person in the above line exists, then continue outputChatBox("PM --> #FFFFFF "..getPlayerName(personToReceive)..": ".. text, player, 255,0,0,true) outputChatBox("[PM] "..getPlayerName(player).."#FFFFFF: ".. text, personToReceive, 255,0,0,true) end end addCommandHandler ( "pm", pmHandler ) -- attach handler to function (is it an abrupt ending)
    1 point
  4. simple tutorial how create random spawns as in sa-mp 1.We need coordinates local playerid = thePlayer -- playerid look much more better for me local SpawnPoints = 30 SpawnPointsX = { -2625.2864, -2623.2029, -2625.8347, -2677.5947, -2677.5938, -2687.0095, -2727.9255, -2725.1943, -2723.1816, -2789.8159, -2791.6599, -2791.6638, -2688.9690, -2621.7439, -2623.1860, -2319.5371, -2098.2395, -2068.0857, -1717.8177, -1850.6150, -1799.9431, -1998.1191, -1988.6193, -2208.0051, -2281.2798, -2281.4077, -2211.7302, -2175.2139, -2100.2197, -2116.7268 } SpawnPointsY = { -191.1071, -146.2787, -99.2910, -105.7311, -96.3309, -102.4076, -188.0582, -184.5052, -92.8682, 4.3873, 183.8500, 194.5688, 218.6564, 197.8280, 168.7803, 376.5272, 578.8318, 715.4632, 782.9799, 1017.6947, 1028.3041, 1204.3224, 1190.2186, 1117.3044, 1106.6957, 1089.3551, 1070.7418, 1056.3667, 974.9451, 900.9063, 925.3539 } SpawnPointsZ = { 7.2031, 7.2031, 7.2031, 7.2031, 7.2031, 7.2010, 7.2031, 7.2031, 7.2031, 7.2031, 10.0511, 10.0547, 7.8594, 7.2031, 7.1953, 6.1593, 31.2476, 69.5625, 71.8906, 17.5859, 46.0987, 25.1250, 45.4453, 54.4729, 80.0078, 80.2635, 81.5866, 80.0078, 80.0000, 76.7109, 86.0791 } When player connect to server: function Spawn(playerid) spawnPlayer ( playerid, 0.0,0.0,5.0) fadeCamera ( playerid,true) end function OnPlayerConnect(playerid) setTimer ( Spawn, 1500, 1, source) end addEventHandler ( "onPlayerJoin", getRootElement(), OnPlayerConnect ) and events death/spawn: function OnPlayerSpawn ( posX, posY, posZ, spawnRotation, theTeam, theSkin, theInterior, theDimension ) -- play a frontend sound for him playSoundFrontEnd ( source, 16 ) rand = randInt ( 1, 30 ) setElementPosition ( source, SpawnPointsX[rand], SpawnPointsY[rand], SpawnPointsZ[rand] + 1) end -- add the player_Spawn function as a handler for onPlayerSpawn addEventHandler ( "onPlayerSpawn", getRootElement(), OnPlayerSpawn ) function OnPlayerDeath ( ammo, attacker, weapon, bodypart ) setTimer ( Spawn, 1500, 1, source) end addEventHandler ( "onPlayerWasted", getRootElement(), OnPlayerDeath ) PS - Random spawns are around SFyou can change it PS 2 - It works
    1 point
  5. Not only did you use a paid hack for which each banned cheater gets a permanent ban without exception, you also made grand threats to the server owner (Avalin RPG, where you were cheating).. first claiming you made the hack (trying to appear more dangerous than you really are) and then threathening to do more harm, keep coming back, and sell the hack to his players. No, you won't be unbanned, let alone with that included. This ban cannot be appealed again @Mickthomi
    0 points
×
×
  • Create New...