AboS3od Posted September 29, 2012 Share Posted September 29, 2012 السسلام عليكمم ي ششبآب لاههتنوآ ابي كككود المخفي كآمل ماففيهة شي نآقصص والي مآعندهه لايجي هنآ يتفلسسف لاهنتو ض1 Link to comment
==>ҭᾄlᾄl Posted September 29, 2012 Share Posted September 29, 2012 ---كلنت function buyinv() if ( source == b ) then--غير b الى اسم الزر triggerServerEvent("inv",getLocalPlayer()) end end addEventHandler("onClientGUIClick",getRootElement(),buyinv) ---سيرفر function inv() local money = getPlayerMoney(source) if ( money >= 3000 ) then takePlayerMoney(source,3000) setElementAlpha(source,0) setTimer(setElementAlpha,60000,1,source,255) else outputChatBox("You Don't Have Enough Money") end end addEvent("inv",true) addEventHandler("inv",getRootElement(),inv) Link to comment
AboS3od Posted September 29, 2012 Author Share Posted September 29, 2012 ---كلنت function buyinv() if ( source == b ) then--غير b الى اسم الزر triggerServerEvent("inv",getLocalPlayer()) end end addEventHandler("onClientGUIClick",getRootElement(),buyinv) ---سيرفر function inv() local money = getPlayerMoney(source) if ( money >= 3000 ) then takePlayerMoney(source,3000) setElementAlpha(source,0) setTimer(setElementAlpha,60000,1,source,255) else outputChatBox("You Don't Have Enough Money") end end addEvent("inv",true) addEventHandler("inv",getRootElement(),inv) الله يعطيك آلعافيهة جاآري التجربةة Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now