golanu21 Posted September 26, 2013 Share Posted September 26, 2013 local donator = tonumber(data["donator"]) if tonumber(donator) >= 1 then -- check if they're a donator exports['armor-structure']:changeProtectedElementDataEx(source, "pmblocked", pmblocked, false) exports['armor-structure']:changeProtectedElementDataEx(source, "tognews", newsblocked, false) exports['armor-structure']:changeProtectedElementDataEx(source, "disableAds", adblocked == 1, false) else -- no donator, set default things exports['armor-structure']:changeProtectedElementDataEx(source, "pmblocked", 0, false) exports['armor-structure']:changeProtectedElementDataEx(source, "disableAds", false, false) exports['armor-structure']:changeProtectedElementDataEx(source, "tognews", 0, false) end 3: attempt to compare number with nill Link to comment
TAPL Posted September 26, 2013 Share Posted September 26, 2013 Vahalla? We don't give support with leaked scripts. Link to comment
Recommended Posts