Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. this is better code tab1 = guiCreateTab("Info",tabPanel) playerMoneyLabel = guiCreateLabel(8,137,320,18,"Your Money: "..getPlayerMoney(localPlayer).." ",false,tab1) guiLabelSetColor(playerMoneyLabel,255,255,0) guiLabelSetVerticalAlign(playerMoneyLabel,"top") guiLabelSetHorizontalAlign(playerMoneyLabel,"left",false) playerPingLabel = guiCreateLabel(8,165,320,18,"Your Ping:"..getPlayerPing(localPlayer).." ",false,tab1) guiLabelSetColor(playerPingLabel,255,255,0) playerIPLabel = guiCreateLabel(8,190,320,18,"Your IP: "..getElementData(localPlayer,"ips").." ",false,tab1) guiLabelSetColor(playerIPLabel,255,255,0) playerSrLabel = guiCreateLabel(8,211,320,18,"Your Serial: "..getPlayerSerial(localPlayer).." ",false,tab1) guiLabelSetColor(playerSrLabel,255,255,0) addEventHandler("onPlayerJoin",root, function() ips = getPlayerIP(source) setElementData(source,"ips",ips) end) ^^ also you will need a function to keep the money and ping updated... You're welcome EDIT: i didn't notice that getPlayerSerial is also can be client , it's add client side in 1.1 right? -.-
  2. tab1 = guiCreateTab("Info",tabPanel) playerMoneyLabel = guiCreateLabel(8,137,320,18,"Your Money: "..getElementData(localPlayer,"money").." ",false,tab1) guiLabelSetColor(playerMoneyLabel,255,255,0) guiLabelSetVerticalAlign(playerMoneyLabel,"top") guiLabelSetHorizontalAlign(playerMoneyLabel,"left",false) playerPingLabel = guiCreateLabel(8,165,320,18,"Your Ping:"..getElementData(localPlayer,"ping").." ",false,tab1) guiLabelSetColor(playerPingLabel,255,255,0) playerIPLabel = guiCreateLabel(8,190,320,18,"Your IP: "..getElementData(localPlayer,"ips").." ",false,tab1) guiLabelSetColor(playerIPLabel,255,255,0) playerSrLabel = guiCreateLabel(8,211,320,18,"Your Serial: "..getElementData(localPlayer,"srs").." ",false,tab1) guiLabelSetColor(playerSrLabel,255,255,0)
  3. TAPL

    If admin join

    also there an other way by check if is has permission to command kick ....
  4. function showLoginWindow() createLoginWindow() outputChatBox("DEBUG 1 PASSED") if (guiGetVisible(wdwLogin) == false) then guiSetVisible(wdwLogin, true) showCursor(true) guiSetInputEnabled(true) else outputChatBox("An unexpected error has occured and the login GUI could not be created.") end end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), showLoginWindow)
  5. TAPL

    MTA:SA 1.1.1 Released!

    Replace skin models has bug too when i start the resource, the skin replaced but if i stop the resource and change the skin to any other skin and than again back to Previous skin, MTA crash
  6. TAPL

    MTA:SA 1.1.1 Released!

    Replace weapon models has bug when i start the resource, the weapon replaced but if i stop the resource and change the weapon to another weapon and than again back to Previous Weapon the weapon become hidden and i can shot with it LOL and can run with it too ! it's Sniper lol
  7. This explains why he don't know how to add outputChatBox to show player name that taking the Pickup
  8. local CrouchImg = guiCreateStaticImage ( 0.005, 0.74, 0.055, 0.075, "2.png", true) local WeapSts = 0 function ACB_onClientPlayerWeaponFireFunction( ) if WeapSts == 0 then WeapSts = 1 toggleControl ( "crouch",false ) toggleControl ( "sprint",false ) guiStaticImageLoadImage ( CrouchImg,"1.png" ) setTimer ( ACB_Timer, 425,1 ) end end addEventHandler ( "onClientPlayerWeaponFire", getRootElement(), ACB_onClientPlayerWeaponFireFunction ) function ACB_Timer() toggleControl ( "crouch",true ) toggleControl ( "sprint",true ) guiStaticImageLoadImage ( CrouchImg, "2.png" ) WeapSts = 0 end on the event i think you maybe should use getLocalPlayer() Instead getRootElement()
  9. addEventHandler( "onClientResourceStart", getResourceRootElement(), gui ) addEventHandler( "onClientPlayerJoin", getLocalPlayer(), gui ) The first event should do the job, remove the second
  10. should be outputChatBox("Health_Pickup|By[xiGooglex]",root,255,255,0)
  11. who insult who? also I didn't ask you to speak to me in Arabic who is the noob? mutch? who need to learn English?
  12. i know what he is trying to do also you can't see or what? triggerServerEvent ( "event", localPlayer ,weapButton ) he do trigger but he was just copy past the code from JR10 also he open new topic for same thing -.- viewtopic.php?f=91&t=35860
  13. http://bugs.mtasa.com/view.php?id=4457
  14. again First try by yourself and if you got problem put your code there and we will help you
  15. TAPL

    If admin join

    https://wiki.multitheftauto.com/wiki/CreateTeam https://wiki.multitheftauto.com/wiki/IsObjectInACLGroup https://wiki.multitheftauto.com/wiki/SetPlayerTeam https://wiki.multitheftauto.com/wiki/OnPlayerLogin
  16. function bindKeyF2 () if (getTeamName(getPlayerTeam(getLocalPlayer()) == "Traders") then guiSetVisible(traderJPanel, true) end end bindKey ("F2", "down", bindKeyF2)
  17. you make it? or you just take it from community ? https://community.multitheftauto.com/ind ... ls&id=1283
  18. waaaaaaaa omg omg omg omg omg omg omg omg omg omg omg omg omg omg omg omg omg omg omg omg omg omg Please say this not my Script Client-side Please lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol lol edit: Seriously what do you think this client do?
  19. make sure the filepath of the txd file are not wrong and make sure it's added on meta.xml dfk = engineLoadTXD ( "lossantosroads.txd" )
  20. Part of the Default acl are missing "Default"> "general.ModifyOtherObjects" access="false"/> "general.http" access="false"/> "command.start" access="false"/> "command.stop" access="false"/> "command.stopall" access="false"/> "command.gamemode" access="false"/> "command.changemode" access="false"/> "command.changemap" access="false"/> "command.stopmode" access="false"/> "command.stopmap" access="false"/> "command.skipmap" access="false"/> "command.restart" access="false"/> "command.refresh" access="false"/> "command.refreshall" access="false"/> "command.addaccount" access="false"/> "command.delaccount" access="false"/> "command.debugscript" access="false"/> "command.chgpass" access="false"/> "command.loadmodule" access="false"/> "command.upgrade" access="false"/> "command.mute" access="false"/> "command.crun" access="false"/> "command.srun" access="false"/> "command.run" access="false"/> "command.unmute" access="false"/> "command.kick" access="false"/> "command.ban" access="false"/> "command.banip" access="false"/> "command.unbanip" access="false"/> "command.shutdown" access="false"/> "command.install" access="false"/> "command.aexec" access="false"/> "command.whois" access="false"/> "command.whowas" access="false"/> "function.executeCommandHandler" access="false"/> "function.setPlayerMuted" access="false"/> "function.addAccount" access="false"/> "function.addBan" access="false"/> "function.removeBan" access="false"/> "function.removeAccount" access="false"/> "function.setAccountPassword" access="false"/> "function.kickPlayer" access="false"/> "function.banIP" access="false"/> "function.banPlayer" access="false"/> "function.banSerial" access="false"/> "function.getBansXML" access="false"/> "function.unbanIP" access="false"/> "function.unbanSerial" access="false"/> "function.getClientIP" access="false"/> "function.setServerPassword" access="false"/> "function.getServerPassword" access="false"/> "function.callRemote" access="false"/> "function.startResource" access="false"/> "function.stopResource" access="false"/> "function.restartResource" access="false"/> "function.createResource" access="false"/> "function.copyResource" access="false"/> "function.addResourceMap" access="false"/> "function.addResourceConfig" access="false"/> "function.removeResourceFile" access="false"/> "function.setResourceDefaultSetting" access="false"/> "function.removeResourceDefaultSetting" access="false"/> "function.redirectPlayer" access="false"/> "function.aclReload" access="false"/> "function.aclSave" access="false"/> "function.aclCreate" access="false"/> "function.aclDestroy" access="false"/> "function.aclSetRight" access="false"/> "function.aclRemoveRight" access="false"/> "function.aclCreateGroup" access="false"/> "function.aclDestroyGroup" access="false"/> "function.aclGroupAddACL" access="false"/> "function.aclGroupRemoveACL" access="false"/> "function.aclGroupAddObject" access="false"/> "function.aclGroupRemoveObject" access="false"/> "function.refreshResources" access="false"/> "function.setServerConfigSetting" access="false" />
  21. lol it's not your-server.de they have from multiple hosts 1- http://www.hetzner.de 2- http://www.hosteurope.de 3- http://www.strato.de 4- http://www.djabit.de
  22. Server-Side function resourceStart () setGlitchEnabled ( "quickreload", true ) setGlitchEnabled ( "fastmove", true ) setGlitchEnabled ( "fastfire", true ) setGlitchEnabled ( "crouchbug", true ) end addEventHandler ( "onResourceStart", getResourceRootElement(), resourceStart ) function resourceStop () setGlitchEnabled ( "quickreload", false ) setGlitchEnabled ( "fastmove", false ) setGlitchEnabled ( "fastfire", false ) setGlitchEnabled ( "crouchbug", false ) end addEventHandler ( "onResourceStop", getResourceRootElement(), resourceStop ) Meta
  23. TAPL

    Crash MTA 1.1

    ????????????
  24. TAPL

    Crash MTA 1.1

    any update will comming soon?
×
×
  • Create New...