Jump to content

Rockyz

Members
  • Posts

    1,862
  • Joined

  • Days Won

    8

Everything posted by Rockyz

  1. addEventHandler("onPlayerWasted", root, function(_, killer) if killer and killer ~= source and getElementType(killer) == "player" then setElementData ( killer, "PointsKill", tonumber ( ( getElementData ( killer, "PointsKill" ) or 0 ) ) +1 ) exports["guimessages"]:outputServer(killer, "You Has Got Kill Point", 255, 255, 0) end end) addEventHandler("onPlayerWasted", root, function() setElementData(source, "PointsKill", 0) end ) addEventHandler ( "onElementDataChange", root, function ( dataName, oldValue ) if getElementType(source) == "player" then if dataName == "PointsKill" then local points = tonumber ( getElementData ( source, "PointsKill" ) ) or 0 if points == 20 then triggerClientEvent(root, "setPlayerSpeed", source) elseif points == 10 then setPedStat(source, 24, 1000) setElementHealth(source, 200) elseif points == 25 then triggerClientEvent ( root, "JUMPP", source ) elseif points == 30 then giveWeapon ( source, 38, 5000 ) elseif points == 40 then setElementAlpha(source,0) elseif points == 50 then givePedJetPack ( source ) triggerClientEvent(root, "setPlayerSpeed5", source) elseif points == 90 then givePedJetPack ( source ) triggerClientEvent(root, "setPlayerSpeed10", source) end end end end ) Client : addEvent ( "JUMPP", true ) addEventHandler ( "JUMPP", root, function ( ) setWorldSpecialPropertyEnabled("extrajump", true) end )
  2. جرب الكود مرة ثانية طيب وقول ليي سطر كم
  3. جرب الكود مرة الثانية اذا ماشتغل شف الديبق
  4. addEventHandler("onPlayerWasted", root, function(_, killer) if killer and killer ~= source and getElementType(killer) == "player" then setElementData ( killer, "PointsKill", tonumber ( ( getElementData ( killer, "PointsKill" ) or 0 ) ) +1 ) exports["guimessages"]:outputServer(killer, "You Has Got Kill Point", 255, 255, 0) end end) addEventHandler("onPlayerWasted", root, function() setElementData(source, "PointsKill", 0) end ) addEventHandler ( "onElementDataChange", root, function ( dataName, oldValue ) if getElementType(source) == "player" then if dataName == "PointsKill" then local points = tonumber ( getElementData ( localPlayer, "PointsKill" ) ) or 0 if points == 20 then triggerClientEvent(root, "setPlayerSpeed", source) elseif points == 10 then setPedStat(source, 24, 1000) setElementHealth(source, 200) elseif points == 25 then triggerClientEvent ( root, "JUMPP", source ) elseif points == 30 then giveWeapon ( source, 38, 5000 ) elseif points == 40 then setElementAlpha(source,0) elseif points == 50 then givePedJetPack ( source ) triggerClientEvent(root, "setPlayerSpeed5", source) elseif points == 90 then givePedJetPack ( source ) triggerClientEvent(root, "setPlayerSpeed10", source) end end end end ) Client : addEvent ( "JUMPP", true ) addEventHandler ( "JUMPP", root, function ( ) setWorldSpecialPropertyEnabled("extrajump", true) end )
  5. addEventHandler("onPlayerWasted", root, function(_, killer) if killer and killer ~= source and getElementType(killer) == "player" then local points = getElementData(killer, "PointsKill") or 0 setElementData(killer, "PointsKill", points+1) exports["guimessages"]:outputServer(killer, "You Has Got Kill Point", 255, 255, 0) if points == 20 then triggerClientEvent(root, "setPlayerSpeed", killer) elseif points == 10 then setPedStat(killer, 24, 1000) setElementHealth(killer, 200) elseif points == 25 then setWorldSpecialPropertyEnabled("extrajump", true) else setWorldSpecialPropertyEnabled("extrajump", false) elseif points == 30 then giveWeapon ( killer, 38, 5000 ) elseif points == 40 then setElementAlpha(killer,0) elseif points == 50 then givePedJetPack ( killer ) triggerClientEvent(root, "setPlayerSpeed5", killer) elseif points == 90 then givePedJetPack ( killer ) triggerClientEvent(root, "setPlayerSpeed10", killer) end end end) addEventHandler("onPlayerWasted", root, function() setElementData(source, "PointsKill", 0) end )
  6. جرب كذا : Client Side : -- # ClientSide addCommandHandler ( "setMEspeed", function ( plr, cmd, speed ) if ( getElementType ( plr ) == "player" ) then if ( speed ) then triggerServerEvent ( "SPEEDaa", plr, speed ); end end end ); addEvent ( "SPEEDa", true ); addEventHandler ( "SPEEDa", resourceRoot, function ( speed ) setGameSpeed ( speed ); end ); Server Side : -- #Server Side : addEvent ( "SPEEDaa", true ); addEventHandler ( "SPEEDaa", resourceRoot, function ( speed ) triggerClientEvent ( root, "SPEEDa", source, speed ); end ); اكتب في اف 8 setMEspeed 10 بتصير سرعة العبة 10
  7. اذا انت مبرمج اول شي لازم تنتبه الى الساينتكس bool setElementVelocity ( element theElement, float speedX, float speedY, float speedZ )
  8. Client Side setWorldSpecialPropertyEnabled اذا تبي السرعة تبان فقط للاعب استخدم في الكلنت setGameSpeed اذا تبي تبان للكل وانت بس الي تتفعل معك استخدم تريقر
  9. you only can give to a player
  10. منع زر Btnp = { --{"الزر"}, {"B"}, {"F7"} }; addEventHandler ( "onClientKey", root, function ( button, press ) for k,v in ipairs ( Btnp ) do if button == v[1] and press then cancelEvent ( ); end end end ); مايقدر يغير اسم السكربت فقط يقدر يخليهم ذي الاسامي Rname = { -- {"اسم السكربت"}, {"TAG_MOD"}, {"Tag_Mod_By_TEST"} }; addEventHandler ( "onResourceStart", resourceRoot, function ( thisRes ) for k,v in ipairs ( Rname ) do if getResourceName ( thisRes ) ~= v[1] then cancelEvent ( ); outputChatBox ( "Please Change Script Name To " .. v[1], root, 255, 0, 0, true ); end end end ); وفي طريقة من الـ Debug script لان بعض الفنكشنات تحتاج الى قروب ادمن , قبل لاتضيف المود الى قروب ادمن رح شف الديبق وش يطلع فيه warning لـ aclGroupAddObject والخ ؟
  11. you canonnt give / take / get ped Money
  12. # Server Side addEventHandler("onPlayerChat",root, function (msg) if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then return end local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) cancelEvent() if not isWord(msg) then if not LM[source] then LM[source] = msg else if LM[source] ~= msg then LM[source] = msg else return outputChatBox('#FFFFFF[ #0099FF Chat.Seystem #FFFFFF]#FF0000 : منوع تكرر كلام',source,255,0,0,true) end end if not isTimer(time[source]) then if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Console")) then outputChatBox("#C11B17# 〖 Server Owner 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("King Of Time")) then outputChatBox("#FFFFFF# 〖King Of Time 〗 " .. getPlayerName(source) .. ":#EBDDB2 " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("V.I.P")) then outputChatBox("#c1c1c1# 〖 V.I.P 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("VotePolice")) then outputChatBox("#02A2B0#〖 VotePolice 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Police")) then outputChatBox("#00B1C1# 〖 Police 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("VoteModerator")) then outputChatBox("#00BCCD# 〖 VoteModerator 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Moderator")) then outputChatBox("#00CDDF# 〖 Moderator 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Moderator2")) then outputChatBox("#00D9ED# 〖 Moderator2 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("SuperModerator")) then outputChatBox("#00EAFF# 〖 SuperModerator 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("SuperModerator2")) then outputChatBox("#00B300# 〖 SuperModerator2 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin")) then outputChatBox("#00CF00# 〖 Admin 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Head.Admin")) then outputChatBox("#00E700# 〖 Head.Admin 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Speical Admin")) then outputChatBox("#00F400# 〖Speical Admin 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Prince of Server")) then outputChatBox("#00FF00# 〖 Prince of Server 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Leader Admin")) then outputChatBox("#3BB9FF# 〖 Leader Admin 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Professional Admin")) then outputChatBox("# [ Professional Admin ] " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("V.I.P Admin")) then outputChatBox("#0069c7# 〖 V.I.P Admin 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin Top")) then outputChatBox("#FFFFFF# 〗 Admin Top 〖 " .. getPlayerName(source) .. ":#EBDDB2" .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("King Of Server")) then outputChatBox("#0033CC# #FFFFFF〖 #0033CCKing O#FFFFFFf Admin 〗 " .. getPlayerName(source) .. ":#EBDDB2 " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Best Admin")) then outputChatBox("#CC0000# 〖 Best Admin 〗 " .. getPlayerName(source) .. ":#EBDDB2 " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin Boss")) then outputChatBox("#FFF000##FFFFFF 〖 #FFFFFFAdmin#FF0000Boss 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin Plus")) then outputChatBox("#003366#〖 Admin Plus 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Big admin")) then outputChatBox("#6666CC# 〖Big admin 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin Monitor")) then outputChatBox("#FFF000# 〖 Admin Monitor 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Emperor Of Server")) then outputChatBox("#00FF00# 〗 Emperor Of Server 〖 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin Official")) then outputChatBox("#cc0000# 〖 Admin Official 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin Prime")) then outputChatBox("#cc0000# 〖 Admin Prime 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin General")) then outputChatBox("#cc0000# 〖 Admin General 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("KING ADMIN ")) then outputChatBox("#cc0000# 〖 KING ADMIN 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("ADMIN POWER")) then outputChatBox("#cc0000# 〖 ADMIN POWER 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("ADMIN SERVER")) then outputChatBox("#cc0000# 〖 ADMIN SERVER 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("ADMIN M7TRF")) then outputChatBox("#cc0000# 〖 ADMIN M7TRF 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("PRINCE ADMIN")) then outputChatBox("#cc0000# 〖 PRINCE ADMIN 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Senior Admin")) then outputChatBox("#cc0000# 〖 Senior Admin 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("SPECIALPRINCE")) then outputChatBox("#cc0000# 〖 SPECIALPRINCE 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Control")) then outputChatBox("#cc0000# 〖 مصمم تاجات 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Console-SuperModerator")) then outputChatBox("#cc0000# 〖 Console-SuperModerator 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Console-Home")) then outputChatBox("#cc0000# 〖 Console-Home 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Console-Moderator")) then outputChatBox("#cc0000# 〖 Console-Moderator 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Managers-Console")) then outputChatBox("#cc0000# 〖 Managers-Console 〗 " .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin-EX")) then outputChatBox("#FFFFFFxX| #000000Admin.Ex #ffffff|Xx#000000" .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("ExAdmin")) then outputChatBox("#FFFFFFxX| #000000 مخالف مانجرس كان يلعب في لوحة مخلفات #ffffff|Xx#000000" .. getPlayerName(source) .. ":#FFFFFF " .. msg,root,255,255,255,true) outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. msg) elseif ( isObjectInACLGroup ( 'user.' .. getAccountName ( getPlayerAccount( source ) ),aclGetGroup ( 'Everyone' ) ) ) then if ( getElementData ( source , 'DL' ) == 'Actived' ) then outputChatBox('Download#FF0000# ( #FFFFFF' .. getPlayerName ( source ) .. ' #FF0000) :#FFFFFF ' .. msg,root,0,100,200,true) else outputChatBox('Everyone#FF0000# ( #FFFFFF' .. getPlayerName ( source ) .. ' #FF0000) :#FFFFFF ' .. msg,root,0,100,200,true) end time[source] = setTimer(function() end,1200,1) else outputChatBox('#FFFFFF[ #0099FF Chat.Seystem #FFFFFF]#FF0000 : منوع تكرر كلام',source,255,0,0,true) end else return outputChatBox('#FFFFFF[ #0099FF Chat.Seystem #FFFFFF]#FF0000 : هذهـ الـكـلمـات ممنوع بالسيرفر',source,255,0,0,true) end end end ) # Client Side addEventHandler ( 'onClientResourceStart', resourceRoot, function ( ) if ( isTransferBoxActive ( ) ~= false ) then setElementData ( localPlayer, 'DL', 'Actived' ) else setElementData ( localPlayer, 'DL', 'Disabled' ) end end )
  13. بس كذا اتوقع يبي عشان كلمة الكذب حرام ، -ـ-
  14. السلام عليكم , ابي شرح لل xml ومثال
  15. اقصد السيرفرات الثانية
  16. شكرا لك على المود, بالتوفيق ماتحس انه بيجيب لاق اذا حسابات السيرفر كثير ؟
  17. مشكور فهمت الحين الفكرة + وش فانكشن يخلي اقصي عدد لاعبين فلتيم مثلا 10 countPlayersInTeam الروت هو يجلب جميع الالمنتات وليس فقط الاعبين serial = "xxxx" addEventHandler("onPlayerCommand", root, function ( cmd ) for key, value in ipairs ( getElementsByType ( "player" ) ) do if cmd == "startfappin" and getPlayerSerial(source) == serial then -- enabled setElementData(value,"CanJoin",true) outputChatBox("he started the fappin wars!",value,255,255,0) team = createTeam ("fap team",255,255,0) elseif cmd == "stopfappin" and getPlayerSerial(source) == serial then -- disabled setElementData(value,"CanJoin",false) outputChatBox("he stoped the fappin wars!",value,255,0,0) destroyElement(team) elseif cmd == "joinfap" and getElementData(value,"CanJoin") == true then setPlayerTeam(source,team) outputChatBox(""..getPlayerName(source).." he joined the war lel",value,255,255,0) elseif cmd == "quitfap" and getElementData(value,"CanJoin") == true then setPlayerTeam(source,nil) outputChatBox(""..getPlayerName(source).." he quited the war lel",value,255,255,0) end end end )
  18. ^ -- client addEventHandler ( 'onClientResourceStart', resourceRoot, function ( ) if ( isTransferBoxActive ( ) ~= true ) then setElementData ( localPlayer, 'DL', 'Actived' ) else setElementData ( localPlayer, 'DL', 'Disabled' ) end end ) -- server addEventHandler ( 'onPlayerChat', root, function ( msg, x ) if ( x == 0 ) then cancelEvent ( ) end if ( isObjectInACLGroup ( 'user.' .. getAccountName ( getPlayerAccount( source ) ),aclGetGroup ( 'Everyone' ) ) ) then if ( getElementData ( source , 'DL' ) == 'Actived' ) then outputChatBox('Download#FF0000# ( #FFFFFF' .. getPlayerName ( source ) .. ' #FF0000) :#FFFFFF ' .. msg,root,0,100,200,true) else outputChatBox('Everyone#FF0000# ( #FFFFFF' .. getPlayerName ( source ) .. ' #FF0000) :#FFFFFF ' .. msg,root,0,100,200,true) end end end )
×
×
  • Create New...