BeCooL Posted October 24, 2012 Share Posted October 24, 2012 شباب شوفوا لي حل ... هذا المود اذا شريت الشخصية وماعندك فلوس تصير فلوسك سالب ؟؟!! اناابغاها اذا ما عندك فلوس ما تقدر تشتري كيف ؟ هذا الكود marker = createMarker( -2376.4399414963, 909.61828613281, 44.4453125, "cylinder", 2, 255, 255, 0, 255 ) blip = createBlip( -2376.4399414963, 909.61828613281, 44.4453125, 45 ) function buy(id) reskin = setElementModel(source, id) takePlayerMoney(source, 200) playeraccount = getPlayerAccount(source) setAccountData(playeraccount, "standardskin", id) end addEvent("useSkin",true) addEventHandler("useSkin", root, buy) function guishow(hitPlayer) triggerClientEvent (hitPlayer,"guishowc",getRootElement(),hitPlayer) end addEventHandler("onMarkerHit",marker,guishow) Link to comment
Mr.T9 Posted October 24, 2012 Share Posted October 24, 2012 ضيف هاذي مكان الفلوس if ( PlayerMoney >= 200) then takePlayerMoney(source,200) Link to comment
3NAD Posted October 24, 2012 Share Posted October 24, 2012 ضيف هاذي مكان الفلوس if ( PlayerMoney >= 200) then takePlayerMoney(source,200) PlayerMoney = ?? Link to comment
BeCooL Posted October 24, 2012 Author Share Posted October 24, 2012 ضيف هاذي مكان الفلوس if ( PlayerMoney >= 200) then takePlayerMoney(source,200) كيف يعني يصير الكود كذا ؟ marker = createMarker( 2802.4587402344, 2429.8356933594, 10.0625, "cylinder", 2, 255, 255, 0, 255 ) blip = createBlip( 2802.4587402344, 2429.8356933594, 10.0625, 45 ) function buy(id) reskin = setElementModel(source, id) takePlayerMoney(source, 200) playeraccount = getPlayerAccount(source) setAccountData(playeraccount, "standardskin", id) if ( PlayerMoney >= 200) then takePlayerMoney(source,200) end addEvent("useSkin",true) addEventHandler("useSkin", root, buy) function guishow(hitPlayer) triggerClientEvent (hitPlayer,"guishowc",getRootElement(),hitPlayer) end addEventHandler("onMarkerHit",marker,guishow) Link to comment
iPrestege Posted October 24, 2012 Share Posted October 24, 2012 ضيف هاذي مكان الفلوس if ( PlayerMoney >= 200) then takePlayerMoney(source,200) PlayerMoney = ?? ^^ شف رد عناد -__- الكود ناقصص : / Link to comment
TAPL Posted October 24, 2012 Share Posted October 24, 2012 marker = createMarker(-2376.4399414963, 909.61828613281, 44.4453125, "cylinder", 2, 255, 255, 0, 255) blip = createBlip(-2376.4399414963, 909.61828613281, 44.4453125, 45) function buy(id) if (getPlayerMoney(source) >= 200) then takePlayerMoney(source, 200) setElementModel(source, id) setAccountData(getPlayerAccount(source), "standardskin", id) else outputChatBox("You don't have money", source, 255,255,255,true) end end addEvent("useSkin",true) addEventHandler("useSkin", root, buy) function guishow(hitPlayer) triggerClientEvent(hitPlayer, "guishowc", hitPlayer) end addEventHandler("onMarkerHit", marker, guishow) Link to comment
BeCooL Posted October 24, 2012 Author Share Posted October 24, 2012 marker = createMarker(-2376.4399414963, 909.61828613281, 44.4453125, "cylinder", 2, 255, 255, 0, 255) blip = createBlip(-2376.4399414963, 909.61828613281, 44.4453125, 45) function buy(id) if (getPlayerMoney(source) >= 200) then takePlayerMoney(source, 200) setElementModel(source, id) setAccountData(getPlayerAccount(source), "standardskin", id) else outputChatBox("You don't have money", source, 255,255,255,true) end end addEvent("useSkin",true) addEventHandler("useSkin", root, buy) function guishow(hitPlayer) triggerClientEvent(hitPlayer, "guishowc", hitPlayer) end addEventHandler("onMarkerHit", marker, guishow) مشكوور تابل جربته و100% بس عندي استفسار بسيط كيف اسوي اكثر موقع للمود بدون ما اكرر المود ؟ Link to comment
TAPL Posted October 24, 2012 Share Posted October 24, 2012 قصدك أكثر من ماركر؟ Marker1 = createMarker(-2376.4399414963, 909.61828613281, 44.4453125, "cylinder", 2, 255, 255, 0, 255) Marker2 = createMarker(x, y, z, "cylinder", 2, 255, 255, 0, 255) Marker3 = createMarker(x, y, z, "cylinder", 2, 255, 255, 0, 255) createBlipAttachedTo(Marker1, 45) createBlipAttachedTo(Marker2, 45) createBlipAttachedTo(Marker3, 45) function buy(id) if (getPlayerMoney(source) >= 200) then takePlayerMoney(source, 200) setElementModel(source, id) setAccountData(getPlayerAccount(source), "standardskin", id) else outputChatBox("You don't have money", source, 255,255,255,true) end end addEvent("useSkin",true) addEventHandler("useSkin", root, buy) function guishow(hitPlayer) if source == Marker1 or source == Marker2 or source == Marker3 then triggerClientEvent(hitPlayer, "guishowc", hitPlayer) end end addEventHandler("onMarkerHit", root, guishow) Link to comment
BeCooL Posted October 24, 2012 Author Share Posted October 24, 2012 قصدك أكثر من ماركر؟ Marker1 = createMarker(-2376.4399414963, 909.61828613281, 44.4453125, "cylinder", 2, 255, 255, 0, 255) Marker2 = createMarker(x, y, z, "cylinder", 2, 255, 255, 0, 255) Marker3 = createMarker(x, y, z, "cylinder", 2, 255, 255, 0, 255) createBlipAttachedTo(Marker1, 45) createBlipAttachedTo(Marker2, 45) createBlipAttachedTo(Marker3, 45) function buy(id) if (getPlayerMoney(source) >= 200) then takePlayerMoney(source, 200) setElementModel(source, id) setAccountData(getPlayerAccount(source), "standardskin", id) else outputChatBox("You don't have money", source, 255,255,255,true) end end addEvent("useSkin",true) addEventHandler("useSkin", root, buy) function guishow(hitPlayer) if source == Marker1 or source == Marker2 or source == Marker3 then triggerClientEvent(hitPlayer, "guishowc", hitPlayer) end end addEventHandler("onMarkerHit", root, guishow) مشكووور ميه ميه Link to comment
GAME_OVER!! Posted October 24, 2012 Share Posted October 24, 2012 ضيف هاذي مكان الفلوس if ( PlayerMoney >= 200) then takePlayerMoney(source,200) كوبي باست 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