-
Posts
188 -
Joined
-
Last visited
Everything posted by Toffbrown
-
Heyy, im Currently a staff member in a Server called JJ's Stunt and Freeroam helping with managing,scripting and enforcing the rules but we are a "English only server" which is pretty much self explanatory but alot of players who join dont understand that so we have to mute etc, so we have decided to let player speak any language to up the player count but it is sometimes highly frustrating when they are speaking another language and i need to use google translator to figure out what they need help with so is it possible to create a script to detect another language and then send the data to google translate and output into the chat box the english version or maybe using a strings table might work with a dictionary of say german,spanish,arabic,chinese etc?? TIA Cheers
-
thanks guys i cant thank you enough, cheers
-
i tried that but it appears then dissapears nearly instantly
-
addEventHandler("onClientRender",root,dxDrawText) like this?
-
if ( isElement ( dxDrawRectangle ) ) then destroyElement ( dxDrawRectangle ) else dxDrawRectangle(156, 184, 732, 501, tocolor(0, 0, 0, 100), false) end if ( isElement ( dxDrawText ) ) then destroyElement ( dxDrawText ) else dxDrawText("JJ's garage Panel", 237, 227, 642, 361, tocolor(0, 0, 0, 255), 1.20, "pricedown", "left", "top", false, false, false, false, false) end if ( isElement ( dxDrawText ) ) then destroyElement ( dxDrawText ) else dxDrawText("JJ's garage Panel", 232, 227, 515, 294, tocolor(255, 255, 0, 170), 1.20, "pricedown", "left", "top", false, false, false, false, false) end if ( isElement ( dxDrawText ) ) then destroyElement ( dxDrawText ) else dxDrawText("Made By ToffBrown", 365, 619, 684, 660, tocolor(29, 238, 39, 139), 1.00, "bankgothic", "left", "top", false, false, true, false, false) end end addCommandHandler("garage", createGUI ) addEventHandler("onClientRender",root,dxDrawRectangle) i added this to what you wrote it works but their is no dxtext and dxgui/rectangle
-
it leaves the dx Recttangle and the text
-
i used guieditor resource to make my own GUI and but i cant seem to toggle the panel with a commandHandler and bindKey i have just had a mind blanke function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end GUIEditor = { button = {}, staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function () sfpay = guiCreateButton(176, 294, 150, 35, "San Fierro Pay And Spray", false) guiSetFont(sfpay, "default-bold-small") oldg = guiCreateButton(734, 410, 150, 35, "San Fierro Old Garage", false) guiSetFont(oldg, "default-bold-small") mc = guiCreateButton(554, 470, 150, 35, "mc", false) guiSetFont(mc, "default-bold-small") trans = guiCreateButton(365, 470, 150, 35, "San Fierro Trans Fender", false) guiSetFont(trans, "default-bold-small") Bay = guiCreateButton(554, 410, 150, 35, "Bay", false) guiSetFont(Bay, "default-bold-small") Bridge = guiCreateButton(365, 294, 150, 35, "Bridge", false) guiSetFont(Bridge, "default-bold-small") Las = guiCreateButton(176, 410, 150, 35, "Johnson House", false) guiSetFont(Las, "default-bold-small") Airstrip = guiCreateButton(176, 470, 150, 35, "Abanded Airport Garage", false) guiSetFont(Airstrip, "default-bold-small") eightball = guiCreateButton(176, 351, 150, 35, "Eight Ball Autos", false) guiSetFont(eightball, "default-bold-small") gfr = guiCreateButton(365, 351, 150, 35, "Michells Repair", false) guiSetFont(gfr, "default-bold-small") map = guiCreateButton(365, 410, 150, 35, "yolo", false) guiSetFont(map, "default-bold-small") test1 = guiCreateButton(365, 539, 150, 35, "test1", false) guiSetFont(test1, "default-bold-small") test2 = guiCreateButton(554, 539, 150, 35, "test2", false) guiSetFont(tes2, "default-bold-small") sfoldbig = guiCreateButton(176, 539, 150, 35, "San Fierro Old Garage Big", false) guiSetFont(sfoldbig, "default-bold-small") test3 = guiCreateButton(734, 539, 150, 35, "test3", false) guiSetFont(test3, "default-bold-small") closepanel = guiCreateButton(734, 462, 144, 62, "Close", false) GUIEditor.staticimage[1] = guiCreateStaticImage(554, 195, 324, 180, ":dxopen/images/jjlogo.png", false) end ) addCommandHandler("garage", ) addEventHandler("onClientRender", root, function() dxDrawRectangle(156, 184, 732, 501, tocolor(0, 0, 0, 100), false) dxDrawText("JJ's garage Panel", 237, 227, 642, 361, tocolor(0, 0, 0, 255), 1.20, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("JJ's garage Panel", 232, 227, 515, 294, tocolor(255, 255, 0, 170), 1.20, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Made By ToffBrown", 365, 619, 684, 660, tocolor(29, 238, 39, 139), 1.00, "bankgothic", "left", "top", false, false, true, false, false) end ) addEventHandler("onClientRender",root,dxWindow) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == sfpay) then triggerServerEvent("switchsf1", getRootElement()) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == trans) then triggerServerEvent("switchsf2", getRootElement()) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == oldg) then triggerServerEvent("oldgarage1", getRootElement()) end end )
-
Wow thanks heaps Malignos and Solid snake
-
Like this? local groupName = "Admin" local x, y, z = 0, 0, 0 local colShape = createColRectangle ( 2160.93921, 2160.93921, 10000, 10000 ) addEventHandler("onColShapeHit",root,function ( element ) addEventHandler ( "onColShapeHit", colShape, function ( theElm ) if ( getElementType ( theElm ) == "player" ) and isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( hitPlayer ) ), aclGetGroup ( "Admin" ) ) then elseif function commitSuicide ( sourcePlayer ) killPed ( sourcePlayer, sourcePlayer ) end local spawnX, spawnY, spawnZ = -2026.17480, 156.90236, 29.03906 spawnPlayer(source, spawnX, spawnY, spawnZ) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("Do Not Enter the JJ's Staff Base", source)s end addEventHandler("onPlayerJoin", getRootElement(), joinHandler) end
-
is it possible to have a little area were the admins,smods,mods can only access and a regular player gets killed and respawned into another locations? because i have made a staff base but i don't know how to restrict it from players
-
removeBlackScreenTime = 0 -- The time it takes for the black screen to dissapear - If you choose to display the black screen. [iN SECONDS]
-
Dont make someone a moderator if you have the need to Mute him simple as that
-
in freeroam you can edit the names of cars skins etc but i cant find where the upgrades name is located where is the Upgrades list so i can edit the name for f1 panel?
-
Thanks so much works like a charm!
-
when one person is in army and they reconnect just says "None"
-
is it possible to show a players acl group in the scoreboard say like if the player was in Army it would say army in the tab scoreboard? if so what functions to use? cheers!
-
have you fiddled with your SQL with your hosting because it looks like to me that you have edited the databases and it wont read it properly try reinstalling your database to, also who are you with?
-
what thats bullshit your still trying to mess with people "HuX" just give it up
-
The Best Host I've Ever Had!! [VortexServers.com]
Toffbrown replied to AJXB's topic in Hosting solutions
TAPL i had the same thing happen with me on a couple occasions -
yeah i know i just dont get how i had no lagg then unistalled then about month later installed it its like MTA hates me for unistalling
-
Thank you i will try that but i dont use Ethernet because my modem is located in another room do i still need to update the Driver? Thanks for your help
-
thanks i tryed MTADiag and these are my results and i also updated my DirectX and still the same problem i am also wandering if i have alot of files on my desktop can this cause lag? http://pastebin.com/raw.php?i=7cAV9Cys
-
i got bored of MTA Servers etc so i unstalled MTA and Gta San Andreas and went to a game called Saints Row the third and GTA IV and i had no problem or lag with playing these games at say more than medium quality. my friends begged me to come back to MTA and i restalled everything and when i connect to most servers i lag like crazy i have tried changing my resolution closing every program overclocking my CPU and GPU i dont have the best Rig but it never lagged but i have: Processor: Intel® Core2 Duo CPU E8400 @ 3.00GHz (2 CPUs), ~3.0GHz Operating System: Windows 7 Home Premium 32-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_gdr.130318-1533) Memory: 4072MB RAM Card name: ATI Radeon HD 2400 PRO which is 1gb i have no idea why this is happening and what to do to fix this and my download speed is 34mb/ps with a cheap ebay dongle because my Wireless card broke so i cba to fix it but if its p;ugged into my modem i get 98mb/ps Thanks Regards Toff
-
it was just to help people out who didnt know how to use Photoshop and if you think its so easy can i please see you make one?
-
well they both worked but what X-Shadow wrote wasn't what i was mainly looking for but it was probably the way i explained my erro