تفضل
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
)