-
Posts
1,336 -
Joined
Everything posted by The Killer
-
is there any other way cause i use killTimer if the player select no one, it's work but if i reselect the player and select no one it kill the timer but the other timer that i reselected not killed , so is there any other way ?
-
so i did use it like this : setTimer (guiSetText, 1000, 0, ping, Ping) but if i select another player it still in the gui ?
-
hello how can i make the label refresh every 1 sec ?
-
Event # 'onColShapeHit' function # createColCuboid -- المنطقه اذا دخلتها تجيك صواريخ createRadarArea -- تحطها نفس احداثيات الي فوق عشان تقدر تشوفها triggerClientEvent addEvent addEventHandler createProjectile -- الصواريخ setPlayerWantedLevel -- النجوم اذا ضرب الشرطي Event # 'onPlayerDamage' function # getPlayerTeam getTeamFromName setPlayerWantedLevel getPlayerWantedLevel
-
loadLoginFromXML هذا الفنكشن يختصر لك كم كود بدال ما تكتبهم كلهم تكتب هذا الكود وتاخذ منه الفنكشن الي هو هذا مثال بسيط جدا عليه local user, pass = loadLoginFromXML() if not ( user == "" or pass == "") then -- الخ function loadLoginFromXML() local xmlsave = xmlLoadFile ("userdata.xml") if not xmlsave then xmlsaveLog = xmlCreateFile("userdata.xml", "login") end local usernameNode = xmlFindChild (xmlsaveLog, "username", 0) local passwordNode = xmlFindChild (xmlsaveLog, "password", 0) if usernameNode and passwordNode then return xmlNodeGetValue(usernameNode), xmlNodeGetValue(passwordNode) else return "", "" end xmlUnloadFile ( xmlsaveLog ) end الفنكشنات الي تحتاجها guiCreateCheckBox loadLoginFromXML guiCheckBoxSetSelected guiSetText
-
Thanks, but there is another problem that when i start the mode it's give me the money with out hit the marker only when i start it.
-
this code when you hit the marker the count will show but the other players can see it to i want when someone hit the marker the count show, only the player who hit the marker can see it. local count = 10 local x,y = guiGetScreenSize( ) local left,top,right,bottom = x*351/1360,y*166/768,x*999/1360,y*454/768 setTimer ( function ( ) count = count -1 if ( count == 0 ) then removeEventHandler("onClientRender",root,DrawTheText) triggerServerEvent("give", getLocalPlayer()) end end,500,0 ) function DrawTheText( ) dxDrawText( "Wait [ " .. count .. " ]",left,top,right,bottom, tocolor(0,255,0,255), 2.00, "default-bold", "center", "top", false, false, false, false, false ) end local marker = createMarker(1956.6, -2486, 13.5-1, "cylinder", 2, 255, 0, 0) addEventHandler("onClientMarkerHit", marker, function () count = 10 addEventHandler("onClientRender",root,DrawTheText) end )
-
Hello how can i do when someone hit the marker then the dxDrawText show to him and only him no one else ?
-
getPlayerWantedLevel setPedAnimation setTimer setElementPosition
-
'onMarkerHit' -- Event. function createMarker -- نسوي ماركر getElementType -- نتأكد من الي لمس الماركر هو الاعب getElementData -- نتحقق من القروب setElementModel -- تغير الشخصيه
-
local Skins = { 287, 285 , 283 } rs = Skins [math.random(#Skins)] addEventHandler("onResourceStart", resourceRoot, function() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) if not isElement(player) then return end repeat until spawnPlayer ( player, 214.24290466309+math.random(1,5), 1866.6018066406+math.random(5,9), 13.140625, 180, rs, 0, 0) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end )
-
وش غيرت ؟ تفضل يا صاحب الموضوع هذي افضل طريقه سويتها ع السريع ---Client Side --غير مجرب sound = playSound("sounds/vegas.mp3") setSoundVolume(sound, 2.5) setSoundPaused(sound,true) addEventHandler ("onClientGUIClick",guiRoot, function () if source == GUIEditor.button[1] then if isSoundPaused(sound) == false then return end setSoundPaused(sound,false) elseif source == GUIEditor.button[2] then setSoundPaused(sound,true) end end ) sound ما كانت معرفه
-
خخخخخخخ هذا مود كاااامل وطويييييييل مره مستحيل تقدر تسويه بدون خبره كافيه لان فنكشناته كثيره فيه مود القروبات في الكومنتي +
-
addEventHandler ("onClientGUIClick", getRootElement(), function () if source == GUIEditor.button[1] then local sound = playSound("sounds/vegas.mp3") setSoundVolume(sound, 2.5) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function () if source == GUIEditor.button[2] then stopSound( sound ) end end )
-
[Help] Difference between Server side and Client side
The Killer replied to GamingTim's topic in Scripting
no, server side is for player commands, and client side is for gui and you can go to wiki and see the codes, if the code red this is for client side if it's orange this for server side. -
كم مره نقولك هذا المنتدى مو للطلبات هنا للمساعده بس
