Jump to content

مسأأعده


BeCooL

Recommended Posts

:x شباب شوفوا لي حل ...

هذا المود اذا شريت الشخصية وماعندك فلوس تصير فلوسك سالب ؟؟!!

اناابغاها اذا ما عندك فلوس ما تقدر تشتري كيف ؟ :mrgreen:

هذا الكود

    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
ضيف هاذي مكان الفلوس
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
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
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

قصدك أكثر من ماركر؟

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
قصدك أكثر من ماركر؟
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) 

مشكووور ميه ميه :mrgreen:

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...