
-#GoDa
Members-
Posts
75 -
Joined
-
Last visited
Everything posted by -#GoDa
-
السلام عليكم انا الحين ابي اسوي مود اداره فيب ابي لم يحدد لاعب من الجريد ليست "حسابه"ويضغط زر معين ويكتب في اديت معينه المده بل ايام ز يعطيه للاعب وبعد الايام المحدده تنتهي ممكن فكشنات؟
-
خوادم العرب |Vps Al Arab|linux Vps - Windows VPS - Game Servers - Anti Doos
-#GoDa replied to Dr.Marco's topic in الاستضافات
السلام عليكم انا ابي اشتري خادم لينكس . بطريقه دفع مصريه . -
اليوم جربت ادخل احمل برنامج سكايب الموقع مايفتح اساسه . المشكله مني ولا من الموقع نفسه؟
-
مشكور حبي بس الحين في مشكله اخري الدي بق يجيب كذا ERROR:Server triggered clientside event setGridList,but event is not added clientside @#kAsR
-
السلام عليكم في الدي بق يقول لي خطا بل سطر ذا if ( isObjectInACLGroup ( 'user.'..Name, aclGetGroup ( 'Console' ) ) then الدي بق ERROR:Loading script failed : SystemV1\Server.lua:165: ")" expected near "then"
-
طيب وش الغلط .. بروح الموضوع السابق
-
السلام عليكم . الحين الاخ كيلر ظبطلي الكود بس ناقصلي مشكله وهي يجيب بل دي بق شي بخصوص الارقمنت بل سطر ذا اول شي خطا في ملف سيرفر function noacc () for id, player in ipairs(getElementsByType("player")) do if ( getPlayerAccount ( accname ) ) and not isGuestAccount ( ( getPlayerAccount ( player ) ) ) then if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Console" ) ) then setElementData ( player, "Console", getAccountName ( getPlayerAccount ( Console ) ) ) if setElementData ( player, "accname", "noacc" ) then else setElementData ( Console, "accname", "noacc" ) end end end test1 () المشكله بخصوص اول سطر واخر سطر بشي يتعلق الاغلاق end تاني مشكله ارقمنت ف كلينت السطر ذا column = guiGridListAddColumn( accNameList, "Player", 0.85 ) --- شي يتعلق بذا مكتوبه ذي guiGridListAddColumn
-
انا مو فاهم يعني اعتقد باقي شي لحق الاسل علموم بكمله واجربه function nocc () for id, player in ipairs(getElementsByType("player")) do if ( getPlayerAccount ( كمل ) ) and not isGuestAccount ( ( getPlayerAccount ( player ) ) ) then if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Console" ) ) then setElementData ( player, "Console", getAccountName ( getPlayerAccount ( Console ) ) ) if setElementData ( player, "accname", "nocc" ) end else setElementData ( Console, "accname", "nocc" ) end end end test1 () -- client accNameList = guiCreateGridList column = guiGridListAddColumn( accNameList, "Player", 0.85 ) function test2 () if ( column ) then for id, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( Console ) if not ( getElementData ( Console, "accname" ) == "nocc" ) then guiGridListSetItemText ( Console, row, column, getElementData ( Console, "accname" ) or "noacc", false, false ) end end end end test2 () تمام كذا ؟ .. @Killer Project + فيه مشكله بل سطر column = guiGridListAddColumn( accNameList, "Player", 0.85 ) بخصوص الارقمنت @Killer Project
-
طيب حد يساعد . @3laa33 @#BrosS @Master_MTA @Killer Project
-
@#STZ متلخبط .. @Killer Project @Master_MTA
-
السلام عليكم الحين انا مسوي كود انه يجيب بل قريد ليست اسماء الحسابات الي في جروب الرتبه المخصصه ممكن تصحيح؟ الدي بق مايجيب شي function putPlayers() guiGridListClear(gridlist2) for i,account in ipairs(getElementsByType("account")) do local row = guiGridListAddRow(gridlist2) guiGridListSetItemText(gridlist2,row,1,getPlayerAccount(account),false,false) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then end end addEventHandler("onClientGUIChanged",root, function () if ( source == grud12 ) then local text = string.upper(guiGetText(grud12)) if ( text == "" ) then putPlayers() else guiGridListClear(gridlist2) for i,v in ipairs(getElementsByType("player")) do local name = string.upper(getPlayerName(v)) if string.find(name,text) then playSoundFrontEnd(3) local row = guiGridListAddRow(gridlist2) guiGridListSetItemText(gridlist2,row,1,getPlayerAccount,false,false) guiGridListSetItemText(gridlist2,row,2,("user."..accName, aclGetGroup ( "Console" ) ) ,false,false) end end end end end )
-
السلام عليكم ورحمه الله وبركاته اريد شراء خادم . بمواصفات جيده . وطريقه دفع مصريه
-
ممكن اصلاح الكود؟ الحين انا مسوي انه لم يحدد بل قريد ليست علي شي ويضغط علي الزر يعطيه الرتبه الي بل لوب . بس يتحقق انه معاه 20 من الداتا الحين لم احدد واضغط مايصير شي وتنخصم الداتا ضفته لقروب الادمن ونفس المشكله -C local Admin = { {"VIP","20"}, } -------------------- GUIEditor = { gridlist = {}, label = {} } window_system_vip = guiCreateWindow(123, 39, 460, 446, "[نظام الشراء العضويه الخاصه | System Buy Vip]", false) guiWindowSetSizable(window_system_vip, false) guiSetAlpha(window_system_vip, 1.00) guiSetVisible(window_system_vip, false) guiWindowSetSizable(window_system_vip, false) guiWindowSetMovable(window_system_vip, true) logo_vip = guiCreateStaticImage(45, 88, 142, 122, "Back.png", false, window_system_vip) logo_dimaond = guiCreateStaticImage(260, 88, 130, 122, "guest.png", false, window_system_vip) GUIEditor.label[1] = guiCreateLabel(201, 128, 53, 37, "And", false, window_system_vip) guiSetFont(GUIEditor.label[1], "sa-header") GUIEditor.label[2] = guiCreateLabel(331, 46, 119, 21, "نظام الشراء بل جواهر", false, window_system_vip) guiLabelSetColor(GUIEditor.label[2], 1, 253, 238) GUIEditor.label[3] = guiCreateLabel(45, 63, 426, 15, "تحذير اذا قمت بل شراء مرتين متتالين سوف يتم خصم الجواهر وعدم اعطائك شي", false, window_system_vip) guiLabelSetColor(GUIEditor.label[3], 252, 0, 0) logo_war = guiCreateStaticImage(9, 52, 41, 42, "warning.png", false, window_system_vip) buttonbuy = guiCreateButton(302, 352, 148, 32, "شراء العضويه الخاصه (VIP)", false, window_system_vip) guiSetProperty(buttonbuy, "NormalTextColour", "FF2FFD00") GUIEditor.gridlist[1] = guiCreateGridList(14, 326, 236, 110, false, window_system_vip) guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.5) guiGridListAddColumn(GUIEditor.gridlist[1], "Diamond", 0.5) CLOSE = guiCreateButton(407, 413, 43, 23, "X", false, window_system_vip) guiSetProperty(CLOSE, "NormalTextColour", "FFFC0017") -------------------Close----------------- addEventHandler ("onClientGUIClick", root, function() if (source == CLOSE) then guiSetVisible(window_system_vip, false) showCursor(false) guiSetInputEnabled(false) end end ) ------------------------------------------ for k,v in ipairs ( Admin ) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[1],false,false) guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[2],false,false) guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255)) guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,math.random(0,255),math.random(0,255),math.random(0,255)) end xMainFunctions_ = function ( ) local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); if ( row and col and row ~= -1 and col ~= -1 ) then triggerServerEvent("Accept:the:request",localPlayer,Group,Price); else outputChatBox("تـــم سحب منك 20 جوهرة . اقراء الكلام مره اخري",math.random(0,255),math.random(0,255),math.random(0,255),true); end end ----------------------------------------- addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == buttonbuy ) then triggerServerEvent("VIP",getLocalPlayer()) end end ) addCommandHandler("byvip",function () if guiGetVisible(window_system_vip) == true then guiSetVisible(window_system_vip, false) showCursor(false) guiSetInputEnabled(false) else if guiGetVisible(window_system_vip) == false then guiSetVisible(window_system_vip, true) showCursor(false) guiSetInputEnabled(true) playSound("sound.wav") end end end ) -S xAddToGroupFunction_ = function ( Group,Price ) local account = getAccountName(getPlayerAccount(source)); if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("#You must register first To By VIP",source,255,0,255,true); end if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("You Have VIP",source,255,0,255,true); end local sValue = getElementData( source,'Diamond' ) 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 aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); outputChatBox("You Bought VIP 7 Days "..Name,source,255,0,255,true); else outputChatBox("VIP = 20 Diamond ",source,0,255,255,true); end end addEvent("Accept:the:request",true) addEventHandler("Accept:the:request",root,xAddToGroupFunction_) addEventHandler("onPlayerJoin",root, function() setElementData(source,"Diamond",0) end) function takePlayerDiamond(thePlayer, number) if ( getElementType ( thePlayer ) == "player" ) then setElementData(thePlayer,"Diamond",getElementData(thePlayer, "Diamond")-tonumber(number)) end end function setPlayerDiamond(thePlayer, number) if ( getElementType ( thePlayer ) == "player" ) then setElementData(thePlayer,"Diamond",tonumber(number)) end end function givePlayerDiamond(thePlayer, number) if ( getElementType ( thePlayer ) == "player" ) then setElementData(thePlayer,"Diamond",getElementData(thePlayer, "Diamond")+tonumber(number)) end end function getPlayerDiamond(thePlayer) local data = getElementData(thePlayer, "Diamond") thePoints = tonumber(data) return thePoints end ------------------------ addEvent("VIP",true) addEventHandler("VIP",root, function() local PlayerDiamond = getPlayerDiamond(source) if ( PlayerDiamond >= 70) then takePlayerDiamond(source,70) local name = getPlayerName(source) else end end )
-
بجرب واجيك في خطا في الارقمنت . في السطور ذي .. local row = guiGridListAddRow(GUIEditor.gridlist[1]); guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[1],false,false); guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[2],false,false); guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255)) guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,math.random(0,255),math.random(0,255),math.random(0,255)) @Master_MTA
-
مايظهر بل قريد ليست الشي الي ابي الشخص يحدده .
-
كفو مشكور والله .. ينفع تساعدني بموضوع البرمجه هذا ؟
-
طيب ... مشكور بس لو تجيب شرح موثوق ما انساها لك
-
السلام عليكم ورحمه الله وبركاته .. الحين كنت حابب اسال . كيف ارفع لوحه جديده بقالب جديد؟
-
الدي بق مايطلع شي @Abu-Solo
-
السلام عليكم ورحمه الله وبركاته الحين في مشكله القريد ليست ماتطلع الشي المراد ان يطلع فيها ممكن مساعده -C local Admin = { {"VIP","20"}, } -------------------- GUIEditor = { gridlist = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() window_system_vip = guiCreateWindow(123, 39, 460, 446, "[نظام الشراء العضويه الخاصه | System Buy Vip]", false) guiWindowSetSizable(window_system_vip, false) guiSetAlpha(window_system_vip, 1.00) guiSetVisible(window_system_vip, false) guiWindowSetSizable(window_system_vip, false) guiWindowSetMovable(window_system_vip, true) logo_vip = guiCreateStaticImage(45, 88, 142, 122, "Back.png", false, window_system_vip) logo_dimaond = guiCreateStaticImage(260, 88, 130, 122, "guest.png", false, window_system_vip) GUIEditor.label[1] = guiCreateLabel(201, 128, 53, 37, "And", false, window_system_vip) guiSetFont(GUIEditor.label[1], "sa-header") GUIEditor.label[2] = guiCreateLabel(331, 46, 119, 21, "نظام الشراء بل جواهر", false, window_system_vip) guiLabelSetColor(GUIEditor.label[2], 1, 253, 238) GUIEditor.label[3] = guiCreateLabel(45, 63, 426, 15, "تحذير اذا قمت بل شراء مرتين متتالين سوف يتم خصم الجواهر وعدم اعطائك شي", false, window_system_vip) guiLabelSetColor(GUIEditor.label[3], 252, 0, 0) logo_war = guiCreateStaticImage(9, 52, 41, 42, "warning.png", false, window_system_vip) buttonbuy = guiCreateButton(302, 352, 148, 32, "شراء العضويه الخاصه (VIP)", false, window_system_vip) guiSetProperty(buttonbuy, "NormalTextColour", "FF2FFD00") GUIEditor.gridlist[1] = guiCreateGridList(14, 326, 236, 110, false, window_system_vip) guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.5) guiGridListAddColumn(GUIEditor.gridlist[1], "Diamond", 0.5) CLOSE = guiCreateButton(407, 413, 43, 23, "X", false, window_system_vip) guiSetProperty(CLOSE, "NormalTextColour", "FFFC0017") end ) -------------------Clos----------------- addEventHandler ("onClientGUIClick", root, function() if (source == CLOSE) then guiSetVisible(window_system_vip, false) showCursor(false) guiSetInputEnabled(false) end end ) ------------------------------------------ for k,v in ipairs ( Admin ) do row = guiGridListAddRow(GUIEditor.gridlist[1]); guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[1],false,false); guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[2],false,false); guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255)) guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,math.random(0,255),math.random(0,255),math.random(0,255)) end xMainFunctions_ = function ( ) local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); if ( row and col and row ~= -1 and col ~= -1 ) then triggerServerEvent("Accept:the:request",localPlayer,Group,Price); else outputChatBox("تـــم سحب منك 20 جوهرة . اقراء الكلام مره اخري",math.random(0,255),math.random(0,255),math.random(0,255),true); end end ----------------------------------------- addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == buttonbuy ) then triggerServerEvent("VIP",getLocalPlayer()) end end ) addCommandHandler("byvip",function () if guiGetVisible(window_system_vip) == true then guiSetVisible(window_system_vip, false) showCursor(false) guiSetInputEnabled(false) else if guiGetVisible(window_system_vip) == false then guiSetVisible(window_system_vip, true) showCursor(false) guiSetInputEnabled(true) playSound("sound.wav") end end end ) -S xAddToGroupFunction_ = function ( Group,Price ) local account = getAccountName(getPlayerAccount(source)); if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("#You must register first To By VIP",source,255,0,255,true); end if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("You Have VIP",source,255,0,255,true); end local sValue = getElementData( source,'Diamond' ) 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 aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); outputChatBox("You Bought VIP 7 Days "..Name,source,255,0,255,true); else outputChatBox("VIP = 20 Diamond ",source,0,255,255,true); end end addEvent("Accept:the:request",true) addEventHandler("Accept:the:request",root,xAddToGroupFunction_) addEventHandler("onPlayerJoin",root, function() setElementData(source,"Diamond",0) end) function takePlayerDiamond(thePlayer, number) if ( getElementType ( thePlayer ) == "player" ) then setElementData(thePlayer,"Diamond",getElementData(thePlayer, "Diamond")-tonumber(number)) end end function setPlayerDiamond(thePlayer, number) if ( getElementType ( thePlayer ) == "player" ) then setElementData(thePlayer,"Diamond",tonumber(number)) end end function givePlayerDiamond(thePlayer, number) if ( getElementType ( thePlayer ) == "player" ) then setElementData(thePlayer,"Diamond",getElementData(thePlayer, "Diamond")+tonumber(number)) end end function getPlayerDiamond(thePlayer) local data = getElementData(thePlayer, "Diamond") thePoints = tonumber(data) return thePoints end ------------------------ addEvent("VIP",true) addEventHandler("VIP",root, function() local PlayerDiamond = getPlayerCoin(source) if ( PlayerDiamond >= 70) then takePlayerCoin(source,70) local name = getPlayerName(source) else end end )
-
السلام عليكم ورحمه الله وبركاته الحين انا مسوي لوحه تعطي فيب مقابل داتا معينه الحين انا شغلته الدي بق تمام مافيه شي الحين القريد ليست يكون فيها اشياء لكن ماهي ظاهره ثانيه الحين لم اضغط علي الزر يسحب الداتا ومايعطيه الشي المراد الدي بق مايطلع شي الاكواد -- -C local Admin = { {"VIP","20"}, } -------------------- GUIEditor = { gridlist = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() window_system_vip = guiCreateWindow(123, 39, 460, 446, "[نظام الشراء العضويه الخاصه | System Buy Vip]", false) guiWindowSetSizable(window_system_vip, false) guiSetAlpha(window_system_vip, 1.00) guiSetVisible(window_system_vip, false) guiWindowSetSizable(window_system_vip, false) guiWindowSetMovable(window_system_vip, true) logo_vip = guiCreateStaticImage(45, 88, 142, 122, "Back.png", false, window_system_vip) logo_dimaond = guiCreateStaticImage(260, 88, 130, 122, "guest.png", false, window_system_vip) GUIEditor.label[1] = guiCreateLabel(201, 128, 53, 37, "And", false, window_system_vip) guiSetFont(GUIEditor.label[1], "sa-header") GUIEditor.label[2] = guiCreateLabel(331, 46, 119, 21, "نظام الشراء بل جواهر", false, window_system_vip) guiLabelSetColor(GUIEditor.label[2], 1, 253, 238) GUIEditor.label[3] = guiCreateLabel(45, 63, 426, 15, "تحذير اذا قمت بل شراء مرتين متتالين سوف يتم خصم الجواهر وعدم اعطائك شي", false, window_system_vip) guiLabelSetColor(GUIEditor.label[3], 252, 0, 0) logo_war = guiCreateStaticImage(9, 52, 41, 42, "warning.png", false, window_system_vip) buttonbuy = guiCreateButton(302, 352, 148, 32, "شراء العضويه الخاصه (VIP)", false, window_system_vip) guiSetProperty(buttonbuy, "NormalTextColour", "FF2FFD00") GUIEditor.gridlist[1] = guiCreateGridList(14, 326, 236, 110, false, window_system_vip) guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.5) guiGridListAddColumn(GUIEditor.gridlist[1], "Diamond", 0.5) CLOSE = guiCreateButton(407, 413, 43, 23, "X", false, window_system_vip) guiSetProperty(CLOSE, "NormalTextColour", "FFFC0017") end ) -------------------Clos----------------- addEventHandler ("onClientGUIClick", root, function() if (source == CLOSE) then guiSetVisible(window_system_vip, false) showCursor(false) guiSetInputEnabled(false) end end ) ------------------------------------------ for k,v in ipairs ( Admin ) do row = guiGridListAddRow(GUIEditor.gridlist[1]); guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[1],false,false); guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[2],false,false); guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255)) guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,math.random(0,255),math.random(0,255),math.random(0,255)) end xMainFunctions_ = function ( ) local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); if ( row and col and row ~= -1 and col ~= -1 ) then triggerServerEvent("Accept:the:request",localPlayer,Group,Price); else outputChatBox("تـــم سحب منك 20 جوهرة . اقراء الكلام مره اخري",math.random(0,255),math.random(0,255),math.random(0,255),true); end end ----------------------------------------- addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == buttonbuy ) then triggerServerEvent("VIP",getLocalPlayer()) end end ) addCommandHandler("byvip",function () if guiGetVisible(window_system_vip) == true then guiSetVisible(window_system_vip, false) showCursor(false) guiSetInputEnabled(false) else if guiGetVisible(window_system_vip) == false then guiSetVisible(window_system_vip, true) showCursor(false) guiSetInputEnabled(true) playSound("sound.wav") end end end ) -S xAddToGroupFunction_ = function ( Group,Price ) local account = getAccountName(getPlayerAccount(source)); if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("#You must register first To By VIP",source,255,0,255,true); end if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("You Have VIP",source,255,0,255,true); end local sValue = getElementData( source,'Diamond' ) 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 aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); outputChatBox("You Bought VIP 7 Days "..Name,source,255,0,255,true); else outputChatBox("VIP = 20 Diamond ",source,0,255,255,true); end end addEvent("Accept:the:request",true) addEventHandler("Accept:the:request",root,xAddToGroupFunction_) addEventHandler("onPlayerJoin",root, function() setElementData(source,"Diamond",0) end) function takePlayerDiamond(thePlayer, number) if ( getElementType ( thePlayer ) == "player" ) then setElementData(thePlayer,"Diamond",getElementData(thePlayer, "Diamond")-tonumber(number)) end end function setPlayerDiamond(thePlayer, number) if ( getElementType ( thePlayer ) == "player" ) then setElementData(thePlayer,"Diamond",tonumber(number)) end end function givePlayerDiamond(thePlayer, number) if ( getElementType ( thePlayer ) == "player" ) then setElementData(thePlayer,"Diamond",getElementData(thePlayer, "Diamond")+tonumber(number)) end end function getPlayerDiamond(thePlayer) local data = getElementData(thePlayer, "Diamond") thePoints = tonumber(data) return thePoints end ------------------------ addEvent("VIP",true) addEventHandler("VIP",root, function() local PlayerDiamond = getPlayerCoin(source) if ( PlayerDiamond >= 70) then takePlayerCoin(source,70) local name = getPlayerName(source) else end end )