Jump to content

Question ?


z24d

Recommended Posts

Posted

مشكور بس ابي الفلوس بالكوماند الثاني يعني اكتب

giveall 12319237

يطلع بالجيو الرسالة عرفت كيف ويستلمها الاعب

Posted
مشكور بس ابي الفلوس بالكوماند الثاني يعني اكتب

giveall 12319237

يطلع بالجيو الرسالة عرفت كيف ويستلمها الاعب

addCommandHandler( "giveall", 
function( player, _, amount ) 
    if ( not isGuestAccount( getPlayerAccount( player ) ) ) then 
        if ( isObjectInACLGroup( "user."..getAccountName( getPlayerAccount( player ) ), aclGetGroup( "Console" ) ) ) then 
            if ( amount ) then 
                for _, player in ipairs( getElementsByType( "player" ) ) do 
                    givePlayerMoney( player, amount ) 
                end 
                exports["killmessages"]:outputMessage( "* #FFFFFF[#CC0000 Server.Owner #FFFFFF] [ "..getPlayerName(player).." #FFFFFF] #00FFFF( #00FF00[ GIFT ]بدأ توزيع جديد لإستلام التوزيع اكتب في اف8 #00FFFF) ["..amount.."]", root, 255, 0, 0 ) 
            end 
        else 
            exports["killmessages"]:outputMessage( "* #FFFFFF[#CC0000 Server.Owner #FFFFFF] انت لست ادمن", player, 255, 0, 0 ) 
        end 
    else 
        exports["killmessages"]:outputMessage( "* #FFFFFF[#CC0000 Server.Owner #FFFFFF] يجب تسجيل الدخول", player, 255, 0, 0 ) 
    end 
end ) 

Posted
addCommandHandler('GIFT', function ( player ) 
if ( not isGuestAccount ( getPlayerAccount ( player ) ) ) then 
if ( not getAccountData ( getPlayerAccount ( player ) , 'r8' ) ) then 
givePlayerMoney ( player , amount ) 
exports.killmessages:outputMessage("Congratolation * #00FF00[ "..getPlayerName(player).."#00FF00 ]#FFFF00 استلم الهدية  ",root,255,255,0) 
setAccountData ( getPlayerAccount ( player ) , 'r8', true ) 
else 
outputChatBox('* لقد اخذت مسبقاً ',player,0,255,0,true) 
end 
else 
outputChatBox('* الرجأء تسجيل الدخول !',player,255,0,0,true) 
end 
end 
) 
  
addCommandHandler ( "12",  
 function (player,_,amount) 
        local aa = getPlayerAccount(player) 
        if not isGuestAccount(aa) then 
           if (isObjectInACLGroup("user."..getAccountName(aa),aclGetGroup("Console"))) then 
exports.killmessages:outputMessage( "* #FFFFFF[#CC0000 Server.Owner #FFFFFF] [ "..getPlayerName(player).." #FFFFFF] #00FFFF( #00FF00[ GIFT ]بدأ توزيع جديد لإستلام التوزيع اكتب في اف8 #00FFFF) ["..amount.."]" ,root, 255,0,0) 
for i,v in ipairs ( getAccounts() ) do 
setAccountData( v , "r8" , false ) 
    end 
    else 
    outputChatBox("#FF0000 Please Login First",source,255,0,0) 
  end 
 end 
end 
) 

مازبط؟

Posted

تفضل

addCommandHandler ( "12", 
 function (player,_,amount) 
        if ( not isGuestAccount(getPlayerAccount ( player )) ) then 
           if (isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("Console"))) then 
exports.killmessages:outputMessage( "* #FFFFFF[#CC0000 Server.Owner #FFFFFF] [ "..getPlayerName(player).." #FFFFFF] #00FFFF( #00FF00[ GIFT ]بدأ توزيع جديد لإستلام التوزيع اكتب في اف8 #00FFFF) ["..amount.."]" ,root, 255,0,0) 
for i,v in ipairs ( getAccounts() ) do 
setAccountData( v , "r8" , false ) 
setAccountData ( v , 'money' , amount or false) 
    end 
    else 
    outputChatBox("#FF0000 Please Login First",source,255,0,0) 
  end 
 end 
end 
) 
  
addCommandHandler('GIFT', function ( player ) 
if ( not isGuestAccount ( getPlayerAccount ( player ) ) ) then 
if ( not getAccountData ( getPlayerAccount ( player ) , 'r8' ) ) then 
givePlayerMoney ( player , getAccountData ( getPlayerAccount ( player )  , 'money' ) ) 
exports.killmessages:outputMessage("Congratolation * #00FF00[ "..getPlayerName(player).."#00FF00 ]#FFFF00 استلم الهدية  ",root,255,255,0) 
setAccountData ( getPlayerAccount ( player ) , 'r8', true ) 
setAccountData ( getPlayerAccount ( player ) , 'money', false ) 
else 
outputChatBox('* لقد اخذت مسبقاً ',player,0,255,0,true) 
end 
else 
outputChatBox('* الرجأء تسجيل الدخول !',player,255,0,0,true) 
end 
end 
) 
  

Posted

غريبه الكود ظآبط معي شوف ألان

addCommandHandler ( "12", 
 function (player,_,amount) 
        if ( not isGuestAccount(getPlayerAccount ( player )) ) then 
           if (isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("Console"))) then 
exports.killmessages:outputMessage( "* #FFFFFF[#CC0000 Server.Owner #FFFFFF] [ "..getPlayerName(player).." #FFFFFF] #00FFFF( #00FF00[ GIFT ]بدأ توزيع جديد لإستلام التوزيع اكتب في اف8 #00FFFF) ["..amount.."]" ,root, 255,0,0) 
for i,v in ipairs ( getAccounts() ) do 
setAccountData( v , "r8" , false ) 
setAccountData ( v , 'money' , amount) 
    end 
    else 
    outputChatBox("#FF0000 Please Login First",source,255,0,0) 
  end 
 end 
end 
) 
  
addCommandHandler('GIFT', function ( player ) 
if ( not isGuestAccount ( getPlayerAccount ( player ) ) ) then 
if ( not getAccountData ( getPlayerAccount ( player ) , 'r8' ) ) then 
givePlayerMoney ( player , getAccountData ( getPlayerAccount ( player )  , 'money' ) ) 
exports.killmessages:outputMessage("Congratolation * #00FF00[ "..getPlayerName(player).."#00FF00 ]#FFFF00 استلم الهدية  ",root,255,255,0) 
setAccountData ( getPlayerAccount ( player ) , 'r8', true ) 
else 
outputChatBox('* لقد اخذت مسبقاً ',player,0,255,0,true) 
end 
else 
outputChatBox('* الرجأء تسجيل الدخول !',player,255,0,0,true) 
end 
end 
) 

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...