Jump to content

#Deleted


Recommended Posts

Skins = {140,228,227,189} 
function checkPlayerModel(player) 
for i,v in ipairs(Skins) do 
if getElementModel(player) == v then 
return true 
end 
end 
return false 
end 
  
addEventHandler("onElementModelChange",root, 
function(oldSkin) 
local accName = getAccountName ( getPlayerAccount ( source ) ) 
if getElementType(source) == "player" and checkPlayerModel(source) then 
if not isGuestAccount( getPlayerAccount ( source ) ) then 
if not isObjectInACLGroup ('user.'..accName, aclGetGroup ( "VIP" ) ) then 
setTimer(function(source) 
outputChatBox("This Skin only for VIP.", source, 255, 0, 0, true) 
setElementModel(source,oldSkin) 
end,500,1,source) 
end 
end 
end 
end) 

No :|

Link to comment
  • Replies 61
  • Created
  • Last Reply

Top Posters In This Topic

ايه اللي دخل الاسكنات و التيمات بالموضوع ? D:

اطرحلي الكلينت اشوفه

الحين شوف انا عملت تيم وفيه سكنات للفيب وحاليا اي لاعب بيقدر يختارهم انا بدي اذا كان اللاعب موجود في جروب الاسل الفيب فقط بيقدر يختارهم وإذا مانه موجود ما يقدر

والسكنات موجودة بالكلينت مدري يمكن إذا كان الكود كلينت يضبط

Link to comment
لو كانت الاكواد كلينت يبقي انت اللي هاتشوف الاسكن اتغيرت

انما باقي الاعبين هايشوفوك بنفس الاسكن اللي انت كنت بيها قبل ماتغيرها

يعني الاسكن تعتبر مش محطوطالك

triggerServerEvent استخدم

خلاص تم حل المشكلة ,,, : ]

+ يعطيكم العافية ما قصرتو

Link to comment
الله يعافيك , وحياك الله

معلش غلبتكم معي :D

بس في كود صغير بدي اعرف وين الخطأ فيه

addEventHandler("onPlayerLogin", root, 
function (_ ,accName ) 
 if isObjectInACLGroup("user." .. accName, aclGetGroup("VIP")) then 
setElementData(source,"VIP", true) 
 end 
 end ) 

:idea::idea::idea:

Link to comment
  • Moderators

addEventHandler("onPlayerLogin", root, 
function (_ ,accName ) 
    if isObjectInACLGroup("user." .. getAccountName(accName), aclGetGroup("VIP")) then 
        setElementData(source,"VIP", true) 
    end 
end) 
Link to comment
addEventHandler("onPlayerLogin", root, 
function (_ ,accName ) 
    if isObjectInACLGroup("user." .. getAccountName(accName), aclGetGroup("VIP")) then 
        setElementData(source,"VIP", true) 
    end 
end) 

ما زبط ,,,

التحقق كلينت

elseif ( getElementData(player,"VIP") ~= 1 ) and ( model == 189 or model == 240 or model == 227 or model == 228 ) then 
                exports["guimessages"]:outputClient(viptext, 255, 0, 0) 

سيرفر

addEventHandler("onPlayerLogin", root, 
function (_ ,accName ) 
    if isObjectInACLGroup("user." .. getAccountName(accName), aclGetGroup("VIP")) then 
    setElementData(source,"VIP", true) 
    end 
end) 

Link to comment
ممكن تطرح كود التحقق كامل ؟ و ايه هي فكرته ؟

الفنكشن طويل فيه شغلات ثانية + هاد كود التحقق اللي بالفنكشن

الفكرة انه ما حد يقدر يختار الشخصيات غير اللي الالمنت داتا تاعه VIP

وبدي اعمل اللي اسم حسابه موجود باسل الفيب يصير الالمنت داتا تاعه فيب مشان يقدر يختار الشخصية

Link to comment
ممكن تطرح كود التحقق كامل ؟ و ايه هي فكرته ؟

الفنكشن طويل فيه شغلات ثانية + هاد كود التحقق اللي بالفنكشن

الفكرة انه ما حد يقدر يختار الشخصيات غير اللي الالمنت داتا تاعه VIP

وبدي اعمل اللي اسم حسابه موجود باسل الفيب يصير الالمنت داتا تاعه فيب مشان يقدر يختار الشخصية

لو شخص متسجل في رتبة الفي اي بي دخل السيرفر و سجل دخوله هاياخد داتا فعلاً

اطرح كود التحقق مش مهمطويل او لأ لأن المشكلة منه

Link to comment
ممكن تطرح كود التحقق كامل ؟ و ايه هي فكرته ؟

الفنكشن طويل فيه شغلات ثانية + هاد كود التحقق اللي بالفنكشن

الفكرة انه ما حد يقدر يختار الشخصيات غير اللي الالمنت داتا تاعه VIP

وبدي اعمل اللي اسم حسابه موجود باسل الفيب يصير الالمنت داتا تاعه فيب مشان يقدر يختار الشخصية

لو شخص متسجل في رتبة الفي اي بي دخل السيرفر و سجل دخوله هاياخد داتا فعلاً

اطرح كود التحقق مش مهمطويل او لأ لأن المشكلة منه

    if key == "enter" then 
        if model > 279 and model < 289 or model == 71 or model > 162 and model < 167 or model > 264 and model < 268 or model == 312 or model == 189 or model == 240 or model == 227 or model == 228 then 
            ctb = countPlayersInTeam(getTeamFromName("Ballas")) 
            ctg = countPlayersInTeam(getTeamFromName("Grove Street")) 
            ctv = countPlayersInTeam(getTeamFromName("Vagos")) 
            cta = countPlayersInTeam(getTeamFromName("Aztec")) 
            ctp = countPlayersInTeam(getTeamFromName("Police")) 
            ctm = countPlayersInTeam(getTeamFromName("Medic")) 
            ctn = countPlayersInTeam(getTeamFromName("Criminals")) 
            ctr = countPlayersInTeam(getTeamFromName("Rifa")) 
            ctt = countPlayersInTeam(getTeamFromName("Triads")) 
            ctd = countPlayersInTeam(getTeamFromName("Da Nang")) 
            ctma = countPlayersInTeam(getTeamFromName("Mafia")) 
            ctru = countPlayersInTeam(getTeamFromName("Russians")) 
            ctVIP = countPlayersInTeam(getTeamFromName("VIP")) 
            -- 
             
            cat = (ctb+ctg+ctv+cta+ctm+ctn+ctVIP)/1.9 
            if getElementData(player, "TBan") > 0 then 
                exports["guimessages"]:outputClient(TBtext, 255, 0, 0) 
            elseif getElementData(player, "WantLvl") > 0 then 
                exports["guimessages"]:outputClient(wltext, 255, 0, 0) 
            elseif getElementData(player, "Stats") == 3 then 
                exports["guimessages"]:outputClient(jltext, 255, 0, 0) 
            elseif ( getElementData(player,"[ARMY]") ~= 1 ) and ( model == 287 ) then 
                exports["guimessages"]:outputClient(ArmyText, 255, 0, 0) 
            elseif ( getElementData(player,"[sWAT]") ~= 1 ) and ( model == 285 ) then 
                exports["guimessages"]:outputClient(swattext, 255, 0, 0) 
            elseif ( getElementData(player,"[FBI]") ~= 1 ) and ( model == 286 ) then 
                exports["guimessages"]:outputClient(fbitext, 255, 0, 0) 
            elseif ( getElementData(player,"VIP") ~= 1 ) and ( model == 189 or model == 240 or model == 227 or model == 228 ) then 
            exports["guimessages"]:outputClient(viptext, 255, 0, 0) 
            end 

Link to comment
يبقي مكان كود التحقق غلط يامعلم D:

Enter لازم تحطه في البايند كي بتاع زرار الانتر

يصير هيك يعني ؟؟

    if key == "enter" then 
        if model > 279 and model < 289 or model == 71 or model > 162 and model < 167 or model > 264 and model < 268 or model == 312 or model == 189 or model == 240 or model == 227 or model == 228 then 
        if ( getElementData(player,"VIP") ~= 1 ) and ( model == 189 or model == 240 or model == 227 or model == 228 ) then 
            exports["guimessages"]:outputClient(viptext, 255, 0, 0) 
        end 
            ctb = countPlayersInTeam(getTeamFromName("Ballas")) 
            ctg = countPlayersInTeam(getTeamFromName("Grove Street")) 
            ctv = countPlayersInTeam(getTeamFromName("Vagos")) 
            cta = countPlayersInTeam(getTeamFromName("Aztec")) 
            ctp = countPlayersInTeam(getTeamFromName("Police")) 
            ctm = countPlayersInTeam(getTeamFromName("Medic")) 
            ctn = countPlayersInTeam(getTeamFromName("Criminals")) 
            ctr = countPlayersInTeam(getTeamFromName("Rifa")) 
            ctt = countPlayersInTeam(getTeamFromName("Triads")) 
            ctd = countPlayersInTeam(getTeamFromName("Da Nang")) 
            ctma = countPlayersInTeam(getTeamFromName("Mafia")) 
            ctru = countPlayersInTeam(getTeamFromName("Russians")) 
            ctVIP = countPlayersInTeam(getTeamFromName("VIP")) 
            -- 
             
            cat = (ctb+ctg+ctv+cta+ctm+ctn+ctVIP)/1.9 
            if getElementData(player, "TBan") > 0 then 
                exports["guimessages"]:outputClient(TBtext, 255, 0, 0) 
            elseif getElementData(player, "WantLvl") > 0 then 
                exports["guimessages"]:outputClient(wltext, 255, 0, 0) 
            elseif getElementData(player, "Stats") == 3 then 
                exports["guimessages"]:outputClient(jltext, 255, 0, 0) 
            elseif ( getElementData(player,"[ARMY]") ~= 1 ) and ( model == 287 ) then 
                exports["guimessages"]:outputClient(ArmyText, 255, 0, 0) 
            elseif ( getElementData(player,"[sWAT]") ~= 1 ) and ( model == 285 ) then 
                exports["guimessages"]:outputClient(swattext, 255, 0, 0) 
            elseif ( getElementData(player,"[FBI]") ~= 1 ) and ( model == 286 ) then 
                exports["guimessages"]:outputClient(fbitext, 255, 0, 0) 
            end 

Link to comment

ججرب كدة

    if key == "enter" then 
        if model > 279 and model < 289 or model == 71 or model > 162 and model < 167 or model > 264 and model < 268 or model == 312 or model == 189 or model == 240 or model == 227 or model == 228 then 
        if not ( getElementData(player,"VIP") ) and ( model == 189 or model == 240 or model == 227 or model == 228 ) then 
            exports["guimessages"]:outputClient(viptext, 255, 0, 0) 
      return  end 
            ctb = countPlayersInTeam(getTeamFromName("Ballas")) 
            ctg = countPlayersInTeam(getTeamFromName("Grove Street")) 
            ctv = countPlayersInTeam(getTeamFromName("Vagos")) 
            cta = countPlayersInTeam(getTeamFromName("Aztec")) 
            ctp = countPlayersInTeam(getTeamFromName("Police")) 
            ctm = countPlayersInTeam(getTeamFromName("Medic")) 
            ctn = countPlayersInTeam(getTeamFromName("Criminals")) 
            ctr = countPlayersInTeam(getTeamFromName("Rifa")) 
            ctt = countPlayersInTeam(getTeamFromName("Triads")) 
            ctd = countPlayersInTeam(getTeamFromName("Da Nang")) 
            ctma = countPlayersInTeam(getTeamFromName("Mafia")) 
            ctru = countPlayersInTeam(getTeamFromName("Russians")) 
            ctVIP = countPlayersInTeam(getTeamFromName("VIP")) 
            -- 
            
            cat = (ctb+ctg+ctv+cta+ctm+ctn+ctVIP)/1.9 
            if getElementData(player, "TBan") > 0 then 
                exports["guimessages"]:outputClient(TBtext, 255, 0, 0) 
            elseif getElementData(player, "WantLvl") > 0 then 
                exports["guimessages"]:outputClient(wltext, 255, 0, 0) 
            elseif getElementData(player, "Stats") == 3 then 
                exports["guimessages"]:outputClient(jltext, 255, 0, 0) 
            elseif ( getElementData(player,"[ARMY]") ~= 1 ) and ( model == 287 ) then 
                exports["guimessages"]:outputClient(ArmyText, 255, 0, 0) 
            elseif ( getElementData(player,"[sWAT]") ~= 1 ) and ( model == 285 ) then 
                exports["guimessages"]:outputClient(swattext, 255, 0, 0) 
            elseif ( getElementData(player,"[FBI]") ~= 1 ) and ( model == 286 ) then 
                exports["guimessages"]:outputClient(fbitext, 255, 0, 0) 
            end 

Link to comment
ججرب كدة
    if key == "enter" then 
        if model > 279 and model < 289 or model == 71 or model > 162 and model < 167 or model > 264 and model < 268 or model == 312 or model == 189 or model == 240 or model == 227 or model == 228 then 
        if not ( getElementData(player,"VIP") ) and ( model == 189 or model == 240 or model == 227 or model == 228 ) then 
            exports["guimessages"]:outputClient(viptext, 255, 0, 0) 
      return  end 
            ctb = countPlayersInTeam(getTeamFromName("Ballas")) 
            ctg = countPlayersInTeam(getTeamFromName("Grove Street")) 
            ctv = countPlayersInTeam(getTeamFromName("Vagos")) 
            cta = countPlayersInTeam(getTeamFromName("Aztec")) 
            ctp = countPlayersInTeam(getTeamFromName("Police")) 
            ctm = countPlayersInTeam(getTeamFromName("Medic")) 
            ctn = countPlayersInTeam(getTeamFromName("Criminals")) 
            ctr = countPlayersInTeam(getTeamFromName("Rifa")) 
            ctt = countPlayersInTeam(getTeamFromName("Triads")) 
            ctd = countPlayersInTeam(getTeamFromName("Da Nang")) 
            ctma = countPlayersInTeam(getTeamFromName("Mafia")) 
            ctru = countPlayersInTeam(getTeamFromName("Russians")) 
            ctVIP = countPlayersInTeam(getTeamFromName("VIP")) 
            -- 
            
            cat = (ctb+ctg+ctv+cta+ctm+ctn+ctVIP)/1.9 
            if getElementData(player, "TBan") > 0 then 
                exports["guimessages"]:outputClient(TBtext, 255, 0, 0) 
            elseif getElementData(player, "WantLvl") > 0 then 
                exports["guimessages"]:outputClient(wltext, 255, 0, 0) 
            elseif getElementData(player, "Stats") == 3 then 
                exports["guimessages"]:outputClient(jltext, 255, 0, 0) 
            elseif ( getElementData(player,"[ARMY]") ~= 1 ) and ( model == 287 ) then 
                exports["guimessages"]:outputClient(ArmyText, 255, 0, 0) 
            elseif ( getElementData(player,"[sWAT]") ~= 1 ) and ( model == 285 ) then 
                exports["guimessages"]:outputClient(swattext, 255, 0, 0) 
            elseif ( getElementData(player,"[FBI]") ~= 1 ) and ( model == 286 ) then 
                exports["guimessages"]:outputClient(fbitext, 255, 0, 0) 
            end 

ما ضبط ,,,

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...