-
Posts
10,056 -
Joined
-
Last visited
-
Days Won
27
Everything posted by iPrestege
-
dxDrawColorText( theMessage, screenWidth - 202, 6, screenWidth - 6, 16, tocolor(math.random(0, 255), math.random(0, 255), math.random(0, 255), math.random(0, 255)), 1, "default-bold", "center", "top", false, false, false
-
What is the problem now?
-
لول عندي خبرة في الفك وكذا شكلها يطلع وخصوصا الفنكشن #
-
هذا مفكوك التشفير مانساعد فية
-
Can I do an arrow instead of a cilynder with this?
iPrestege replied to GamerDeMTA's topic in Scripting
Yes You Can . -
بدل الملف login_panel_c.lua بـ ---------------------------------- -----------| Settings |----------- ---------------------------------- blackLoginScreen = false -- Set to 'true' to display a black screen to the player untill they log in or choose to play as a guest. enableKickPlayer = false -- Set whether to kick the player after they fail to login specified amount of times. ---------------------------------- -- Set the text you want displayed in the "rules" window here - use '\n' to go into the next line infoText = "------ Rules ------ \n\n* No cheating!\n* No insulting and spamming!\n* No vehicle mods\n\nEdit the text however you like\n\n\n\n\n\n\n\nLogin panel by NeXTreme" -- Screen and GUI window sizes function loginPanel() local screenWidth, screenHeight = guiGetScreenSize() mainWidth,mainHeight = 749,472 regWidth,regHeight = 439,344 local left = mainWidth/2 - mainHeight/2 local top = regWidth/2 - regHeight/2 lp = getLocalPlayer() mainWindow = guiCreateWindow(screenWidth/2-mainWidth/2,screenHeight/2-mainHeight/2,mainWidth,mainHeight,"Login panel",false) mInfo = guiCreateMemo(21,36,411,278,infoText,false,mainWindow) guiMemoSetReadOnly(mInfo,true) editUsername = guiCreateEdit(53,364,187,25,"",false,mainWindow) guiEditSetMaxLength(editUsername,30) editPassword = guiCreateEdit(53,421,187,25,"",false,mainWindow) guiEditSetMaxLength(editPassword,30) guiEditSetMasked(editPassword,true) lblUsername = guiCreateLabel(67,330,158,38,"Username:",false,mainWindow) guiLabelSetColor(lblUsername,0,85,255) guiLabelSetVerticalAlign(lblUsername,"center") guiLabelSetHorizontalAlign(lblUsername,"center",false) font9 = guiSetFont(lblUsername,"default-bold-small") lblPassword = guiCreateLabel(67,389,158,38,"Password:",false,mainWindow) guiLabelSetColor(lblPassword,0,85,255) guiLabelSetVerticalAlign(lblPassword,"center") guiLabelSetHorizontalAlign(lblPassword,"center",false) font8 = guiSetFont(lblPassword,"default-bold-small") btnLogin = guiCreateButton(255,368,242,74,"Login",false,mainWindow) font7 = guiSetFont(btnLogin,"sa-header") btnToggleRegister = guiCreateButton(520,370,206,68,"Register an account",false,mainWindow) font6 = guiSetFont(btnToggleRegister,"default-bold-small") registerWindow = guiCreateWindow(screenWidth/2-regWidth/2,screenHeight/2-regHeight/2,regWidth,regHeight,"Registration",false) editRegistrationUsername = guiCreateEdit(98,138,242,25,"",false,registerWindow) editRegistrationPassword = guiCreateEdit(98,195,242,25,"",false,registerWindow) guiEditSetMasked(editRegistrationPassword,true) editRegistrationRepeatPassword = guiCreateEdit(99,252,242,25,"",false,registerWindow) guiEditSetMasked(editRegistrationRepeatPassword,true) lblRegister = guiCreateLabel(24,24,391,97,"Register",false,registerWindow) guiLabelSetColor(lblRegister,0,85,255) guiLabelSetVerticalAlign(lblRegister,"center") guiLabelSetHorizontalAlign(lblRegister,"center",false) font5 = guiSetFont(lblRegister,"sa-gothic") lblRUsername = guiCreateLabel(98,113,242,17,"Username:",false,registerWindow) guiLabelSetColor(lblRUsername,0,85,255) guiLabelSetVerticalAlign(lblRUsername,"center") guiLabelSetHorizontalAlign(lblRUsername,"center",false) font4 = guiSetFont(lblRUsername,"default-bold-small") lblRPassword = guiCreateLabel(98,171,242,17,"Password:",false,registerWindow) guiLabelSetColor(lblRPassword,0,85,255) guiLabelSetVerticalAlign(lblRPassword,"center") guiLabelSetHorizontalAlign(lblRPassword,"center",false) font3 = guiSetFont(lblRPassword,"default-bold-small") lblRepeatPassword = guiCreateLabel(98,230,242,17,"Repeat password:",false,registerWindow) guiLabelSetColor(lblRepeatPassword,0,85,255) guiLabelSetVerticalAlign(lblRepeatPassword,"center") guiLabelSetHorizontalAlign(lblRepeatPassword,"center",false) font2 = guiSetFont(lblRepeatPassword,"default-bold-small") btnCancel = guiCreateButton(232,292,179,38,"Cancel",false,registerWindow) font1 = guiSetFont(btnCancel,"default-bold-small") btnConfirmRegistration = guiCreateButton(29,292,179,38,"Confirm & register!",false,registerWindow) font = guiSetFont(btnConfirmRegistration,"default-bold-small") image = guiCreateStaticImage(440,23,300,225,"img/logo.png",false,mainWindow) --- وهنا guiSetVisible(registerWindow, false) guiSetInputMode("no_binds_when_editing") showCursor(true) showChat(false) end function onClick(button,state) if(button == "left" and state == "up") then if (source == btnToggleRegister) then guiSetVisible(registerWindow, true) guiBringToFront(registerWindow) guiSetInputEnabled(true) showCursor(true) elseif (source == btnCancel) then guiSetVisible(mainWindow, true) guiSetVisible(registerWindow, false) guiSetInputEnabled(true) showCursor(true) elseif (source == btnPlayAsGuest) then guiSetVisible(mainWindow, false) guiSetVisible(registerWindow, false) guiSetInputEnabled(false) triggerEvent ( "showWindow", root) outputChatBox("#0000FF* #FFFFFFYou've chosen to play as a #ABCDEFGUEST#FFFFFF!",255,255,255,true) elseif (source == btnConfirmRegistration) then username = guiGetText(editRegistrationUsername) password = guiGetText(editRegistrationPassword) passwordConfirm = guiGetText(editRegistrationRepeatPassword) triggerServerEvent("onRequestRegister",getLocalPlayer(),username,password,passwordConfirm) elseif (source == btnLogin) then username = guiGetText(editUsername) password = guiGetText(editPassword) triggerServerEvent("onRequestLogin",getLocalPlayer(),username,password) end end end addEventHandler("onClientGUIClick",root,onClick) -- Show login window function showLoginWindow() guiSetVisible(mainWindow, true) guiSetVisible(registerWindow, false) guiSetInputEnabled(true) showCursor(true) showPlayerHudComponent("all", true) end addEvent("showLoginWindow", true) addEventHandler("showLoginWindow",getRootElement(),showLoginWindow) -- Hide login window function hideLoginWindow() guiSetInputEnabled(false) guiSetVisible(mainWindow, false) guiSetVisible(registerWindow, false) showforallteam() end addEvent("hideLoginWindow", true) addEventHandler("hideLoginWindow", getRootElement(), hideLoginWindow) -- Hide register window function hideRegisterWindow() guiSetInputEnabled(true) guiSetVisible(mainWindow, true) guiSetVisible(registerWindow, false) showCursor(true) end addEvent("hideRegisterWindow", true) addEventHandler("hideRegisterWindow", getRootElement(), hideRegisterWindow) BACK = guiCreateStaticImage(0,0,1,1,"images/black.png",true) s3d1 = guiCreateStaticImage(0,0,1,1,"images/1.png",true) s3d2 = guiCreateStaticImage(0,0,1,1,"images/2.jpg",true) s3d3 = guiCreateStaticImage(0,0,1,1,"images/3.png",true) guiSetVisible(s3d2, false) guiSetVisible(s3d3, false) triggerServerEvent('onLoadedClient',localPlayer,localPlayer) local Timer = setTimer Timer(function() sound = playSound("Other/sound.mp3", true) end, 1000, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.9)) end, 5000, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.9)) end, 6000, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.-- s8) -->) end, 6150, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.7)) end, 6250, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.6)) end, 6350, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.5)) end, 6450, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.4)) end, 6550, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.3)) end, 6650, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.2)) end, 6750, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.1)) end, 6850, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0)) end, 6855, 1, true) Timer(function() guiSetVisible(s3d1, false) end, 6900, 1, true) Timer(function() guiSetVisible(s3d2, true) end, 7000, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.9)) end, 8895, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.9)) end, 9000, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.-- s8) -->) end, 9150, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.7)) end, 9250, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.6)) end, 9350, 1, true)
-
https://forum.multitheftauto.com/viewtopic.php?f=91&t=55712&p=538422&hilit=Decompile#p538422 As what "Anderl" said .
-
دور fadeCamera(false) > fadeCamera(true)
-
Can I unite Resource PLAY with Freeroam in one resource?
iPrestege replied to GamerDeMTA's topic in Scripting
Thx. -
-- Server Side! addEventHandler("onVehicleStartEnter",root, function (player) local model = getElementModel(source) local team = getPlayerTeam ( player ) local Name = ( team and getTeamName ( team )) if ( Name ~= "Police Team Name" ) then if ( model == 596 or model == 597 or model == 598 or model == 599 ) then cancelEvent() outputChatBox(" ** Police Vehicle's Only!",player,255,0,0,true) end end end )
-
With open wiki page's .
-
How to put an image in a corner of the screen and do this?
iPrestege replied to GamerDeMTA's topic in Scripting
No Problem You Can Just Use Png . -
Do it with team? getPlayerTeam getTeamName getElementModel "onVehicleStartEnter" cancelEvent
-
https://community.multitheftauto.com/index.php?p=resources&s=details&id=6692 Stole # DONE