Jump to content

fortynigguh

Members
  • Posts

    13
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

fortynigguh's Achievements

Square

Square (6/54)

0

Reputation

  1. Hello @Egekan i dont think your code will work, because i dont see any exports to mysql dude. Maybe u didnt understand me, i mean i need changepw command for server who basing on MYSQL, Roleplay server. Anyone else can help me with that?
  2. Hello Community! I'm asking for help - idk how to make command, that changes player password, someething like chgmypass, but for roleplay server who basing on mysql database. PLEASE, CAN ANYONE HELP ME WITH THAT??????
  3. yupp i made this, but witta little friend help (he helped me witta functions)
  4. I made userpanel, with shop... I made a code for userpanel, to buy a map for cash, but map is just adding to queue.. Like map doesnt fit.. Im an amateur on lua code, so please help me sb -- Buy a next map // wolfeens function buyMap(thePlayer,mapName,command) if not PVP[thePlayer] then local account = getPlayerAccount(thePlayer) if not (isGuestAccount(account)) then local playerCash = tonumber(getAccountData(account,"cash")) if not (mapName == "") then if playerCash >= mapCost then if command then mapName = getMapName(mapName) else mapName = tostring(mapName) end if not mapTimer[mapName] then table.insert(mapQueue,mapName) local freeMaps = tonumber(getAccountData(account,"freeMaps")) if freeMaps ~= 0 then addStat(account,"freeMaps",-1) else setAccountData(account,"cash",playerCash - mapCost) end addStat(account,"buyedMaps",1) scoreboardRefresh(thePlayer) mapTimer[mapName] = true setTimer(resetMapTimer,900000,1,mapName) if #mapQueue == 1 then triggerEvent("onUseranelWantSetMap",getRootElement(),mapQueue[1]) end callClientFunction(thePlayer,"setFreeMapPurchase",getAccountData(account,"freeMaps")) unlockAchievement(thePlayer,18) unlockAchievement(thePlayer) showServerMsg(getRootElement(),"Map queue",getPlayerName(thePlayer).." #ffffffbought and add "..mapName.." to map queue") callClientFunction(getRootElement(),"updateMapQueueList",mapQueue) else showServerMsg(thePlayer,"Buy nextmap","#FFFFFFYou can't set this map now, wait some time to set!") end else showServerMsg(thePlayer,"Buy nextmap","#FFFFFFYou don't have enough money to set a map!") end else showServerMsg(thePlayer,"Buy nextmap","#FFFFFFPlease select a map from the list first!") end end else showServerMsg(thePlayer,"Buy nextmap","#FFFFFFYou can't buy maps because you're playing a PVP match now!") end end
  5. :~ sorry for disturbing again, now bout something other.. I made a code for userpanel, to buy a map for cash, but map is just adding to queue.. Like map doesnt fit.. I see you have big experience with lua, maybe you can help me with this error. Code -- Buy a next map // wolfeens function buyMap(thePlayer,mapName,command) if not PVP[thePlayer] then local account = getPlayerAccount(thePlayer) if not (isGuestAccount(account)) then local playerCash = tonumber(getAccountData(account,"cash")) if not (mapName == "") then if playerCash >= mapCost then if command then mapName = getMapName(mapName) else mapName = tostring(mapName) end if not mapTimer[mapName] then table.insert(mapQueue,mapName) local freeMaps = tonumber(getAccountData(account,"freeMaps")) if freeMaps ~= 0 then addStat(account,"freeMaps",-1) else setAccountData(account,"cash",playerCash - mapCost) end addStat(account,"buyedMaps",1) scoreboardRefresh(thePlayer) mapTimer[mapName] = true setTimer(resetMapTimer,900000,1,mapName) if #mapQueue == 1 then triggerEvent("onUseranelWantSetMap",getRootElement(),mapQueue[1]) end callClientFunction(thePlayer,"setFreeMapPurchase",getAccountData(account,"freeMaps")) unlockAchievement(thePlayer,18) unlockAchievement(thePlayer) showServerMsg(getRootElement(),"Map queue",getPlayerName(thePlayer).." #ffffffbought and add "..mapName.." to map queue") callClientFunction(getRootElement(),"updateMapQueueList",mapQueue) else showServerMsg(thePlayer,"Buy nextmap","#FFFFFFYou can't set this map now, wait some time to set!") end else showServerMsg(thePlayer,"Buy nextmap","#FFFFFFYou don't have enough money to set a map!") end else showServerMsg(thePlayer,"Buy nextmap","#FFFFFFPlease select a map from the list first!") end end else showServerMsg(thePlayer,"Buy nextmap","#FFFFFFYou can't buy maps because you're playing a PVP match now!") end end
  6. I tryed like this, but i need to reward player only on finishing marker. Like when he finishes race, 3rd for example. then math.random for reward....
  7. But this is possible to open this file successfully?
  8. Hello! I have a question, I've never done anything like that, but I'm interested in it.. Can i open and view registry.db or internal.db files?!! Some way, like .lua files. For this is some specific program? Help me please guys
  9. I need it dude. I made userpanel by myself and made rewards only for DD, i cant made same for race by hittin marker. Like 1st place more money, 2nd less, 3rd, less etc... Please help me dude, i will be very grateful
  10. Thanks but, can we do this like onPlayerBlip(when players takes finish blip) and then gradually awarding prizes (taking into account the players place) please help me someoneee
  11. Hi all! I have one problem, can you please help me to solve it? Can you please make me an function, for race server like.... Player drives a race and wins map, and server gives player money for victory with math.random (100-500$) i tried to make this by myself using this wiki page - https://wiki.multitheftauto.com/wiki/GivePlayerMoney but i failed Please MTA:SA Community, help me someone :(((
×
×
  • Create New...