
Hell-Mate
Members-
Posts
198 -
Joined
-
Last visited
Everything posted by Hell-Mate
-
We're not fighting .- anyway your code is okay. and it will fit any resolution.
-
im not sure. but i think u have to setTimer for the dxDraw and create table for numbers from 1 to 100. as i said ( im not sure )
-
He didnt mentioned it. thats why i just posted the line !! is there is problem with my post guys !!???
-
He said in his post >> and he didnt mention the line of guiGetScreenSize, so i replied my post as trying to help him. and u replied stop helping people if u dont know how to help ur self .. do u think only u helping in this forum ? i feel free to post in this forum and u have no perm to tell me stop helping !! okay ? Have a nice day !
-
i just wrote it because u didnt mention. but if u wrote it then the script is okay and it will fit correctly with any resolution.
-
Please don't help others when you can't even help yourself ... Well, the script should be fine, can you show us a screen when the hp bar fits correctly ? Thanks really ? he didnt define screenX and screenY .. and how it will work correctly without guiGetScreenSize ? he want it to fit in the same place for any resolution. btw do u have any problem if i tried to help ?
-
You can use math.random from picking up any number, variables, tables or any random thing and here is usage > math.random ( randomFrom, randomTo ) it will pick up any variable, number, table from what u wrote.
-
screenX,screenY = guiGetScreenSize()
-
Never mind, i just used the getGUIText argument * 1000. Thanks anyway
-
well, there is a lots of ways u can make the gate opens for you squad only. i will tell u some of it well for skins, you can use >> hmm = getElementModel ( source ) if hmm == Skin ID then -- moveobject or whatevet else -- another way by team >> local hmm = getPlayerTeam ( source ) local tname = getTeamName ( hmm ) if tname == "TeamNameHere" then -- moveobject or whatever else -- another way by ACL local hmm = getAccountName ( getPlayerAccount ( source) ) if isObjectInACLGroup ("user."..hmm, aclGetGroup ( "ACLGroupHere" ) ) then --moveObject or whatever else -- Btw if the event is onColShapeHit or onMarkerHit dont forget to replace source with hitElement.
-
i think it can work with onClientRender, anyone more can help please ?
-
500000 ms are not 5 Minutes... 300000 ms are 5 Minutes. okay .-
-
setTimer ( outputChatBox, 500000, 0, "Text Here", root )
-
addEvent ( "accelerate", true ) function accelerate ( theVehicle, seat, jacked ) local data = getElementData ( source, "drunk", true ) if data then toggleControl ( source, "brake_reverse", false ) toggleControl ( source, "handbrake", false ) local left = getControlState ( source, "vehicle_left", true ) if data and left then setControlState ( source, "vehicle_right", true ) setControlState ( source, "vehicle_left", false ) setTimer (setControlState, 1500, 1, source, "vehicle_right", false) end local right = getControlState ( source, "vehicle_right", true ) if data and right then setControlState ( source, "vehicle_left", true ) setControlState ( source, "vehicle_right", false ) setTimer (setControlState, 1500, 1, source, "vehicle_left", false) end elseif not data then toggleControl ( source, "brake_reverse", true ) toggleControl ( source, "handbrake", true ) setControlState ( source, "vehicle_left", false ) setControlState ( source, "vehicle_right", false ) end end addEventHandler ( "accelerate", getRootElement(), accelerate ) i added an event to trigger it to a client event ( onClientRender ) to check the ElementData every frame change
-
Hello community ,, i have a problem, the probles is i want to make when the veh turn left it turn right and when right its turn left. i tried getControlState and setControl state but not working perfectly.. i hope someone can help me. Thanks
-
for sure its not for me .. its for client writing in the Edit box .. got it ? btw thanks all i used the *1000 thing
-
Shhh, don't make his brain explode haha. is he talking right way ? i think he is right but i should write it another way. right ?
-
Hello community ,, topic's subjects says it, i want to know hot to convert mili secs to seconds for example if i want to put num in seconds not mili seconds in the setTimer instead of 2000 i put 2 and so on so how to let the function understand the num in seconds ?
-
and how to use table.insert at XML ?
-
I've no idea how to use XML in scripting never used such a way in scripting. that what im asking about.
-
dude, u think now i understood ?
-
Hello community ,, i've made a simple script to prevent hacking, it only prevent some serials to login to the account and if anyone tried to login that's not in the serial list, will get banned. but i have to open the script every time to add lines of serials annd account names. so i decided to make it with gui which can add or remove serials for every acc name. i mean for example every acc can do /myserials and a gui pop up and an edit box that i have to write the serial and three buttons "Add", "Remove", "Close". well my question is how to use guiGetText and then add what the player wrote in the script.? here is my simple script > AccessList = {[ 'accountName' ] = 'playerSerial', [ 'HERE IS ACC NAME' ] = 'HERE IS SERIAL',} -- i want the line auto added here when the player press add and auto remove when the player press remove function PreventHackers ( _, loggedaccount ) local GetTheSerial = AccessList[getAccountName(loggedaccount)] if ( GetTheSerial ) then if GetTheSerial ~= getPlayerSerial ( source ) then local BanSerial = getPlayerSerial ( source ) addBan( nil, nil, BanSerial, source, "You've been banned for 2000 seconds for trying to hack an account", 2000 ) outputChatBox ( " Your serial is not allowed to access this account ",source,255,0,0,false ) else outputChatBox ( " You passed the serial check and logged in successfully ",source,0,255,0,false ) end end end addEventHandler ( 'onPlayerLogin', getRootElement ( ), PreventHackers ) i hope that someone can help