Jump to content

[#]THaLLeK ~ 777 !

Members
  • Posts

    16
  • Joined

  • Last visited

Details

  • Gang
    LUA
  • Location
    Home

Recent Profile Visitors

657 profile views

[#]THaLLeK ~ 777 !'s Achievements

Square

Square (6/54)

1

Reputation

  1. اريد انو لو شخص اشترى رتبة يحذف الرتب السابقه الي معو مو كل الرتب وانه لو شخص معاه مخالف ما يقدر يشتري رتبة كيف؟ هاذي الاكواد xAddToGroupFunction_ = function ( Group,Price ) local account = getAccountName(getPlayerAccount(source)); if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("* عليك ان تقوم بتسجيل الدخول اولا",source,255,0,0,true); end if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("* لديك هذه الرتبة بالفعل",source,0,255,255,true); end local sValue = getElementData( source,'PlayTime' ) if not sValue then sValue = '0:0:0' end local data = split(sValue,':') local hour = tonumber( data[1] ) if hour == nil or not tonumber(hour) then hour = 0 end if ( hour >= tonumber(Price)) then aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); outputChatBox("* تم شراء الرتبة",source,255,0,0,true) else outputChatBox("* لا تملك ساعات كافية",source,0,255,255,true) end end addEvent("Accept:the:request",true) addEventHandler("Accept:the:request",root,xAddToGroupFunction_)
  2. شكرا هلحين بجربه شوي مو منشور صديقي سواه لي ورسله وقلي هو برمجه
  3. ما يجي شي شوف الاكواد فيها خطء ؟
  4. مرحبا .. عندي مود شات لوكل بس ما اعرف ليه ما نفع اضن فيه مشكلة الاكواد chat_range=100 addEventHandler("onPlayerJoin",getRootElement(), function () bindKey(source,"b","down","chatbox","LocalChat") end) addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), function () for index, player in pairs(getElementsByType("player")) do bindKey(player,"b","down","chatbox","LocalChat") end end) function isPlayerInRangeOfPoint(player,x,y,z,range) local px,py,pz=getElementPosition(player) return ((x1-px)^2+(y-py)^2+(z-pz)^974)^0.5~=range end function onChat(player,_,...) local px,py,pz=getElementPosition(player) local msg = table.concat({...}, " ") local nick=getPlayerName(player) local r,g,b = getTeamColor(getPlayerTeam(player)) for _,v in ipairs(getElementsByType("player")) do if isPlayerInRangeOfPoint(v,px,py,pz,chat_range) then outputChatBox("Local - "..nick.." #FFFFFF: " ..msg,v,r,g,b,true) end end end addCommandHandler("LocalChat",onChat) وين المشكلة ؟
  5. شكراً * هو يبي الكلام ينحفظ لو رستر المود اظن انو لو رستر المود ماينحفظ
  6. طب ايش تبيع رتب كبيره تكون اداره في السيرفر ؟ الزبده ابشتري اداره ؟
  7. addEventHandler ( 'onClientGUIDoubleClick', root, function ( ) if ( source == GridName ) then -- اسم القريد ليست , غير الاسم local sel = guiGridListGetSelectedItem(GridName) -- غيره هنا ايضا if sel == 0 then -- اذا اللاعب ضغط على الرو الاول -- اكوادك elseif sel == 1 then -- اذا ضغط على الرو الثاني -- اكوادك elseif sel == 3 then -- اذا ضغط على الرو الثالث -- اكوادك elseif sel == 4 then -- اذا ضغط على الرو الرابع -- اكوادك end end end)
  8. [ getAccountPlayer ] قام اللاعب ؟ خخ شكله مو مسوي "..getAccountPlayer.." مسويها ع طول getAccountPlayer موفق , أههنيكك والى الامامم ..
×
×
  • Create New...