Joker_Mta Posted August 31, 2012 Share Posted August 31, 2012 السلام عليكم ورحمة الله وبركاته guiGridListSetItemText(GUIEditor_Grid[1], row, 1, getElementData(player,"Deaths"), false, false) المقصود عدد الموت يكون في السته ايش الأيفنت المطلوب؟ Link to comment
TAPL Posted August 31, 2012 Share Posted August 31, 2012 https://wiki.multitheftauto.com/wiki/OnClientPlayerWasted Link to comment
Joker_Mta Posted August 31, 2012 Author Share Posted August 31, 2012 https://wiki.multitheftauto.com/wiki/OnClientPlayerWasted تسلم لاكن ايش المشكله guiGridListAddColumn(GUIEditor_Grid[1],"PlayerName",0.5) guiGridListAddColumn(GUIEditor_Grid[1],"Kill",0.1) guiGridListAddColumn(GUIEditor_Grid[1],"Deaths",0.1) function U() guiGridListClear(GUIEditor_Grid[1]) for i, player in ipairs (getElementsByType ("player")) do local row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText(GUIEditor_Grid[1], row, 1, getPlayerName(player), false, false) guiGridListSetItemText(GUIEditor_Grid[1], row, 2, getElementData(player,"Kills"), false, false) guiGridListSetItemText(GUIEditor_Grid[1], row, 3, getElementData(player,"Deaths"), false, false) if i == 20 then break end end end addEventHandler("onClientResourceStart",resourceRoot,Ul) addEventHandler("onClientPlayerWasted",root,U) ؟ Link to comment
TAPL Posted August 31, 2012 Share Posted August 31, 2012 addEventHandler("onClientResourceStart",resourceRoot,Ul) addEventHandler("onClientResourceStart",resourceRoot,U) Link to comment
Joker_Mta Posted August 31, 2012 Author Share Posted August 31, 2012 addEventHandler("onClientResourceStart",resourceRoot,Ul) addEventHandler("onClientResourceStart",resourceRoot,U) للحين العطل له GUIEditor_Window = {} GUIEditor_Grid = {} GUIEditor_Window = {} GUIEditor_Grid = {} local x,y = guiGetScreenSize() GUIEditor_Window[1] = guiCreateWindow(x/2-179,y/2-203,358,405,"kill / Deaths",false) guiSetVisible ( GUIEditor_Window[1] ,false ) GUIEditor_Grid[1] = guiCreateGridList(9,24,340,372,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Player Name",0.6) guiGridListAddColumn(GUIEditor_Grid[1],"Player Kills",0.3) function U() guiGridListClear(GUIEditor_Grid[1]) for i, player in ipairs (getElementsByType ("player")) do local row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText(GUIEditor_Grid[1], row, 1, getPlayerName(player), false, false) guiGridListSetItemText(GUIEditor_Grid[1], row, 2, getElementData(player,"Kills"), false, false) guiGridListSetItemText(GUIEditor_Grid[1], row, 1, getElementData(player,"Deaths"), false, false) if i == 20 then break end end end addEventHandler("onClientResourceStart",resourceRoot,U) addEventHandler("onClientPlayerWasted",root,U) bindKey ( "F1" , "down" , 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 (false ) guiSetInputEnabled(true) end end ) مايتغير العدد ابد لا للي قتل ولا للي انقتل Link to comment
TAPL Posted August 31, 2012 Share Posted August 31, 2012 GUIEditor_Window = {} GUIEditor_Grid = {} GUIEditor_Window = {} GUIEditor_Grid = {} local x,y = guiGetScreenSize() GUIEditor_Window[1] = guiCreateWindow(x/2-179,y/2-203,358,405,"kill / Deaths",false) guiSetVisible(GUIEditor_Window[1] ,false) GUIEditor_Grid[1] = guiCreateGridList(9,24,340,372,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Player Name",0.6) guiGridListAddColumn(GUIEditor_Grid[1],"Player Kills",0.3) guiGridListAddColumn(GUIEditor_Grid[1],"Player Deaths",0.3) function U() guiGridListClear(GUIEditor_Grid[1]) for i, player in ipairs (getElementsByType ("player")) do local row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText(GUIEditor_Grid[1], row, 1, getPlayerName(player), false, false) guiGridListSetItemText(GUIEditor_Grid[1], row, 2, getElementData(player,"Kills"), false, false) guiGridListSetItemText(GUIEditor_Grid[1], row, 3, getElementData(player,"Deaths"), false, false) if i == 20 then break end end end addEventHandler("onClientResourceStart",resourceRoot,U) addEventHandler("onClientPlayerWasted",root,U) bindKey ( "F1" , "down" , 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 (false ) guiSetInputEnabled(true) end end ) Link to comment
Joker_Mta Posted August 31, 2012 Author Share Posted August 31, 2012 الى الأن هاد مو شغال مايتغير العدد مايجي عدد للاعب لما يقتل او ينقتل Link to comment
TAPL Posted August 31, 2012 Share Posted August 31, 2012 أرجع أقرأ الموضوع الي أنت نسخت منه الكود viewtopic.php?f=119&t=47064#p468595 و لاحظ أن المود ذا شغال مع البيس مود فقط Link to comment
Joker_Mta Posted August 31, 2012 Author Share Posted August 31, 2012 طول الوقت هاد والمشكله انه ماينفع الا للبيس مود طيب لو اريد للهجوله كيف؟ Link to comment
TAPL Posted August 31, 2012 Share Posted August 31, 2012 GUIEditor_Window = {} GUIEditor_Grid = {} GUIEditor_Window = {} GUIEditor_Grid = {} local x,y = guiGetScreenSize() GUIEditor_Window[1] = guiCreateWindow(x/2-179,y/2-203,358,405,"kill / Deaths",false) guiSetVisible(GUIEditor_Window[1] ,false) GUIEditor_Grid[1] = guiCreateGridList(9,24,340,372,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],1) guiGridListAddColumn(GUIEditor_Grid[1],"Player Name",0.5) guiGridListAddColumn(GUIEditor_Grid[1],"Player Kills",0.2) guiGridListAddColumn(GUIEditor_Grid[1],"Player Deaths",0.2) setElementData(localPlayer, "Kills", 0) setElementData(localPlayer, "Deaths", 0) addEventHandler("onClientPlayerWasted",root, function(killer) if killer then local k = getElementData(killer,"Kills") or 0 setElementData(killer, "Kills",k+1) end local d = getElementData(source, "Deaths") or 0 setElementData(source, "Deaths",d+1) end) function U() guiGridListClear(GUIEditor_Grid[1]) for i, player in ipairs (getElementsByType ("player")) do local row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText(GUIEditor_Grid[1], row, 1, getPlayerName(player), false, false) guiGridListSetItemText(GUIEditor_Grid[1], row, 2, getElementData(player,"Kills") or 0, false, false) guiGridListSetItemText(GUIEditor_Grid[1], row, 3, getElementData(player,"Deaths") or 0, false, false) if i == 20 then break end end end addEventHandler("onClientResourceStart",resourceRoot,U) addEventHandler("onClientPlayerWasted",root,U) bindKey("F1" , "down", function() guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end) Link to comment
Joker_Mta Posted August 31, 2012 Author Share Posted August 31, 2012 GUIEditor_Window = {} GUIEditor_Grid = {} GUIEditor_Window = {} GUIEditor_Grid = {} local x,y = guiGetScreenSize() GUIEditor_Window[1] = guiCreateWindow(x/2-179,y/2-203,358,405,"kill / Deaths",false) guiSetVisible(GUIEditor_Window[1] ,false) GUIEditor_Grid[1] = guiCreateGridList(9,24,340,372,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],1) guiGridListAddColumn(GUIEditor_Grid[1],"Player Name",0.5) guiGridListAddColumn(GUIEditor_Grid[1],"Player Kills",0.2) guiGridListAddColumn(GUIEditor_Grid[1],"Player Deaths",0.2) setElementData(localPlayer, "Kills", 0) setElementData(localPlayer, "Deaths", 0) addEventHandler("onClientPlayerWasted",root, function(killer) if killer then local k = getElementData(killer,"Kills") or 0 setElementData(killer, "Kills",k+1) end local d = getElementData(source, "Deaths") or 0 setElementData(source, "Deaths",d+1) end) function U() guiGridListClear(GUIEditor_Grid[1]) for i, player in ipairs (getElementsByType ("player")) do local row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText(GUIEditor_Grid[1], row, 1, getPlayerName(player), false, false) guiGridListSetItemText(GUIEditor_Grid[1], row, 2, getElementData(player,"Kills") or 0, false, false) guiGridListSetItemText(GUIEditor_Grid[1], row, 3, getElementData(player,"Deaths") or 0, false, false) if i == 20 then break end end end addEventHandler("onClientResourceStart",resourceRoot,U) addEventHandler("onClientPlayerWasted",root,U) bindKey("F1" , "down", function() guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end) تسلملي اخي تابل والله ماتقصر 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