A3kri Posted July 21, 2012 Share Posted July 21, 2012 ألسلام عليكم بغيت مساعدة عندي هاللوحة اول ماتدخل تطلع لك .. وتختار وتروح .. ابي لين مت توديك مكان الفريق إلي أخترته هذا كود لـ spawn addEventHandler("onResourceStart", resourceRoot, function() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) repeat until spawnPlayer ( player, 2872, -1589, 22, 360 ) fadeCamera(player, true) setCameraTarget(player, player) setPlayerTeam (player, nil) end function spawnWasted(player) repeat until spawnPlayer ( player, -2655.02, 625.30, 14.45, 180, 1 ) fadeCamera(player, true) setCameraTarget(player, player) setPlayerTeam (player, nil) takePlayerMoney ( player, 500 ) end addEventHandler("onPlayerLogin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawnWasted, 1800, 1, source) end ) وهذا كود الأفرقة local teamsTable = { [ "Police" ] = { 1577 , -1694 , 6 } , [ "Destructive" ] = { 2498 , -1684 , 13 } , [ "Rebel" ] = { 1474 , -2247 , 13 } , } addEvent ( "onPlayerChooseTeam" , true ) addEventHandler ( "onPlayerChooseTeam" , root , function ( teamName ) local team = getTeamFromName ( teamName ) setPlayerTeam ( source , team ) local spawnX , spawnY , spawnZ = unpack ( teamsTable [ teamName ] ) spawnPlayer ( source , spawnX , spawnY , spawnZ ) end ) وهذا كود الـ Gui --[[Panel created by: [FOTL]Danny]]-- --[[On 17th August 2011]]-- x,y = guiGetScreenSize() JobsWin = guiCreateWindow(x/3 - 70,y/3 - 20,200,320,"لوحة إختيار الفريق",false) teamsList = guiCreateGridList(0,22,186,255,false,JobsWin) column = guiGridListAddColumn( teamsList, "أختار فريقك", 0.95 ) for id, team in ipairs(getElementsByType("team")) do local row = guiGridListAddRow ( teamsList ) guiGridListSetItemText ( teamsList, row, 1, getTeamName ( team ), false, false ) guiGridListSetItemColor ( teamsList, row, 1, getTeamColor ( team ) ) end guiWindowSetMovable ( teamsList, false ) guiWindowSetMovable ( JobsWin, false ) guiWindowSetSizable ( teamsList, false ) guiWindowSetSizable ( JobsWin, false ) send = guiCreateButton(0,280,190,25,"إختيار",false,JobsWin) guiSetVisible(JobsWin, true) showCursor(true) setTimer ( showingTeams, 1000, 1) addEventHandler ( "onClientGUIClick", root, function ( button ) if button == "left" then if source == send then local row, col = guiGridListGetSelectedItem ( teamsList ) local teamName = guiGridListGetItemText ( teamsList, row, col ) triggerServerEvent ( "onPlayerChooseTeam", getLocalPlayer(), teamName ) guiSetVisible ( JobsWin , false ) guiSetInputEnabled ( false ) showCursor ( false ) end end end) addEventHandler("onClientGUIClick", getResourceRootElement(getThisResource()), close) ثاانكس ^^ Link to comment
A3kri Posted July 21, 2012 Author Share Posted July 21, 2012 وسوري على البوست الثاني ورى بعض .. بس أبي بعد لكل فريق skin خاص مثلاً الشرطة 284 الـ rebel 1 ال destructive 18 ثاانكس Link to comment
#x_,mjoody Posted July 21, 2012 Share Posted July 21, 2012 (edited) https://wiki.multitheftauto.com/wiki/Scr ... troduction Edited July 21, 2012 by Guest Link to comment
Tete omar Posted July 21, 2012 Share Posted July 21, 2012 @ #x_,mjoody don't spam here. @ A3kri انت حطيت هالكود من قبل وكاستيلو قلك ما له معنى @A3kri ( english ) you did post this code before and castillo told you that all make no sense. Link to comment
top sniper Posted July 21, 2012 Share Posted July 21, 2012 اهوة ناسخ الكود مدري من وين وحاطة Link to comment
hassan.k.s.a Posted July 21, 2012 Share Posted July 21, 2012 (edited) * Edited March 25, 2013 by Guest Link to comment
#[swat]Alooy Posted August 5, 2012 Share Posted August 5, 2012 مو هاذي لأكواد ما خدنها من جي جوب؟ 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