-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
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? -.-
-
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)
-
also there an other way by check if is has permission to command kick ....
-
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)
-
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
-
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
-
This explains why he don't know how to add outputChatBox to show player name that taking the Pickup
-
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()
-
addEventHandler( "onClientResourceStart", getResourceRootElement(), gui ) addEventHandler( "onClientPlayerJoin", getLocalPlayer(), gui ) The first event should do the job, remove the second
-
should be outputChatBox("Health_Pickup|By[xiGooglex]",root,255,255,0)
-
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?
-
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
-
some one can told me what is hell this?
-
http://bugs.mtasa.com/view.php?id=4457
-
again First try by yourself and if you got problem put your code there and we will help you
-
https://wiki.multitheftauto.com/wiki/CreateTeam https://wiki.multitheftauto.com/wiki/IsObjectInACLGroup https://wiki.multitheftauto.com/wiki/SetPlayerTeam https://wiki.multitheftauto.com/wiki/OnPlayerLogin
-
function bindKeyF2 () if (getTeamName(getPlayerTeam(getLocalPlayer()) == "Traders") then guiSetVisible(traderJPanel, true) end end bindKey ("F2", "down", bindKeyF2)
-
you make it? or you just take it from community ? https://community.multitheftauto.com/ind ... ls&id=1283
-
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?
-
make sure the filepath of the txd file are not wrong and make sure it's added on meta.xml dfk = engineLoadTXD ( "lossantosroads.txd" )
-
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" />
-
Delux Host: cheap, reliable and safe game server hosting
TAPL replied to DeluxHost's topic in Hosting solutions
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 -
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