Jump to content

مشكلة في الفلوس


Recommended Posts

السلام عليكم

ان استخدم مود كلانات وقت شراء القروب ابي الفلوس  لزم تكون داتا حاولت ومانفع 

function onCreateGroup(name)
    local Money = getPlayerMoney(source, "Money") or 0
    if getPlayerGroup(source) then
        output(source, "#04B4AE[Group System] #FF0000You already have group.", 255, 40, 0)
        elseif tonumber(Money) < 200000 then 
        output(source, "#04B4AE[Group System] #FF0000You must have more than #00FF00$200,000 #FF0000to make the group.", 255, 20, 0)
    elseif isHasSpace(name) then
        output(source, "#04B4AE[Group System] #FF0000The #DF7401Group name #FF0000must be without space, Remove the Space from it.", 255, 40, 0)
    elseif not isASCII(name) then
        output(source, "#04B4AE[Group System] #FF0000Only English #DF7401Groups name #00FF00acceptable#FF0000 chose another name in English.", 255, 40, 0)
    else
        CreateGroup(source, name)
        if ( getPlayerMoney ( source ) >= 200000 ) then
    takePlayerMoney ( source, 200000 )
        end
        end
end

 

Link to comment
    function onCreateGroup(name)
        local Money = getElementData(source, "money") or 0
        if getPlayerGroup(source) then
            output(source, "#04B4AE[Group System] #FF0000You already have group.", 255, 40, 0)
            elseif tonumber(Money) < 200000 then 
            output(source, "#04B4AE[Group System] #FF0000You must have more than #00FF00$200,000 #FF0000to make the group.", 255, 20, 0)
        elseif isHasSpace(name) then
            output(source, "#04B4AE[Group System] #FF0000The #DF7401Group name #FF0000must be without space, Remove the Space from it.", 255, 40, 0)
        elseif not isASCII(name) then
            output(source, "#04B4AE[Group System] #FF0000Only English #DF7401Groups name #00FF00acceptable#FF0000 chose another name in English.", 255, 40, 0)
        else
            CreateGroup(source, name)
			price = getElementData(source, "money") or 0
            if ( tonumber ( price ) >= 200000 ) then
        setElementData ( source,"money",price - 200000 )
            end
            end
    end

ججرب

  • Like 1
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...