mymo = function ( Group,Price,Name )
local account = getAccountName(getPlayerAccount(source));
local PlayerName = getPlayerName(source)
if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("#ff4f00*#E01905Buy Admin #ffffff :#FFC300 |جب عليك التسجيل اولاَ",source,255,0,0,true); end
if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("#FFC300* #E01905Buy Admin #ffffff : #900C3F|لديك هذهـ الرتبة فعـلا !| ",source,255,0,0,true); end
if isObjectInACLGroup("user."..account, aclGetGroup(exAdmin)) then return outputChatBox("#ff4f00* #000009Buy Admin #ffffff:#E01905 |لا يمكنك شراء رتبة لأنك مخالف | ",source,255,0,0,true); end
local sValue = getElementData( source,'PlayTime' )
if not sValue then sValue = '0:0:0' end
local data = split(sValue,':')
local hour = tonumber( data[1] )
if hour == nil or not tonumber(hour) then hour = 0 end
if ( hour >= tonumber(Price)) then
removeGroups ( source )
aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account);
outputChatBox("تم شراء الرتبة|",source,255,0,0,true);
else
outputChatBox("#ff4f00* #E01905Buy Admin #ffffff: #FFC300|ليس لديك ساعات كافية|",source,255,0,0,true);
end
end
addEvent("Accept:the:request",true)
addEventHandler('Accept:the:request',root,mymo)