- 
                
Posts
100 - 
                
Joined
 - 
                
Last visited
 
Everything posted by E-mail
- 
	Hi all see The error! server.lua :55 attempt to prefor arithmectic on a nill value addEventHandler("onPlayerLogin",getRootElement(), function () local account = getPlayerAccount(source) local kills = getAccountData(account,"kills") local deaths = getAccountData(account,"deaths") local headshots = getAccountData(account,"headshots") if not kills then setAccountData(account,"kills",0) end if not deaths then setAccountData(account,"deaths",0) end if not headshots then setAccountData(account,"headshots",0) end end) addEventHandler("onPlayerJoin",root, function () bindKey(source,"F3","down",getPlayerStats) end) addEventHandler("onResourceStart",resourceRoot, function () for index, player in pairs(getElementsByType("player")) do bindKey(player,"F3","down",getPlayerStats) end end) function updatePlayerStats(ammo, attacker, weapon, bodypart) updateAccountData(getPlayerAccount(source), "deaths", 1) if attacker or attacker == source then local account = getPlayerAccount(attacker) if account and attacker and getElementType(attacker) == "player" then updateAccountData(account, "kills", 1) if bodypart == 9 then updateAccountData(account, "headshots", 1) end end end end addEventHandler("onPlayerWasted",getRootElement(),updatePlayerStats) function getPlayerStats(thePlayer) local account = getPlayerAccount(thePlayer) if not isGuestAccount(account) then local kills = getAccountData(account,"kills") or 0 local headshots = getAccountData(account,"headshots") or 0 local deaths = getAccountData(account,"deaths") or 0 local ratio = string.format("%.2f", kills / deaths) outputChatBox("[sTATS]".. getPlayerName(thePlayer) .."'s Stats: Kills: ".. tostring(kills) .." (".. tostring(headshots) .." Headshots), ".. tostring(deaths) .." Deaths, Ratio: ".. tostring(ratio).."", getRootElement(), 255, 255, 0) else outputChatBox("[sTATS] You must be logged in able to see your stats.",thePlayer,255,0,0) end end addCommandHandler("stats",getPlayerStats) function updateAccountData(account, dataName, toUpdate) if account then local oldData = getAccountData(account,dataName) setAccountData(account,tostring(dataName),tonumber(oldData)+tonumber(toUpdate)) end end
 - 
	JR10 Sorry I made you tire me see function rewardOnWasted ( killer ) local exp = getElementData(killer,"exp") if exp then setElementData(killer,"exp",tonumber(getElementData(killer,"exp"))+5) outputChatBox("Experience gained +5! total ".. tonumber(exp)+5,killer,255,255,0) triggerClientEvent ( killer , "playSound" , killer ) else setElementData(killer,"exp",5) triggerClientEvent ( killer , "playSound" , killer ) exports.scoreboard:addScoreboardColumn("exp") end end addEventHandler ( "onPlayerWasted", getRootElement(), rewardOnWasted ) By the way you and soldSnake14 are the Best best assistants in in section
 - 
	Like This ? function rewardOnWasted ( killer ) local exp = getElementData(killer,"exp") if exp then setElementData(killer,"exp",tonumber(getElementData(killer,"exp"))+3) outputChatBox("Experience gained +3! total ".. tonumber(exp)+5,killer,255,255,0) triggerClientEvent ( killer , "playSound" , killer ) else setElementData(killer,"exp",3) triggerClientEvent ( killer , "playSound" , killer ) exports.scoreboard:addScoreboardColumn("exp") end end addEventHandler ( "onPlayerWasted", getRootElement(), rewardOnWasted )
 - 
	Thx For Help JR10 but where is addscorebordCloum exp ?
 - 
	Hi all i need to add scorebord cloun [Exp] and every exp update play sound levelup.mp3 1.function rewardOnWasted ( killer ) 2.local exp = getElementData(killer,"exp") 3.if exp then 4.setElementData(killer,"exp",tonumber(getElementData(killer,"exp"))+5) 5.outputChatBox("Experience gained +5! total ".. tonumber(exp)+5,killer,0,255,0) 6.else 7.setElementData(killer,"exp",5) 8. end 9.end 10.addEvent("onPlayerWasted",true) 11.addEventHandler ( "onPlayerWasted", getRootElement(), rewardOnWasted )
 - 
	https://wiki.multitheftauto.com/wiki/CreateBlip
 - 
	hi i have take this glitch script from aad gamemode Please Fix the bugs {"aad.fastfire",get("aad.fastfire")},{"aad.quickreload",get("aad.quickreload")}, {"aad.fastmove",get("aad.fastmove")} setGlitchEnabled ( "quickreload", get("aad.quickreload") ) setGlitchEnabled ( "fastmove", get("aad.fastmove") ) setGlitchEnabled ( "fastfire", get("aad.fastfire") )
 - 
	JR10 i need the Bullets auto reload Like this video https://www.youtube.com/watch?v=ECS0OdyZ ... re=related
 - 
	see function givePlayerWeapons ( thePlayer, commandName ) giveWeapon ( thePlayer, 2, 200 ) setPedWeaponSlot ( thePlayer, math.random ( 2, 200) ) end addCommandHandler ( "giveweapons", givePlayerWeapons ) function resourceStart () setGlitchEnabled ( "quickreload", true ) setGlitchEnabled ( "fastmove", true ) setGlitchEnabled ( "fastfire", true ) setGlitchEnabled ( "crouchbug", true ) end addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart ?
 - 
	Thx For Help me JR10 see the bug lua :14:')expected near ,
 - 
	Help ! error in script see Please Fix Bad argument @ ,addCommandHandler ,[Expected function at argument 2 , got nill]
 - 
	if you use bind key for show the gui use unbind key to hide the gui 3.shopWindow = guiCreateWindow(367,105,334,435,"Shop MOJRM-511",false) 4.guiSetVisible (shopWindow, false) 5.guiSetAlpha(shopWindow,1) 6.guiWindowSetSizable(shopWindow,false) 7.tabPanel = guiCreateTabPanel(11,23,314,372,false,shopWindow) 8.tab = guiCreateTab("weapons",tabPanel) 9.weapButton = guiCreateButton(107,308,100,29,"Buy Weapon",false,tab) 10.bindKey(p,"f2","down","shopWindow") 11.unbindKey ( p,"f2","down","shopWindow" ) iam x[Dev-PoinT]x Nice you want to be a scripter lol
 - 
	Hi all iam makeing Glith script for BaseMode Players! i have error in script [ClientSide] function xxx ( thePlayer, commandName ) giveWeapon ( thePlayer, 2, 200 ) setPedWeaponSlot ( thePlayer, math.random ( 2, 200) ) end addCommandHandler ( "giveweapons", givePlayerWeapons ) i want the Ped weapon Degal and 200 Amoo [serverSide] function resourceStart () setGlitchEnabled ( "quickreload", true ) setGlitchEnabled ( "fastmove", true ) setGlitchEnabled ( "fastfire", true ) setGlitchEnabled ( "crouchbug", true ) end addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart )
 - 
	Thank you very much working, thanks to you! I want to ask you a small service can you make /top5 show on chat the top 5 Players Made it for me if I would be grateful to you Thx
 - 
	/debugscript show attempt to perform arithmetic on a nill value ?
 - 
	one last Help Please if Playr press key F7 and he not login outPutChatBox("Please Login to see your stats !")255,255,0 Please add it to script
 - 
	i dont want it /stats show stats can you set it bing key F7 show stats Please so i can test it
 - 
	This is the original topic viewtopic.php?f=91&t=34834
 - 
	Hi all i have tested soldsnake14 Stats system it dont count kills see 1.addEventHandler("onPlayerLogin",getRootElement(), 2.function () 3. local account = getPlayerAccount(source) 4. local kills = getAccountData(account,"kills") 5. local deaths = getAccountData(account,"deaths") 6. local headshots = getAccountData(account,"headshots") 7. if not kills then setAccountData(account,"kills",0) end 8. if not deaths then setAccountData(account,"deaths",0) end 9. if not headshots then setAccountData(account,"headshots",0) end 10.end) 11. 12.function updatePlayerStats(ammo, attacker, weapon, bodypart) 13. local account = getPlayerAccount(attacker) 14. if account then 15. local kills = getAccountData(account,"kills") 16. local headshots = getAccountData(account,"headshots") 17. setAccountData(account,"kills",kills+1) 18. if bodypart == 9 then 19. setAccountData(account,"headshots",headshots+1) 20. end 21. end 22. if not attacker or attacker == source then return end 23. local accountS = getPlayerAccount(source) 24. if accountS then 25. local deaths = getAccountData(accountS,"deaths") 26. setAccountData(accountS,"deaths",deaths+1) 27. end 28. end 29.end 30.addEventHandler("onPlayerWasted",getRootElement(),updatePlayerStats) 31. 32.function getPlayerStats(thePlayer) 33. local account = getPlayerAccount(thePlayer) 34. if account then 35. local kills = getAccountData(account,"kills") or 0 36. local headshots = getAccountData(account,"headshots") or 0 37. local deaths = getAccountData(account,"deaths") or 0 38. local ratio = string.format("%.2f", kills / deaths) 39. outputChatBox("[sTATS]".. getPlayerName(thePlayer) .."'s Stats: Kills: ".. tostring(kills) .." (".. tostring(headshots) .." Headshots), ".. tostring(deaths) .." Deaths, Ratio: ".. tostring(ratio).."", getRootElement(), 255, 255, 0) 40. end 41.end 42.addCommandHandler("stats",getPlayerStats)
 - 
	Hi i want Glitch Script Player can shot 7 shots in 1 Time function resourceStart () setGlitchEnabled ( "quickreload", true ) setGlitchEnabled ( "fastmove", true ) setGlitchEnabled ( "fastfire", true ) setGlitchEnabled ( "crouchbug", true ) end addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart ) setPedWeaponSlot ( thePlayer, math.random ( 2, 12) ?
 - 
	Hi i have made TapPanel But i need to add bind key F3 to open and close Please Help any one! local myWindow = guiCreateWindow ( 0, 0, 0.5, 0.4, "Information", true ) local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) local tabMap = guiCreateTab( "information", tabPanel ) local tabHelp = guiCreateTab( "Need Help?", tabPanel ) guiCreateLabel(0.02,0.04,0.94,0.2,"This server By|x[Dev-PoinT]x",true,tabMap) guiCreateLabel(0.02,0.04,0.94,0.92,"Email:[email protected]",true,tabHelp)
 - 
	Thx JR10 Thank you very much You are the best person in the Forum Assistant I wish you success in the future Nice to have someone Like you
 - 
	Hi all the script works fine but i want it Disappear After 10 sec.... The Code ! local rootElement = getRootElement() local screenWidth,screenHeight = guiGetScreenSize() function renderDisplay ( ) local seconds = getTickCount() / 1000 local angle = math.sin(seconds) * 80 dxDrawImage ( screenWidth/2 - 50, 0, 642, 204, 'b_logo.png', angle, 0, -120 ) end function HandleTheRendering ( ) addEventHandler("onClientRender",rootElement, renderDisplay) end addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering)
 - 
	Hi all This is Afk For Race only !! i need to make it for BaseMode! He se if Player not move give him slap with img adn outputChatBox "(YoU Are AFK You weel get slaped in ...") local MaxAFKtime = 30 local warnTime = 20 local v = 0 local AFKtime = 0 local sx,sy = guiGetScreenSize() local wEvent = false function rWarn() dxDrawImage( sx/2 - 300, sy/2 - 100, 600, 200, 'warn.png' ) end function stopWarn() if(wEvent) then removeEventHandler("onClientRender", getRootElement(), rWarn) wEvent = false end end function checkMain() if isPedInVehicle ( getLocalPlayer() ) then v = getElementVelocity ( getPedOccupiedVehicle ( getLocalPlayer() ) ) if(v == 0) then aTimeAdd() else aTimeClear() end end end function aTimeAdd() AFKtime = AFKtime + 0.1 local isFinished = getElementData ( getLocalPlayer(), "race.finished") if(isVehicleFrozen ( getPedOccupiedVehicle ( getLocalPlayer() )) and isFinished == false) then aTimeClear() end if(AFKtime >= MaxAFKtime) then AFKtime = 0 triggerServerEvent ( "afkSlap", getLocalPlayer()) stopWarn() triggerServerEvent ( "afkWarn", getLocalPlayer(), 1) elseif(AFKtime == warnTime) then triggerServerEvent ( "afkWarn", getLocalPlayer(), 2) if(not wEvent) then addEventHandler("onClientRender", getRootElement(), rWarn) wEvent = true end end end function aTimeClear() AFKtime = 0 end setTimer ( checkMain, 100, -1) function onClientLoaded(res) triggerServerEvent("onClientLoaded",getLocalPlayer()) end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),onClientLoaded) function loadSettings(maxtime, wtime ) MaxAFKtime = tonumber(maxtime) warnTime = tonumber(wtime) end addEvent( "onSettingsReady", true ) addEventHandler( "onSettingsReady", getRootElement(), loadSettings ) local raceState = "" local enableMessages = true local messageColor = "#FF5555" function afkMsg(mtype) if(getResourceState ( getResourceFromName("race") ) == "running") then local isFinished = call(getResourceFromName("race"), "isPlayerFinished", source) if(not isFinished and raceState == "Running") then if(enableMessages) then if(mtype == 1) then outputChatBox(messageColor.."* "..getPlayerName(source)..messageColor.." has been killed by Anti-AFK.", getRootElement(), 255,100,100, true) elseif(mtype == 2) then outputChatBox(messageColor.."* You are AFK and you will be killed after 10 seconds!", source, 255,100,100, true) end end end end end addEvent( "afkWarn", true ) addEventHandler( "afkWarn", getRootElement(), afkMsg) function afkKill() if(getResourceState ( getResourceFromName("race") ) == "running") then local isFinished = call(getResourceFromName("race"), "isPlayerFinished", source) if(not isFinished and raceState == "Running") then setElementHealth(source, 0) end end end addEvent( "afkSlap", true ) addEventHandler( "afkSlap", getRootElement(), afkKill) function changeRaceState(newStateName) raceState = newStateName end addEvent("onRaceStateChanging", true) addEventHandler( "onRaceStateChanging", getRootElement(), changeRaceState) function clientLoaded() local msgenable = get( "msgenable" ) local msgcol = get( "msgcolor" ) if(msgenable) then if(msgenable == "true") then enableMessages = true else enableMessages = false end if(msgcol) then messageColor = msgcol end end local maxtime = get( "maxafktime" ) local wtime = get( "warnTime" ) triggerClientEvent ( "onSettingsReady", getRootElement(), maxtime, wtime) end addEvent("onClientLoaded", true) addEventHandler( "onClientLoaded", getRootElement(), clientLoaded) "DrCrazy" name="AFK-detection script" type="misc" version="0.0.5" />
 - 
	Hi all see the Pic The Crash inFo !! Version = 1.1-release-3055.0.000 Time = Thu Aug 25 04:50:22 2011 Module = C:\Program Files\MTA San Andreas 1.1\mta\core.dll Code = 0xC0000005 Offset = 0x0001D84F EAX=00000000 EBX=6E7A2A8C ECX=0022E214 EDX=00000003 ESI=03418254 EDI=03418250 EBP=0337E658 ESP=0022E1F4 EIP=030ED84F FLG=00210206 CS=001B DS=0023 SS=0023 ES=0023 FS=003B GS=0000
 
