Jump to content

Saml1er

Retired Staff
  • Posts

    1,058
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Saml1er

  1. @Samking -- if you remove this line with "local" keyword, these -- functions will be visible to other files in the resource. -- Currently, you can only use them within this file only. local isPlayerInGroup, giveCash local function giveCashCommand (player) if isPlayerInGroup (player, "VIP") then giveCash (player) else outputChatBox ("You are not in the VIP group", player) end end addCommandHandler("givemecash", giveCashCommand) function giveCash (player) givePlayerMoney(player,99999999) outputChatBox ("$---------------------------------------------------------------------------------------------$",root,0, 255, 0,true) outputChatBox ("The player'"..getPlayerName(player).."' is extremely rich now because he ",root,250, 255, 0,true) outputChatBox (" Has received 99m$ ", root,0, 255, 221,true) outputChatBox ("$---------------------------------------------------------------------------------------------$",root,0, 255, 0,true) end function isPlayerInGroup (player, group) local playerAccount = getPlayerAccount ( thePlayer ) if playerAccount then local accName = getAccountName ( playerAccount ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( group ) ) then -- the player is in the group, return true return true end end -- the player is not in the group, return false return false end I haven't tested the code, but I quickly came up with this.
  2. Try to put some code together, when you do that, post it here, and we'll help. You'll need: isObjectInACLGroup
  3. you can access it if you download the latest nightly from nightly.multitheftauto.com
  4. Saml1er

    MTA crash, help.

    MTA does not allow custom DLLs. It's probably going to crash it.
  5. Looks like a manual ban to me. You probably did something uncool ¯\_(ツ)_/¯
  6. RIFLE_fire_poor RIFLE_fire RIFLE_load These three animations are partial, you cannot replace them. For more info, read: https://wiki.multitheftauto.com/wiki/EngineReplaceAnimation @delta1337
  7. can you please give me the names of animations that you are trying to replace?
  8. fetchRemote(loginURL['login'], formOptions, function(data, info, client) -- and this if info.statusCode == 200 then local fetchData = fromJSON(data) local errorCode = tonumber(fetchData['response_code']) if errorCode ~= 0 then triggerClientEvent(client, 'client:onClientLoginFail', client, authErrors[errorCode]) triggerEvent('server:onClientLoginFail', client, authErrors[errorCode]) else setElementData(client, 'account:id', tonumber(fetchData['account']['id'])) setElementData(client, 'account:username', tostring(fetchData['account']['username'])) end end end, "", false, client -- this )
  9. You have to use : triggerClientEvent triggerServerEvent If you're still not sure how to do it, check this resource.
  10. Looks like ASI loaders won't work with MTA, I just tested it. You can do one more thing, instead of loading the DLL as .asi, you can simply rename it to .dll, then inject the dll using MTA's code (check Client Core project in mtasa-blue). The limit adjuster you downloaded, it comes with source code, you have to modify it which is not going to be easy. I use discord (saml1er#8752), but I can only give you tips, which is the maximum amount of help you can get from me.
  11. You cannot use fastman92's limit adjuster in MTA because it will place certain hooks on function which MTA is using. It's simply not compatible with MTA. If you want to make it work, you have to rewrite the limit adjuster for MTA (source code is available to public though), which is probably not what you are looking for.
  12. Saml1er

    Error in my MTA

    Have you tried deleting all resources within <Drive Letter>:\Program Files (x86)\MTA San Andreas 1.5\mods\deathmatch\resources?
  13. ASI loaders usually modify vorbis.dll or vorbisFile.dll of GTA:SA, so you probably want to disable that check. I'm not sure, but to me it looks like this is what you would want to disable: https://github.com/multitheftauto/mtasa-blue/blob/6622c6716cbd0bc2ae5c2826cd45fff3ebb48ed5/Client/loader/CExePatchedStatus.cpp#L537 return false within the function, like this: bool GetPatchRequirementAltModules(void) { return false; }
  14. It's not possible in MTA. You can only play one animation at a time using setPedAnimation. However, you can create your own animation in 3DS max and make the player talk and move at the same time in that animation.
  15. Saml1er

    Please Help

    Have you ever use KAMs script for 3ds Max? I found a tutorial on youtube, might be what you're looking for.
  16. You can check this for .asi files: https://github.com/multitheftauto/mtasa-blue/blob/6622c6716cbd0bc2ae5c2826cd45fff3ebb48ed5/Client/loader/MainFunctions.cpp#L906 Most of your questions will be answered if you simply search through the repository on github.
  17. Which object exactly are you talking about? If you don't mind, can you send me a code snippet via PM? I'm already working on a project related to MTA where I properly implement new features, I might take a look at effects. : )
  18. Yes, take a look at the loop parameter (5th one). bool setPedAnimation ( ped thePed [, string block=nil, string anim=nil, int time=-1, bool loop=true, bool updatePosition=true, bool interruptable=true, bool freezeLastFrame=true, int blendTime=250] ) No, it's not possible. You're right, you'll need to edit the .dat file which MTA does not allow.
  19. You can check ifp_demo resource where animations are synced. Simply start the resource, and play the animations via the GUI, other players within the same server should see your animation.
  20. Saml1er

    MTA SA never starts

    Do you have custom mods installed?
  21. You are getting kicked by the Anti-Cheat module of MTA. There's a virus on your computer which is probably executing some harmful code on your machine, you can check: If you are still unable to resolve this issue, you can do a system restore (google it if you don't know how it's done). If system restore is not possible, then your last resort is to create a backup of your data files, wipe your HDD, reinstall windows with a good antivirus (AVG will do) which will obviously work, but it's just very painful. First see if you can do system restore.
  22. Do you the error when joining any server or just @Dutchman101 's server?
  23. Saml1er

    Mta never starts

    I think it's a good habit to share how you solved a problem, so people who come here seeking help for the same problem can read your post and save time.
  24. CL30 means that data files within your GTA:SA installation directory are modified, this can happen if you have installed mods or your computer is infected with viruses. The solution is to first scan your computer for viruses and get rid of them, you can download malware bytes from here for free. First make sure that you have a fresh copy of the game, you can then delete all GTA:SA files from its installation directory (normally located at C:\Program Files (x86)\Rockstar Games\GTA San Andreas), then reinstall GTA:SA.
×
×
  • Create New...