-
Posts
95 -
Joined
-
Last visited
About Tarek1
- Birthday 21/12/2000
Details
-
Gang
URG
-
Location
Egypt
-
Occupation
Owner
-
Interests
football
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Tarek1's Achievements
Punk-@ss B*tch (12/54)
1
Reputation
-
انتا كدا خليت القاتل و المقتول = attacker
-
دا كدا تمام لما واحد من تيم شرطه يقتل واحد عليه اكثر من 3 ستار يقوم بنقل الاعب المقتول الي مكان معين addEventHandler("onPlayerWasted",getRootElement(),function(attacker) local level = getPlayerWantedLevel ( thePlayer ) if ( level > 3 ) then if ( attacker ) and ( attacker ~= source ) and ( getPlayerTeam(attacker) ) and ( getTeamName(getPlayerTeam(attacker)) == "شرطي" ) then setElementPosition ( source,x,y,z ) end end end ) ؟
-
طب هوا فيه code يجيب الاعب المقتول ؟
-
فكره الاكواد لو لاعب من تيم الشرطه قام بقتل لاعب لديه اكثر من 4 ستار ينتقل هذا الاعب الي السجن
-
نفس المشكله المشكله هنا :outputChatBox("("..ctr..") "..string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "")..": #FFFFFF"..table.concat({...}, " "), v, r, g, b, true)
-
al sevrer side ملهوش لازمه Binds bs
-
if plang[getElementData(player, "Country")] then
-
Error : Line 7:attempt to index global 'plang' ( anil value)
-
addCommandHandler("LangChat", function (thePlayer, cn, ...) if isPlayerMuted(thePlayer) or isGuestAccount(getPlayerAccount(thePlayer)) then return end if isTimer(spam[thePlayer]) then exports.URGMessages:sendClientMessage("Anti-spam: please refrain from spamming the chats!",thePlayer, 255, 0, 0) return end if plang[getElementData(thePlayer, "Country")] then ctr = plang[getElementData(thePlayer, "Country")] isclg = true else ctr = getElementData(thePlayer, "Country") isclg = false end r, g, b = getTeamColor(getPlayerTeam(thePlayer)) spam[thePlayer] = setTimer(function () end, 1000, 1) for k, v in ipairs(getElementsByType("player")) do --- getElementData(v, "nonEnglishChat")) if(ifnot(isclg, plang[getElementData(v, "Country")], getElementData(v, "Country")) == ctr ) then outputChatBox("("..ctr..") "..string.gsub(getPlayerName(thePlayer), "#%x%x%x%x%x%x", "")..": #FFFFFF"..table.concat({...}, " "), v, r, g, b, true) end end outputServerLog("LANGCHAT: ("..ctr..") "..getPlayerName(thePlayer)..": "..table.concat({...}, " ")) logThis("Lang Chat", "("..ctr..") "..getPlayerName(thePlayer)..": "..table.concat({...}, " ")) end) function ifnot(a, b, c) if a then return b else return c end end plang = { ["Portugal"] = "Portuguese", ["Brazil"] = "Portuguese", ["Slovenia"] = "Ex-Yu", ["Serbia"] = "Ex-Yu", ["Croatia"] = "Ex-Yu", ["Macedonia"] = "Ex-Yu", } addEventHandler("onPlayerJoin", getRootElement(), function () bindKey(source, "5", "down", "chatbox", "LangChat") dap = source fetchRemote("http://162.250.144.215/json/"..getPlayerIP(dap), countryCheck, "", false, dap) end) function countryCheck(resp, erno, dap) if resp ~= "ERROR" then if(fromJSON(resp)["query"] == "127.0.0.1") then pip = "Portugal" else pip = fromJSON(resp)["country"] end setElementData(dap, "Country", pip) setElementData(dap, "CC", string.lower(fromJSON(resp)["countryCode"] or "zz")) if fileExists(":admin/client/images/flags/"..getElementData(dap, "CC")..".png") then path = ":admin/client/images/flags/"..getElementData(dap, "CC")..".png" else path = ":admin/client/images/flags/zz.png" end setElementData(dap,"Pic",path) end end addCommandHandler("LangChat", function (thePlayer, cn, ...) if isPlayerMuted(thePlayer) or isGuestAccount(getPlayerAccount(thePlayer)) then return end if isTimer(spam[thePlayer]) then exports.URGMessages:sendClientMessage("Anti-spam: please refrain from spamming the chats!",thePlayer, 255, 0, 0) return end if plang[getElementData(thePlayer, "Country")] then ctr = plang[getElementData(thePlayer, "Country")] isclg = true else ctr = getElementData(thePlayer, "Country") isclg = false end r, g, b = getTeamColor(getPlayerTeam(thePlayer)) spam[thePlayer] = setTimer(function () end, 1000, 1) for k, v in ipairs(getElementsByType("player")) do --- getElementData(v, "nonEnglishChat")) if(ifnot(isclg, plang[getElementData(v, "Country")], getElementData(v, "Country")) == ctr ) then outputChatBox("("..ctr..") "..string.gsub(getPlayerName(thePlayer), "#%x%x%x%x%x%x", "")..": #FFFFFF"..table.concat({...}, " "), v, r, g, b, true) end end outputServerLog("LANGCHAT: ("..ctr..") "..getPlayerName(thePlayer)..": "..table.concat({...}, " ")) logThis("Lang Chat", "("..ctr..") "..getPlayerName(thePlayer)..": "..table.concat({...}, " ")) end) function ifnot(a, b, c) if a then return b else return c end end plang = { ["Portugal"] = "Portuguese", ["Brazil"] = "Portuguese", ["Slovenia"] = "Ex-Yu", ["Serbia"] = "Ex-Yu", ["Croatia"] = "Ex-Yu", ["Macedonia"] = "Ex-Yu", } addEventHandler("onPlayerJoin", getRootElement(), function () bindKey(source, "5", "down", "chatbox", "LangChat") dap = source fetchRemote("http://162.250.144.215/json/"..getPlayerIP(dap), countryCheck, "", false, dap) end) function countryCheck(resp, erno, dap) if resp ~= "ERROR" then if(fromJSON(resp)["query"] == "127.0.0.1") then pip = "Portugal" else pip = fromJSON(resp)["country"] end setElementData(dap, "Country", pip) setElementData(dap, "CC", string.lower(fromJSON(resp)["countryCode"] or "zz")) if fileExists(":admin/client/images/flags/"..getElementData(dap, "CC")..".png") then path = ":admin/client/images/flags/"..getElementData(dap, "CC")..".png" else path = ":admin/client/images/flags/zz.png" end setElementData(dap,"Pic",path) end end
-
--Error attempt to concatenate global 'ctr' ( a bollean value ) outputChatBox("("..ctr..") "..string.gsub(getPlayerName(thePlayer), "#%x%x%x%x%x%x", "")..": #FFFFFF"..table.concat({...}, " "), v, r, g, b, true)
-
هل يوجد كود يجعلني استطيع كتابه الاعداد موجب فقط في الميمو ؟؟ Window = guiCreateWindow(0.3664,0.2764,0.3508,0.3477,"GUI Window",true) guiCreateMemo(17,79,414,246,"",false,Window)