-
Posts
404 -
Joined
-
Last visited
Everything posted by AE.
-
guiSetText(thelabel,"~~~ Time : "..yourtime) --ملحوظة بدل المتغيرات بالمتغيرات حقتك اللي هما --your time + thelabel + ملاحظة اخري حط الكود لما يضغط الزر او الاعب يروح السجن او مدري شف بتحطها فين + اصلا انت وين التايمر الي انت مسويه عشان يخرج من السجن؟
-
لازم تحقق ان البوتن هو اللي انداس عليه مو اي بوتن ! addEventHandler("onClientGUIClick",resourceRoot, function () if source == Bt_Ok then local Slap = guiGridListGetItemText(Gr_Player,guiGridListGetSelectedItem(Gr_Player),1) if Slap ~= -1 and Slap ~= false and Slap ~= nil then local Slap = getPlayerFromName(Slap) triggerServerEvent("Slap",localPlayer) end end end)
-
make a variable for the alpha alp = 255 -- this is the alpha variable --and then put the aplha in tocolor like this ------------------------- dxDrawImage(x*0, y*0, x*1920, y*1080, "img/bg.png", 0, 0, 0, tocolor(255,255,255,alp), false) -- Background Image dxDrawRectangle(x*0, y*0, x*1920, y*80, tocolor(0, 0, 0, alp), false) -- Top Bar dxDrawRectangle(x*0, y*80, x*1920, y*10, tocolor(0, 96, 94, alp), false) -- Semi Top Bar --and now fade it out with timer like this function bindMenu() if showMenu == false then addEventHandler("onClientRender", root, showMenu) setTimer(function() if alp == 254 then showMenu = true end alp = alp + 1 end,50,255) else setTimer(function() if alp == 1 then removeEventHandler("onClientRender", root, showMenu) showMenu = false end alp = alp - 1 end,50,255) end end bindKey("F1", "down", bindMenu)
-
this only draw a circle doesn't make a " progress bar "
-
well, first you have to spawn some peds near the player so you need to use createPed() and you have to get the player position so use xx,yy,zz = getElementPosition() -- to get player position setElementPosition(xx+4,yy+3,zz) -- to set the zombie position near the player and then you have to make the ped go towards the player -- but first you need to make sure the ped is looking at the player myrot = getElementRotation(player) -- to get the player roatition setElementRotation (theped,-myrot) -- to make the ped look at the player --now to make the ped go towards the player you can use control state setPedControlState(theped,"forwards", true) and after that you can check if the ped is infront of the player then control state and hit the player note : there will be a lot of bugs you have to fix it but try to fix it yourself if you can't post and i will help
- 5 replies
-
- scripting question
- looking for zombie script
-
(and 1 more)
Tagged with:
-
--Delete
-
source here is the player try this this will ban the player but it will remove the ban addEventHandler ( "onBan", getRootElement(), function ( myban ) accountname = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then removeBan ( myban ) outputChatBox("some one tried to ban the admin "..source.." . :)", root, 255, 255, 255, true) end end )
-
addEventHandler ( "onPlayerBan", getRootElement(), function ( banPointer, rb ) accountname = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then cancelEvent() outputChatBox("This is a bad idea. :)",rb, 255, 255, 255, true) end end ) try this
-
انا امزح المزح حرام؟
-
addEventHandler ( "onPlayerBan", getRootElement(), function ( banPointer, responsibleElement ) accountname = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then cancelEvent() outputChatBox("This is a bad idea. :)", 255, 255, 255, true) end end ) try it now
-
then the player that got banned is not in admin group ... + type in f8 debugscript 3 and tell me what happens when you ban the admin
-
addEventHandler ( "onPlayerBan", getRootElement(), function ( banPointer, responsibleElement ) accountname = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then cancelEvent() outputChatBox("This is a bad idea. :)", 255, 255, 255, true) end end ) --try it server side
-
you have to write variable accountname like this accountname = getAccountName ( getPlayerAccount ( source ) )
-
use (onPlayerBan) event and check if the player is admin (isObjectInACLGroup) then cancel the event ( cancelEvent() )
-
هذا افتتاح سيرفر ولا رحلة مدرسية ؟
-
i'm confused right now the code is working and you have a question or the code is not working + you don't need client side if you won't use client side only functions like gui function
-
you can use sql tables + you can't use accounts on client side
-
@kieran to move the object the player who enter the marker have to have the data local data = getElementData(Player,"job")
-
object = createObject(980, 2539.5, 1343.2998046875, 12.60000038147) marker = createMarker(2539.5, 1343.2998046875, 12.60000038147, "cylinder", 2, 100, 0, 0, 100) function gateopen(player) local data = getElementData(Player,"job") if (data=="Admin") then moveObject(object, 500, 980, 2539.5, 1343.2998046875, 15.60000038147) else outputChatBox("Message") end end addEventHandler("onMarkerHit",getRootElement(),gateopen) function gateclose(player) moveObject(object, 2539.5, 1343.2998046875, 12.60000038147) end addEventHandler("onMarkerLeave",getRootElement(),gateclose)
-
سويلها زي ماتسويلها تبي نجي نبرمجلك سيرفر بالمرة؟
-
gft = {} function o7a() playSoundFrontEnd ( 30 ) dxDrawRectangle(0, 551, 800, 39, tocolor(0, 0, 0, 159), false) dxDrawText(gft[1], 0, 551, 800, 586, tocolor(255, 255, 255, 255), 2.20, "sans", "center", "center", false, false, false, false, false) end addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[3] then gft[1] = guiGetText(GUIEditor.edit[1]) if gft == "" then return end addEventHandler("onClientRender",getRootElement(),o7a) end end )
-
خطا يا كيلر لازم تعرف المتغير + المفروض تحط الايفنت داخل الفنكشن