MR:SADIQ Posted February 7, 2013 Share Posted February 7, 2013 ابغي كود 3 صور تطلع على شاشة بعد ما الاعب يسجل دخول كل صوره تيم+سلاح+مكان محدد Link to comment
iPrestege Posted February 7, 2013 Share Posted February 7, 2013 guiCreateStaticImage guiSetVisible createTeam setPlayerTeam spawnPlayer giveWeapon setElementModel "OnClientGUIClick" Link to comment
MR:SADIQ Posted February 7, 2013 Author Share Posted February 7, 2013 ممكن تحط الكود جاهز هدا سيرفر ولا كلنت؟ Link to comment
iPrestege Posted February 7, 2013 Share Posted February 7, 2013 guiCreateStaticImage -- كلنت guiSetVisible -- كلنت createTeam -- سيرفر setPlayerTeam -- سيرفر spawnPlayer -- سيرفر giveWeapon -- سيرفر setElementModel -- كلنت و سيرفر triggerServerEvent -- استخدم الترايقر لـ اكواد السيرفر "OnClientGUIClick" -- الايفنت يوم تضغط زر Link to comment
hassan.k.s.a Posted February 7, 2013 Share Posted February 7, 2013 ومافيه شي جاهز سوي لنفسك Link to comment
MR:SADIQ Posted February 7, 2013 Author Share Posted February 7, 2013 مافهمت استخدم الترايقر لـ اكواد السيرفر Link to comment
iPrestege Posted February 7, 2013 Share Posted February 7, 2013 مافهمتاستخدم الترايقر لـ اكواد السيرفر وين اللي سويتة اطرحة ( = ؟ Link to comment
MR:SADIQ Posted February 7, 2013 Author Share Posted February 7, 2013 function gimmeATeam ( source, commandName, teamName ) local newTeam = createTeam ( teamName ) -- create a new team with the specified name if newTeam then -- if it was successfully created setPlayerTeam ( source, newTeam ) -- add the player to the new team end end addCommandHandler("giveteam", gimmeATeam) function assignNewTeam ( source, commandName, teamName ) local theTeam = createTeam ( teamName ) -- create a new team with the specified name if theTeam then -- if it was successfully created setPlayerTeam ( source, theTeam ) -- add the player to the new team end end addCommandHandler ( "gimmeateam", assignNewTeam ) function unassignTeam ( source, commandName ) local theTeam = getPlayerTeam ( source ) -- Check if the player is on a team if theTeam then -- this player is on a team, so we can remove them from it setPlayerTeam ( source, nil ) -- remove the player from the current team end end addCommandHandler ( "takeawaymyteam", unassignTeam ) -- Get a table of all the players players = getElementsByType ( "player" ) -- Go through every player for playerKey, playerValue in ipairs(players) do -- Spawn them at the desired coordinates spawnPlayer ( playerValue, 0.0, 0.0, 5.0, 90.0, 0 ) end Link to comment
#Al-Ha[J]aRii Posted February 8, 2013 Share Posted February 8, 2013 (edited) function gimmeATeam ( source, commandName, teamName ) local newTeam = createTeam ( teamName ) -- create a new team with the specified name if newTeam then -- if it was successfully created setPlayerTeam ( source, newTeam ) -- add the player to the new team end end addCommandHandler("giveteam", gimmeATeam) function assignNewTeam ( source, commandName, teamName ) local theTeam = createTeam ( teamName ) -- create a new team with the specified name if theTeam then -- if it was successfully created setPlayerTeam ( source, theTeam ) -- add the player to the new team end end addCommandHandler ( "gimmeateam", assignNewTeam ) function unassignTeam ( source, commandName ) local theTeam = getPlayerTeam ( source ) -- Check if the player is on a team if theTeam then -- this player is on a team, so we can remove them from it setPlayerTeam ( source, nil ) -- remove the player from the current team end end addCommandHandler ( "takeawaymyteam", unassignTeam ) -- Get a table of all the players players = getElementsByType ( "player" ) -- Go through every player for playerKey, playerValue in ipairs(players) do -- Spawn them at the desired coordinates spawnPlayer ( playerValue, 0.0, 0.0, 5.0, 90.0, 0 ) end ويش مسوي هذه مو كود امثله من الويكي Edited February 8, 2013 by Guest Link to comment
iMr.Dawix~# Posted February 8, 2013 Share Posted February 8, 2013 طيب سو للكود ع الأقل --code Link to comment
#Al-Ha[J]aRii Posted February 8, 2013 Share Posted February 8, 2013 ابغي كود 3 صور تطلع على شاشة بعد ما الاعب يسجل دخولكل صوره تيم+سلاح+مكان محدد مو مجرب ----------- Server Side ! addEventHandler("onResourceStart", resourceRoot, start) spawnPlayer ( playerValue, x, y, z,0,skinID ) ---- x y z الاحداثيات ---- skinID رقم الشخصيه createTeam("a") addEvent ( "OnClientGUIClick", true ) addEventHandler ( "OnClientGUIClick", getRootElement(),createTeam ) function start() setPlayerTeam(getRandomPlayer(), a) triggerServerEvent ( "setPlayerTeam", getLocalPlayer() ) end function giveWeaponsOnSpawn () giveWeapon ( source, 31, 200 ) 31 = ID Weapon - 200 Amount end setElementModel ( createTeam, setPlayerTeam, spawnPlayer, giveWeapon ) addEventHandler("onResourceStart", resourceRoot, function() setTimer(start, 50, 1) end ) ------ Client Side ! function showClientImage() guiCreateStaticImage( "Name.png", true ) ---- Name اسم الصورة guiSetVisible ( Name, true ) --------Name اسم الصورة end Link to comment
iPrestege Posted February 8, 2013 Share Posted February 8, 2013 ابغي كود 3 صور تطلع على شاشة بعد ما الاعب يسجل دخولكل صوره تيم+سلاح+مكان محدد مو مجرب ----------- Server Side ! addEventHandler("onResourceStart", resourceRoot, start) spawnPlayer ( playerValue, x, y, z,0,skinID ) ---- x y z الاحداثيات ---- skinID رقم الشخصيه createTeam("a") addEvent ( "OnClientGUIClick", true ) addEventHandler ( "OnClientGUIClick", getRootElement(),createTeam ) function start() setPlayerTeam(getRandomPlayer(), a) triggerServerEvent ( "setPlayerTeam", getLocalPlayer() ) end function giveWeaponsOnSpawn () giveWeapon ( source, 31, 200 ) 31 = ID Weapon - 200 Amount end setElementModel ( createTeam, setPlayerTeam, spawnPlayer, giveWeapon ) addEventHandler("onResourceStart", resourceRoot, function() setTimer(start, 50, 1) end ) ------ Client Side ! function showClientImage() guiCreateStaticImage( "Name.png", true ) ---- Name اسم الصورة guiSetVisible ( Name, true ) --------Name اسم الصورة end OnClientGUIClick setPlayerTeam onResourceStart Link to comment
#Al-Ha[J]aRii Posted February 8, 2013 Share Posted February 8, 2013 ابغي كود 3 صور تطلع على شاشة بعد ما الاعب يسجل دخولكل صوره تيم+سلاح+مكان محدد مو مجرب ----------- Server Side ! addEventHandler("onResourceStart", resourceRoot, start) spawnPlayer ( playerValue, x, y, z,0,skinID ) ---- x y z الاحداثيات ---- skinID رقم الشخصيه createTeam("a") addEvent ( "OnClientGUIClick", true ) addEventHandler ( "OnClientGUIClick", getRootElement(),createTeam ) function start() setPlayerTeam(getRandomPlayer(), a) triggerServerEvent ( "setPlayerTeam", getLocalPlayer() ) end function giveWeaponsOnSpawn () giveWeapon ( source, 31, 200 ) 31 = ID Weapon - 200 Amount end setElementModel ( createTeam, setPlayerTeam, spawnPlayer, giveWeapon ) addEventHandler("onResourceStart", resourceRoot, function() setTimer(start, 50, 1) end ) ------ Client Side ! function showClientImage() guiCreateStaticImage( "Name.png", true ) ---- Name اسم الصورة guiSetVisible ( Name, true ) --------Name اسم الصورة end OnClientGUIClick setPlayerTeam onResourceStart نسيت Link to comment
hassan.k.s.a Posted February 8, 2013 Share Posted February 8, 2013 اذا تبيه بـ مبلغ تعال خاص هع Link to comment
iMr.Dawix~# Posted February 8, 2013 Share Posted February 8, 2013 اتوقع كذا IMG = guiCreateStaticImage(0.8262, 0.2604, 0.1221, 0.1536, "logo.png", true)--logo.pngاسم الصورة الأولى setTimer ( guiStaticImageLoadImage, 10000, 1, IMG, "xda.png" )--xda.pngاسم الصورة الثانيه !! يستبدل الصورة الأولى بالثانيه Link to comment
Bhrany-danger Posted February 8, 2013 Share Posted February 8, 2013 خدامين عندكك احنا ممكن الكود جاهز Link to comment
jafar Posted February 8, 2013 Share Posted February 8, 2013 مابتلاقي احد يسوي ليك بدون مقابل "-_- Link to comment
Bhrany-danger Posted February 8, 2013 Share Posted February 8, 2013 مابتلاقي احد يسوي ليك بدون مقابل "-_- الا في مواضيع بنفس الطلب والاكواد موجودة بالمنتدى وجاهزة بس لانه بكل مواضيعه يريد الكود جاهز ما بساعده Link to comment
MR:SADIQ Posted February 9, 2013 Author Share Posted February 9, 2013 اذا تبيه بـ مبلغ تعال خاص هع عطني ايميلك ماعرف للخاص توي جديد Link to comment
MR:SADIQ Posted February 9, 2013 Author Share Posted February 9, 2013 خدامين عندكك احنا ممكن الكود جاهز انا قلت ممكن ماقلت حطه غصب ومحد جابرنك تحطه Link to comment
TD[M]ER Posted February 9, 2013 Share Posted February 9, 2013 "OnClientGUIClick" -- الايفنت يوم تضغط زر "OnClientGUIClick" = "onClientGUIClick" Link to comment
TD[M]ER Posted February 9, 2013 Share Posted February 9, 2013 اذا تبيه بـ مبلغ تعال خاص هع عطني ايميلك ماعرف للخاص توي جديد ucp.php?i=pm&mode=compose&u=63734 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now