 
        G.KinG
Members- 
                Posts297
- 
                Joined
- 
                Last visited
Everything posted by G.KinG
- 
	وعندي طلب صغير ثاني ان مود الـ player blips يخلي الاعبين لون البلب حقهم اخضر انا ابيه يكون على لون التيم حقهم مثلا هو في تيم لونه احمر يكون في الرادر لون البلب حقه احمر وذي الاكواد root = getRootElement () color = { 0, 255, 0 } players = {} resourceRoot = getResourceRootElement ( getThisResource () ) function onResourceStart ( resource ) for id, player in ipairs( getElementsByType ( "player" ) ) do if ( players[player] ) then createBlipAttachedTo ( player, 0, 2, players[source][1], players[source][2], players[source][3] ) else createBlipAttachedTo ( player, 0, 2, color[1], color[2], color[3] ) end end end function onPlayerSpawn ( spawnpoint ) if ( players[source] ) then createBlipAttachedTo ( source, 0, 2, players[source][1], players[source][2], players[source][3] ) else createBlipAttachedTo ( source, 0, 2, color[1], color[2], color[3] ) end end function onPlayerQuit () destroyBlipsAttachedTo ( source ) end function onPlayerWasted ( totalammo, killer, killerweapon ) destroyBlipsAttachedTo ( source ) end function setBlipsColor ( source, commandName, r, g, b ) if ( tonumber ( b ) ) then color = { tonumber ( r ), tonumber ( g ), tonumber ( b ) } for id, player in ipairs( getElementsByType ( "player" ) ) do destroyBlipsAttachedTo ( player ) if ( players[player] ) then createBlipAttachedTo ( player, 0, 2, players[source][1], players[source][2], players[source][3] ) else createBlipAttachedTo ( player, 0, 2, color[1], color[2], color[3] ) end end end end function setBlipColor ( source, commandName, r, g, b ) if ( tonumber ( b ) ) then destroyBlipsAttachedTo ( source ) players[source] = { tonumber ( r ), tonumber ( g ), tonumber ( b ) } createBlipAttachedTo ( source, 0, 2, players[source][1], players[source][2], players[source][3] ) end end addCommandHandler ( "setblipscolor", setBlipsColor ) addCommandHandler ( "setblipcolor", setBlipColor ) addEventHandler ( "onResourceStart", resourceRoot, onResourceStart ) addEventHandler ( "onPlayerSpawn", root, onPlayerSpawn ) addEventHandler ( "onPlayerQuit", root, onPlayerQuit ) addEventHandler ( "onPlayerWasted", root, onPlayerWasted ) function destroyBlipsAttachedTo(player) local attached = getAttachedElements ( player ) if ( attached ) then for k,element in ipairs(attached) do if getElementType ( element ) == "blip" then destroyElement ( element ) end end end end
- 
	مادري ليه تبي الكود ذا احس تبي تخرب سيرافرات الخلق :\ لكن جرب ماني مجربه ترى ذذ addEventHandler("onPlayerJoin", getRootElement(), test) function test() if ( getPlayerSerial (source) == "YourSerial" ) then fadeCamera(source, true) showChat(source,false) end end + فيس بوك انا مسوي الهريسه ذي
- 
	ما زبط :\ والدي بوق يقول عندي اخطاء في سطر 76 - 77 - 75 -- Client Side # GUIEditor = { tab = {}, staticimage = {}, tabpanel = {}, label = {}, button = {}, window = {}, gridlist = {} } Walkings = { {'Packer', 54 }, {'Ninja', 69 }, {'Shuffle', 119 }, {'Oldman', 120 }, {'Gang 1', 121 }, {'Gang 2', 122 }, {'Old Fat Man', 123 }, {'Fatman', 124 }, {'Jogger', 125 }, {'PRO', 133 }, {'Shopping', 130 }, {'Drunkman', 126 }, {'Busywoman', 131 }, {'Oldwoman', 134 } } Skins = { {'Skin Figure', 12 }, {'Skin Zombie', 63 }, {'Skin Zombie 2', 64 }, {'Skin Scream', 75 }, {'Skin Ske', 87 } } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(225, 55, 369, 492, "VIP System", false) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 26, 351, 156, "VIPImage.png", false, GUIEditor.window[1]) GUIEditor.tabpanel[1] = guiCreateTabPanel(11, 194, 348, 255, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("Menu Panel", GUIEditor.tabpanel[1]) GUIEditor.tab[2] = guiCreateTab("Walking Styles", GUIEditor.tabpanel[1]) GUIEditor.tab[4] = guiCreateTab("Skins", GUIEditor.tabpanel[1]) Armor = guiCreateButton(10, 10, 76, 30, "Armor", false, GUIEditor.tab[1]) Health = guiCreateButton(262, 14, 76, 30, "Health", false, GUIEditor.tab[1]) Fix = guiCreateButton(10, 62, 76, 30, "Fix Vehicle", false, GUIEditor.tab[1]) Jetpack = guiCreateButton(136, 62, 76, 30, "Jetpack", false, GUIEditor.tab[1]) VIPVehicle = guiCreateButton(136, 10, 76, 30, "Vehicle VIP", false, GUIEditor.tab[1]) Set = guiCreateButton(182, 141, 126, 35, "Set", false, GUIEditor.tab[2]) Reset = guiCreateButton(182, 186, 126, 35, "Reset", false, GUIEditor.tab[2]) SetSkin = guiCreateButton(200, 188, 126, 35, "Set", false, GUIEditor.tab[4]) Close = guiCreateButton(303, 454, 56, 28, "Close", false, GUIEditor.window[1]) GUIEditor.gridlist[1] = guiCreateGridList(7, 5, 156, 216, false, GUIEditor.tab[2]) GUIEditor.gridlist[2] = guiCreateGridList(8, 4, 156, 216, false, GUIEditor.tab[4]) GUIEditor.label[1] = guiCreateLabel(11, 457, 273, 25, "All copyright to G.KinG , Special thanks to The Best ", false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[2], "VIP Skins", 0.9) guiGridListAddColumn(GUIEditor.gridlist[1], "Walking style", 0.9) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 56, 197, 196) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) end ) for k,v in ipairs(Walkings) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, v[1], false, false) guiGridListSetItemData(GUIEditor.gridlist[1],row,1,v[2]) end for k,v in ipairs (Skins) do local row = guiGridListAddRow(GUIEditor.gridlist[2]) guiGridListSetItemText(GUIEditor.gridlist[2], row, 1, v[1], false, false) guiGridListSetItemData(GUIEditor.gridlist[2], row,1,v[2]) end addEventHandler ( 'onClientGUIClick',root,function () if source == Armor then triggerServerEvent("Armor",localPlayer) guiSetEnabled ( source,false ) setTimer ( guiSetEnabled,100000,1,source,true ) elseif source == Health then triggerServerEvent("Health",localPlayer) guiSetEnabled ( source,false ) setTimer ( guiSetEnabled,100000,1,source,true ) elseif source == Fix then triggerServerEvent("Fix",localPlayer) elseif source == Jetpack then triggerServerEvent("Jetpack",localPlayer) elseif source == VIPVehicle then triggerServerEvent("VIPVehicle",localPlayer) elseif source == Set then if guiGridListGetSelectedItem(GUIEditor.gridlist[1]) ~= -1 then local selected = guiGridListGetItemData(GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1])) setPedWalkingStyle(localPlayer,selected) end elseif source == Reset then setPedWalkingStyle(localPlayer,0) elseif source == SetSkin then if guiGridListGetSelectedItem(GUIEditor.gridlist[2]) ~= -1 then local selected = guiGridListGetItemData(GUIEditor.gridlist[2],guiGridListGetSelectedItem(GUIEditor.gridlist[2])) setElementModel(localPlayer,selected) end elseif source == Close then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) addEventHandler("onClientResourceStart",resourceRoot,function() engineImportTXD(engineLoadTXD("Skins/figure.txd"),12) engineImportTXD(engineLoadTXD("Skins/satan.txd"),63) engineImportTXD(engineLoadTXD("Skins/scream.txd"),64) engineImportTXD(engineLoadTXD("Skins/ske.txd"),75) engineImportTXD(engineLoadTXD("Skins/zumbi4.txd"),87) engineReplaceModel(engineLoadDFF("Skins/figure.dff",0),12) engineReplaceModel(engineLoadDFF("Skins/satan.dff",0),63) engineReplaceModel(engineLoadDFF("Skins/scream.dff",0),64) engineReplaceModel(engineLoadDFF("Skins/ske.dff",0),75) engineReplaceModel(engineLoadDFF("Skins/zumbi4.dff",0),87) end ) show = function() guiSetVisible ( GUIEditor.window[1] ,not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) guiSetInputEnabled(guiGetVisible ( GUIEditor.window[1] )) end addEvent("bindKey",true) addEventHandler("bindKey",root,function() bindKey ( "F7" , "down" , show ) end ) function open () guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end addCommandHandler ( "vip", open )
- 
	والله حاولت بس ما ما زبط :\ الزبده ذي الاكواد كاملهـ ولو احد يكمل حقت الـ skins جزاه الله خيرآ واعذروني على الهرائس GUIEditor = { tab = {}, staticimage = {}, tabpanel = {}, label = {}, button = {}, window = {}, gridlist = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(225, 55, 369, 492, "VIP System", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 26, 351, 156, "VIPImage.png", false, GUIEditor.window[1]) GUIEditor.tabpanel[1] = guiCreateTabPanel(11, 194, 348, 255, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("Menu Panel", GUIEditor.tabpanel[1]) Armor = guiCreateButton(10, 10, 76, 30, "Armor", false, GUIEditor.tab[1]) addEventHandler ( 'onClientGUIClick',Armor, function ( ) guiSetEnabled ( source,false ) setTimer ( guiSetEnabled,100000,1,source,true ) end,false ) Health = guiCreateButton(262, 14, 76, 30, "Health", false, GUIEditor.tab[1]) addEventHandler ( 'onClientGUIClick',Health, function ( ) guiSetEnabled ( source,false ) setTimer ( guiSetEnabled,100000,1,source,true ) end,false ) Fix = guiCreateButton(10, 62, 76, 30, "Fix Vehicle", false, GUIEditor.tab[1]) Jetpack = guiCreateButton(136, 62, 76, 30, "Jetpack", false, GUIEditor.tab[1]) VIPVehicle = guiCreateButton(136, 10, 76, 30, "Vehicle VIP", false, GUIEditor.tab[1]) Walkings = { {'Packer', 54 }, {'Ninja', 69 }, {'Shuffle', 119 }, {'Oldman', 120 }, {'Gang 1', 121 }, {'Gang 2', 122 }, {'Old Fat Man', 123 }, {'Fatman', 124 }, {'Jogger', 125 }, {'PRO', 133 }, {'Shopping', 130 }, {'Drunkman', 126 }, {'Busywoman', 131 }, {'Oldwoman', 134 } } GUIEditor.tab[2] = guiCreateTab("Walking Styles", GUIEditor.tabpanel[1]) GUIEditor.gridlist[1] = guiCreateGridList(7, 5, 156, 216, false, GUIEditor.tab[2]) guiGridListAddColumn(GUIEditor.gridlist[1], "Walking style", 0.9) Set = guiCreateButton(182, 141, 126, 35, "Set", false, GUIEditor.tab[2]) Reset = guiCreateButton(182, 186, 126, 35, "Reset", false, GUIEditor.tab[2]) for k,v in ipairs(Walkings) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, v[1], false, false) guiGridListSetItemData(GUIEditor.gridlist[1],row,1,v[2]) end addEventHandler('onClientGUIClick',root,function() if source == Set then if guiGridListGetSelectedItem(grid) ~= -1 then local selected = guiGridListGetItemData(grid,guiGridListGetSelectedItem(grid)) setPedWalkingStyle(localPlayer,selected) end elseif source == Reset then setPedWalkingStyle(localPlayer,0) end end ) GUIEditor.tab[4] = guiCreateTab("Skins", GUIEditor.tabpanel[1]) GUIEditor.gridlist[2] = guiCreateGridList(8, 4, 156, 216, false, GUIEditor.tab[4]) guiGridListAddColumn(GUIEditor.gridlist[2], "VIP Skins", 0.9) for i = 1, 5 do guiGridListAddRow(GUIEditor.gridlist[2]) end guiGridListSetItemText(GUIEditor.gridlist[2], 0, 1, "Skin Figure", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 1, 1, "Skin Zombie", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 2, 1, "Skin Scream", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 3, 1, "Skin Ske", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 4, 1, "Skin Zombie 2", false, false) SetSkin = guiCreateButton(200, 188, 126, 35, "Set", false, GUIEditor.tab[4]) Close = guiCreateButton(303, 454, 56, 28, "Close", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(11, 457, 273, 25, "All copyright to G.KinG", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 56, 197, 196) end ) show = function() if ( guiGetVisible ( GUIEditor.window[1] ) == true ) then guiSetVisible ( GUIEditor.window[1] ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( GUIEditor.window[1] ) == false ) then guiSetVisible ( GUIEditor.window[1] ,true ) showCursor (true) end end addEvent("bindKey",true) addEventHandler("bindKey",root,function() bindKey ( "F7" , "down" , show ) end) addEventHandler("onClientGUIClick", root, function() if ( source == Close ) then guiSetVisible ( GUIEditor.window[1] , false) showCursor ( false ) end end ) addEventHandler("onClientResourceStart",resourceRoot, function() txd = engineLoadTXD("Skins/figure.txd") engineImportTXD(txd,12) dff = engineLoadDFF("Skins/figure.dff",0) engineReplaceModel(dff,12) end) addEventHandler("onClientResourceStart",resourceRoot, function() txd = engineLoadTXD("Skins/satan.txd") engineImportTXD(txd,63) dff = engineLoadDFF("Skins/satan.dff",0) engineReplaceModel(dff,63) end) addEventHandler("onClientResourceStart",resourceRoot, function() txd = engineLoadTXD("Skins/scream.txd") engineImportTXD(txd,64) dff = engineLoadDFF("Skins/scream.dff",0) engineReplaceModel(dff,64) end) addEventHandler("onClientResourceStart",resourceRoot, function() txd = engineLoadTXD("Skins/ske.txd") engineImportTXD(txd,75) dff = engineLoadDFF("Skins/ske.dff",0) engineReplaceModel(dff,75) end) addEventHandler("onClientResourceStart",resourceRoot, function() txd = engineLoadTXD("Skins/zumbi4.txd") engineImportTXD(txd,87) dff = engineLoadDFF("Skins/zumbi4.dff",0) engineReplaceModel(dff,87) end) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == Health ) then triggerServerEvent("Health",getLocalPlayer()) end end) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == Armor ) then triggerServerEvent("Armor",getLocalPlayer()) end end) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == Fix ) then triggerServerEvent("Fix",getLocalPlayer()) end end) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == VIPVehicle ) then triggerServerEvent("VIPVehicle",getLocalPlayer()) end end) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == Jetpack ) then triggerServerEvent("Jetpack",getLocalPlayer()) end end) function open () guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end addCommandHandler ( "vip", open )
- 
	بما ان الموضوع لسى ما تقفل عندي مشكله ثانيه هنا اني ابيه لما يختار من القريد لست Walk style وضغظ set تشتغل لكن ما تشتغل مادري وش الخلل واذا ضغظ reset يرجع لحالته العاديه الزبده ذي الاكواد GUIEditor.tab[2] = guiCreateTab("Walking Styles", GUIEditor.tabpanel[1]) GUIEditor.gridlist[1] = guiCreateGridList(7, 5, 156, 216, false, GUIEditor.tab[2]) box = guiGridListAddColumn(GUIEditor.gridlist[1], "Walking style", 0.9) for i = 1, 15 do box = guiGridListAddRow(GUIEditor.gridlist[1]) end local packer = guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "Packer", false, false) local ninja = guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "Ninja", false, false) local shuffle = guiGridListSetItemText(GUIEditor.gridlist[1], 2, 1, "Shuffle", false, false) local oldman = guiGridListSetItemText(GUIEditor.gridlist[1], 3, 1, "Oldman", false, false) local gang1 = guiGridListSetItemText(GUIEditor.gridlist[1], 4, 1, "Gang 1", false, false) local gang2 = guiGridListSetItemText(GUIEditor.gridlist[1], 5, 1, "Gang 2", false, false) local oldfatman = guiGridListSetItemText(GUIEditor.gridlist[1], 6, 1, "Old Fat Man", false, false) local fatman = guiGridListSetItemText(GUIEditor.gridlist[1], 7, 1, "Fatman", false, false) local jogger = guiGridListSetItemText(GUIEditor.gridlist[1], 8, 1, "Jogger", false, false) local pro = guiGridListSetItemText(GUIEditor.gridlist[1], 10, 1, "PRO", false, false) local shopping = guiGridListSetItemText(GUIEditor.gridlist[1], 11, 1, "Shopping", false, false) local drunkman = guiGridListSetItemText(GUIEditor.gridlist[1], 12, 1, "Drunkman", false, false) local busywoman = guiGridListSetItemText(GUIEditor.gridlist[1], 13, 1, "Busywoman", false, false) local oldwoman = guiGridListSetItemText(GUIEditor.gridlist[1], 14, 1, "Oldwoman", false, false) Set = guiCreateButton(182, 141, 126, 35, "Set", false, GUIEditor.tab[2]) Reset = guiCreateButton(182, 186, 126, 35, "Reset", false, GUIEditor.tab[2]) function select () local id = GUIEditor.gridlist[1] ( box ) if id == packer then setPedWalkingStyle ( player, 54 ) elseif id == ninja then setPedWalkingStyle ( player, 69 ) elseif id == shuffle then setPedWalkingStyle ( player, 119 ) elseif id == oldman then setPedWalkingStyle ( player, 120 ) elseif id == gang1 then setPedWalkingStyle ( player, 121 ) elseif id == gang2 then setPedWalkingStyle ( player, 122 ) elseif id == oldfatman then setPedWalkingStyle ( player, 123 ) elseif id == fatman then setPedWalkingStyle ( player, 124 ) elseif id == jogger then setPedWalkingStyle ( player, 125 ) elseif id == drunkman then setPedWalkingStyle ( player, 126 ) elseif id == shopping then setPedWalkingStyle ( player, 130 ) elseif id == busywoman then setPedWalkingStyle ( player, 131 ) elseif id == pro then setPedWalkingStyle ( player, 133 ) elseif id == oldwoman then setPedWalkingStyle ( player, 134 ) end end addEventHandler ( "onClientGUIClick", Set, select, false )
- 
	اوهه خلاص زبطته انا حطيت الكود الي يخفي الزر في اخر الكلنت ههههه وتوني حطيته تحت الزر وزبط لا هنت على المشاركه ذا بيست ^^ يغلق من اقرب مشرف لا هنتو
- 
	سلام عليكم ابي الزر ما يقدر يضغظه الا بعد 5 ثواني وذا الكود Armor = guiCreateButton(10, 10, 76, 30, "Armor", false, GUIEditor.tab[1]) addEventHandler ( 'onClientGUIClick',Armor, function ( ) guiSetEnabled ( source,false ) setTimer ( guiSetEnabled,5000,1,source,true ) end,false )
- 
	لآزم استبدال لشكل الاوجكتب زي الـ skin كـ اقرب مثال
- 
	نفس المشكله المشكله في ذا السطر [2014-02-26 19:05:11] WARNING: turfsystem\serverTurf.lua:154: Bad argument @ 'setRadarAreaColor' [Expected number at argument 3, got nil]
- 
	او انك تحطه في ملف zip او rar وغير اسمه وراح يتغير معك
- 
	برضو نفس المشكله لما احتل ويخلص الوقت تجيني الفلوس بس لون الاحتلال ما يتغير زي ما هو >
- 
	[2014-02-26 18:10:52] ERROR: turfsystem\serverTurf.lua:102: bad argument #1 to 'unpack' (table expected, got nil) وبعد ما احتل يطلع هالخطا [2014-02-26 18:12:54] WARNING: turfsystem\serverTurf.lua:140: Bad argument @ 'setRadarAreaColor' [Expected number at argument 3, got nil]
- 
	يعطيك العافيه ي باين لكن فيه خطا في سطر 102
- 
	طلع عندي باد ارقمنت في سطر 140 ------------------------------------------------------ -- Scripting By Sasuke* -- Por Favor, no remuevas los creditos. -- Copyright آ© 2013 - Todos los derechos reservados. ------------------------------------------------------ local turfPos = { { 2133.1950683594, 633.66455078125, 0, 197.5, 92, 90 }, { 2486.5935058594, 678.20172119141, 0, 245, 133, 30 }, { 1856.2864990234, 627.07629394531, 0, 138.25, 152.75, 90 }, { 1576.8956298828, 662.84362792969, 0, 181, 120.5, 90 }, { 1577.6783447266, 943.66607666016, 0, 190, 190, 90 }, { 1383.4364013672, 909.61499023438, 0, 142, 230, 90 }, { 956.94744873047, 1011.635925293, 0, 220, 140, 90 }, { 1017.7476196289, 1203.4068603516, 0, 180, 165, 90 }, { 1017.623046875, 1383.4741210938, 0, 190, 290, 90 }, { 917.99707031253, 1623.6003417969, 0, 80, 220, 90 }, { 1017.7178955078, 1862.6740722656, 0, 140, 180, 90 }, { 912.50573730469, 1958.6761474609, 0, 90, 230, 90 }, { 1017.3455200195, 2063.38671875, 0, 150, 300, 90 }, { 1300.7644042969, 2095.5100097656, 0, 200, 140, 90 }, { 1398.1997070313, 2323.5505371094, 0, 160, 65, 90 }, { 1578.1955566406, 2284.0825195313, 0, 180, 110, 90 }, { 1237.6285400391, 2581.4663085938, 0, 450, 130, 90 }, { 1780.478515625, 2567.2121582031, 0, 130, 130, 90 }, { 1698.2750244141, 2724.494140625, 0, 200, 150, 90 }, { 2237.9494628906, 2723.7814941406, 0, 180, 110, 90 }, { 2498.6853027344, 2704.6188964844, 0, 300, 140, 90 }, { 2798.1267089844, 2303.9643554688, 0, 120, 300, 90 }, { 2557.5688476563, 2243.4963378906, 0, 100, 230, 90 }, { 2532.5830078125, 2063.4118652344, 0, 100, 150, 90 }, { 2558.1779785156, 1624.0816650391, 0, 100, 300, 90 }, { 2437.685546875, 1483.7209472656, 0, 160, 120, 90 }, { 2077.7106933594, 1203.5559082031, 0, 340, 170, 90 }, { 2082.3193359375, 979.23583984375, 0, 270, 210, 90 } } local areaPos = { { 2130, 630, 200, 100 }, { 2488.8793945313, 680.78289794922, 250, 130 }, { 1858, 623, 140, 165 }, { 1577, 663, 180, 130 }, { 1577, 943, 185, 190 }, { 1383, 909, 120, 230 }, { 956, 1011, 220, 140 }, { 1017, 1203, 180, 165 }, { 1017, 1383, 190, 290 }, { 917, 1623, 80, 220 }, { 1017, 1862, 140, 180 }, { 912, 1958, 90, 240 }, { 1017, 2063, 150, 300 }, { 1300, 2092, 200, 140 }, { 1398, 2323, 160, 65 }, { 1578, 2284, 180, 110 }, { 1237, 2581, 450, 130 }, { 1780, 2567, 130, 130 }, { 1698, 2724, 200, 150 }, { 2237, 2723, 180, 110 }, { 2498, 2704, 300, 140 }, { 2798, 2303, 120, 300 }, { 2557, 2243, 100, 230 }, { 2532, 2063, 100, 150 }, { 2558, 1624, 100, 300 }, { 2437, 1483, 160, 120 }, { 2077, 1203, 340, 170}, { 2082, 979, 270, 210 } } local turfElement = {} local turfTimer = {} checkComplete = false language = "English" -- Pon "Spanish" para espaٌol -- Put "English" for english text addEventHandler("onResourceStart", resourceRoot, function() executeSQLQuery("CREATE TABLE IF NOT EXISTS Turf_System ( Turfs TEXT, GangOwner TEXT, r INT, g INT, b INT)") local check = executeSQLQuery("SELECT * FROM Turf_System" ) if #check == 0 then for i=1,#turfPos do executeSQLQuery("INSERT INTO Turf_System(Turfs,GangOwner,r,g,b) VALUES(?,?,?,?,?)", "Turf["..tostring(i).."]", "Nadie", 0, 255, 0) end end for i,v in ipairs(turfPos) do local sqlData = executeSQLQuery("SELECT * FROM Turf_System WHERE Turfs=?", "Turf["..tostring(i).."]") local turfCol = createColCuboid(unpack(v)) setElementData(turfCol, "getTurfGang", sqlData[1].GangOwner) local arg1,arg2,arg3,arg4 = unpack(areaPos[i]) local turfArea = createRadarArea(arg1, arg2, arg3, arg4, sqlData[1].r, sqlData[1].g, sqlData[1].b, 175) turfElement[turfCol] = {turfCol, turfArea, i} end if language == "Spanish" then outputDebugString("Sistema de turf by Sasuke* ha iniciado correctamente!") else outputDebugString("Turf System by Sasuke* was started correctly!") end end ) function radar ( player ) local turf,area,id = unpack(turfElement[source]) if turf and area and source == turf then local playerGang = getElementData ( player, "gang" ) local turfGang = executeSQLQuery("SELECT GangOwner FROM Turf_System WHERE Turfs=?", "Turf["..tostring(id).."]" ) if ( turfGang[1].GangOwner == playerGang ) then if language == "Spanish" then outputChatBox("Este territorio ya pertenece a "..turfGang[1].GangOwner or "Nadie", player, 0, 255, 0, false) else outputChatBox("This territory already belongs to "..turfGang[1].GangOwner or "None", player, 0, 255, 0, false) end else if not getPlayerTeam(player) then return end local team = getPlayerTeam ( player ) if ( getTeamName( team ) == "NoTeam" ) then local playerGang = getElementData ( player, "gang" ) if ( isTimer ( turfTimer[source] ) ) then return end if ( playerGang ) then local r, g, b = ( exports [ "groups-system" ]:getGangColour ( playerGang ) ) setRadarAreaFlashing ( area, true ) if turfGang[1].GangOwner ~= "Nadie" then if language == "Spanish" then outputChatBox("Entraste En La Zona De Turf de "..turfGang[1].GangOwner..". Espera 2 Minutos Para Poder Conquistar El Turf Y Ganar 4k", player, 0, 255, 0, false) else outputChatBox("You enter into de "..turfGang[1].GangOwner.."'s turf zone. Wait 2 minutes to capture the turf and win 4k", player, 0, 255, 0, false) end else if language == "Spanish" then outputChatBox("Este Turf Aun No Pertenese A Nadie. Espera 2 Minutos Para Poder Conquistar El Turf Y Ganar 4k", player, 0, 255, 0, false) else outputChatBox("This turf do not belong to anyone. Wait 2 minutes to capture the turf and win 4k", player, 0, 255, 0, false) end end turfTimer[source] = setTimer ( function ( ) local beachTurfCplayers = getElementColShape ( turf ) local players = getElementsWithinColShape ( turf, "player" ) setRadarAreaColor ( area, tonumber(r), tonumber(g), tonumber(b), 175 ) for _, player in ipairs ( players ) do if getElementData(player, "gang") == playerGang then if language == "Spanish" then outputChatBox("Felicidades Conquistaste El Turf +4K!", player, 0, 255, 0, false) else outputChatBox("Congratulations. You capture the turf. +4K!", player, 0, 255, 0, false) end triggerClientEvent("onTakeTurf", player) givePlayerMoney ( player, 4000 ) executeSQLQuery("UPDATE Turf_System SET GangOwner=?,r=?,g=?,b=? WHERE Turfs=?", playerGang, tonumber(r), tonumber(g), tonumber(b), "Turf["..tostring(id).."]" ) -- setElementData ( turf, "getTurfGang", playerGang ) end end setRadarAreaFlashing ( area, false ) end ,120000, 1) -- 120000 end end end end end addEventHandler ( "onColShapeHit", root, radar )
- 
	سلام عليكم ورحمه الله وبركاتهه بدون مقدمات انا ابي ذا السكربت يشتغل مع سكربت حق احمد فيف حق القروبات https://community.multitheftauto.com/in ... ls&id=6772 وحاولت اعدل عليه لكن طلع لي غلط في الدي بوق في ذا السطر .. هنا الغلط local r, g, b = unpack ( exports [ "groups-system" ]:getGangColour ( playerGang ) ) وذا مود القروبات حق احمد https://community.multitheftauto.com/in ... ls&id=8036 Edit: استفسار بسيط .. كيف اخلي الكود ذا اذا قتل مثلا واحد في تيم Test ياخذ 5000 واذا قتل واحد ثاني في غير تيم Test ياخذ 2000 وذا الكود function rewardOnWasted ( ammo, killer, killerweapon, bodypart ) if ( killer ) and ( killer ~= source ) then givePlayerMoney ( killer, 1000 ) end end addEventHandler ( "onPlayerWasted", getRootElement(), rewardOnWasted )
- 
	اول شي آسف جدا اني رفعت الموضوع >< ثاني شي ي عآشق الشرق جربت الفنكشن الي قلت لي عليه وما زبط والسطر الي غيرته 53 function playerLogin (thePreviousAccount, theCurrentAccount, autoLogin) if not (isGuestAccount (getPlayerAccount (source))) then local accountData = getAccountData (theCurrentAccount, "funmodev2-money") if (accountData) then local playerMoney = getAccountData (theCurrentAccount, "funmodev2-money") local playerArmor = getAccountData (theCurrentAccount, "funmodev2-armor") local playerWanted = getAccountData (theCurrentAccount, "funmodev2-wantedlevel") local playerWeaponID0 = getAccountData (theCurrentAccount, "funmodev2-weaponID0") local playerWeaponID1 = getAccountData (theCurrentAccount, "funmodev2-weaponID1") local playerWeaponID2 = getAccountData (theCurrentAccount, "funmodev2-weaponID2") local playerWeaponID3 = getAccountData (theCurrentAccount, "funmodev2-weaponID3") local playerWeaponID4 = getAccountData (theCurrentAccount, "funmodev2-weaponID4") local playerWeaponID5 = getAccountData (theCurrentAccount, "funmodev2-weaponID5") local playerWeaponID6 = getAccountData (theCurrentAccount, "funmodev2-weaponID6") local playerWeaponID7 = getAccountData (theCurrentAccount, "funmodev2-weaponID7") local playerWeaponID8 = getAccountData (theCurrentAccount, "funmodev2-weaponID8") local playerWeaponID9 = getAccountData (theCurrentAccount, "funmodev2-weaponID9") local playerWeaponID10 = getAccountData (theCurrentAccount, "funmodev2-weaponID10") local playerWeaponID11 = getAccountData (theCurrentAccount, "funmodev2-weaponID11") local playerWeaponID12 = getAccountData (theCurrentAccount, "funmodev2-weaponID12") local playerWeaponAmmo0 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo0") local playerWeaponAmmo1 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo1") local playerWeaponAmmo2 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo2") local playerWeaponAmmo3 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo3") local playerWeaponAmmo4 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo4") local playerWeaponAmmo5 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo5") local playerWeaponAmmo6 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo6") local playerWeaponAmmo7 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo7") local playerWeaponAmmo8 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo8") local playerWeaponAmmo9 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo9") local playerWeaponAmmo10 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo10") local playerWeaponAmmo11 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo11") local playerWeaponAmmo12 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo12") setPlayerMoney (source, playerMoney) setTimer (setPedArmor, 50, 1, source, playerArmor) setTimer (setPlayerWantedLevel, 50, 1, source, playerWanted) giveWeapon(source, playerWeaponID0, playerWeaponAmmo0, true) giveWeapon(source, playerWeaponID1, playerWeaponAmmo1, false) giveWeapon(source, playerWeaponID2, playerWeaponAmmo2, false) giveWeapon(source, playerWeaponID3, playerWeaponAmmo3, false) giveWeapon(source, playerWeaponID4, playerWeaponAmmo4, false) giveWeapon(source, playerWeaponID5, playerWeaponAmmo5, false) giveWeapon(source, playerWeaponID6, playerWeaponAmmo6, false) giveWeapon(source, playerWeaponID7, playerWeaponAmmo7, false) giveWeapon(source, playerWeaponID8, playerWeaponAmmo8, false) giveWeapon(source, playerWeaponID9, playerWeaponAmmo9, false) giveWeapon(source, playerWeaponID10, playerWeaponAmmo10, false) giveWeapon(source, playerWeaponID11, playerWeaponAmmo11, false) giveWeapon(source, playerWeaponID12, playerWeaponAmmo12, false) end end end addEventHandler ("onElementModelChange", getRootElement(), playerLogin) function onQuit (quitType, reason, responsibleElement) if not (isGuestAccount (getPlayerAccount (source))) then account = getPlayerAccount (source) if (account) then setAccountData (account, "funmodev2-money", tostring (getPlayerMoney (source))) setAccountData (account, "funmodev2-armor", tostring (getPedArmor (source))) setAccountData (account, "funmodev2-wantedlevel", getPlayerWantedLevel (source)) setAccountData (account, "funmodev2-weaponID0", getPedWeapon (source, 0)) setAccountData (account, "funmodev2-weaponID1", getPedWeapon (source, 1)) setAccountData (account, "funmodev2-weaponID2", getPedWeapon (source, 2)) setAccountData (account, "funmodev2-weaponID3", getPedWeapon (source, 3)) setAccountData (account, "funmodev2-weaponID4", getPedWeapon (source, 4)) setAccountData (account, "funmodev2-weaponID5", getPedWeapon (source, 5)) setAccountData (account, "funmodev2-weaponID6", getPedWeapon (source, 6)) setAccountData (account, "funmodev2-weaponID7", getPedWeapon (source, 7)) setAccountData (account, "funmodev2-weaponID8", getPedWeapon (source, -- s8) -->) setAccountData (account, "funmodev2-weaponID9", getPedWeapon (source, 9)) setAccountData (account, "funmodev2-weaponID10", getPedWeapon (source, 10)) setAccountData (account, "funmodev2-weaponID11", getPedWeapon (source, 11)) setAccountData (account, "funmodev2-weaponID12", getPedWeapon (source, 12)) setAccountData (account, "funmodev2-weaponAmmo0", getPedTotalAmmo (source, 0)) setAccountData (account, "funmodev2-weaponAmmo1", getPedTotalAmmo (source, 1)) setAccountData (account, "funmodev2-weaponAmmo2", getPedTotalAmmo (source, 2)) setAccountData (account, "funmodev2-weaponAmmo3", getPedTotalAmmo (source, 3)) setAccountData (account, "funmodev2-weaponAmmo4", getPedTotalAmmo (source, 4)) setAccountData (account, "funmodev2-weaponAmmo5", getPedTotalAmmo (source, 5)) setAccountData (account, "funmodev2-weaponAmmo6", getPedTotalAmmo (source, 6)) setAccountData (account, "funmodev2-weaponAmmo7", getPedTotalAmmo (source, 7)) setAccountData (account, "funmodev2-weaponAmmo8", getPedTotalAmmo (source, -- s8) -->) setAccountData (account, "funmodev2-weaponAmmo9", getPedTotalAmmo (source, 9)) setAccountData (account, "funmodev2-weaponAmmo10", getPedTotalAmmo (source, 10)) setAccountData (account, "funmodev2-weaponAmmo11", getPedTotalAmmo (source, 11)) setAccountData (account, "funmodev2-weaponAmmo12", getPedTotalAmmo (source, 12)) end end end addEventHandler ("onPlayerQuit", getRootElement(), onQuit) function convertWeaponsToJSON(player) local weaponSlots = 12 local weaponsTable = {} for slot=1, weaponSlots do local weapon = getPedWeapon( source, slot ) local ammo = getPedTotalAmmo( source, slot ) if (weapon > 0 and ammo > 0) then weaponsTable[weapon] = ammo end end return toJSON(weaponsTable) end addEventHandler("onPlayerWasted", root, function() local weapons = convertWeaponsToJSON(source) setElementData(source,"tempWeapons",weapons) takeAllWeapons ( source ) end ) function giveWeaponsFromJSON(player, weapons) if (weapons and weapons ~= "") then for weapon, ammo in pairs(fromJSON(weapons)) do if (weapon and ammo) then giveWeapon(player, tonumber(weapon), tonumber(ammo)) end end end end addEventHandler("onPlayerSpawn", root, function () local weapons = getElementData(source,"tempWeapons") if (weapons) then giveWeaponsFromJSON(source, weapons) removeElementData ( source, "tempWeapons" ) end end ) function saveWeaponStats(player) if (not player or not isElement(player)) then return end local account = getPlayerAccount(player) if (account and not isGuestAccount(account)) then local stats = "" for stat=69, 81 do local value = getPedStat(player, stat) stats = stats ..",".. stat ..";".. value end setAccountData(account, "weaponStats", stats) end end addEventHandler("onPlayerQuit",root,function () saveWeaponStats(source) end) function loadWeaponStats(player) if (not player or not isElement(player)) then return end local account = getPlayerAccount(player) if (account and not isGuestAccount(account)) then local statsData = getAccountData(account,"weaponStats") local stats = split(statsData, ",") for k, v in ipairs(stats) do local stat = split(v, ";") setPedStat(player, tonumber(stat[1]), tonumber(stat[2])) end end end ويآ ريت احد يساعدني في الكود الثاني اكون شاكر له جدآ ><
- 
	ورآه ما تكمل الكود بنفسك -_-"
- 
	يب كلها .. المفروض كذا : addCommandHandler( "Armor", function( player ) setPedArmor ( player, 100 ) end ) اها اوك يعطيك العافيةة
- 
	من باب التنبيه .. الاكواد غلط ذذ كلها -_-" ؟
