Server
unknown
lua
3 years ago
1.9 kB
17
Indexable
addEvent( "onBuyVIP", true )
addEventHandler( "onBuyVIP", root,
function()
local accName = getAccountName ( getPlayerAccount ( source ) )
if isObjectInACLGroup("user."..accName, aclGetGroup( "VIP" ) ) then
return end
if ( getPlayerMoney( source ) >= ( 10000000 ) ) then
takePlayerMoney( source, 10000000 )
aclGroupAddObject( aclGetGroup( "VIP" ), "user."..accName )
exports["guimessages"]:outputServer(source, "#FFFC17[ #aa0000VIPSystem #FFFC17] #ff0000 تم شراء فيب بمقابل 10 مليون", 0, 255, 0, true)
triggerClientEvent( source, "ClsVIPOpened", source )
else
exports["guimessages"]:outputServer(source, "#FFFC17[ #aa0000VIPSystem #FFFC17] #ff0000 انته لاتمتلك المال الكافي لشراء فيب", 0, 255, 0, true)
end
end
)
-----------
addEvent ( "ifIsPlayerVip", true)
addEventHandler( "ifIsPlayerVip", root,
function (accName)
local acc = getPlayerAccount ( source )
if acc and not isGuestAccount ( acc ) then
if isObjectInACLGroup ( "user."..getAccountName ( acc ), aclGetGroup ( "VIP" ) ) then
triggerClientEvent ( source, "openVIPFinal", source )
else
triggerClientEvent ( source, "openVIPBuyWind", source )
end
else
outputChatBox("#aa0000* ≈#FFFC17 [#aa0000 VIP #FFFC17]#ff0000 :#ff0000 ✘ الرجــاء تسـجـيـل الدخـول أولاً", source, 125, 125, 125, true )
end
end
)
----------
addEvent("openfuckyouvip",true)
addEventHandler("openfuckyouvip",root,
function ()
local accName = getAccountName ( getPlayerAccount ( source ) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then
triggerClientEvent(source,"gotthefuckyouvip?",source)
end
end
)
-----------Editor is loading...