Jump to content

Recommended Posts

Lehna, tnajem t7ot scripts à les publiques, nebda ena :D

hetha script ya3ti el 3bed elkol 1000$ kol 1 heure

s.lua

function giveMoney() 
local players = getElementsByType("player") 
for _,v in ipairs(players) do 
givePlayerMoney(v, 1000) 
outputChatBox("You have been given 1000$ as Payday", root, 0, 255, 0) 
end 
end 
  
setTimer(giveMoney, 3600000, 0) 

meta.xml

<meta> 
    <script src="s.lua" type="server" /> 
</meta> 

Link to comment

No problem, misalech na3mel script a5er "output money in scoreboard"

s.lua

exports.dxscoreboard:scoreboardAddColumn( "Money" ) 
  
addEventHandler("onPlayerJoin", root, 
function() 
money = getPlayerMoney(source) 
setElementData(source, "Money", money) 
end 
) 
  
function check() 
    if (money = true) then 
    return true 
    else 
    return false 
    end 
end 
setTimer(check, 1000, 0)  

meta.xml

<meta> 
 <script src ="s.lua" type="server"/> 
</meta> 

Link to comment

barcha 3bed ta3ref e Teleporter w houwa ma3rouf barcha ki tmes marker twarpi l blasa jdid.fel example hetha marker mawjouda fel airport mta3 el LS w lo5ra fel airport mta3 el LV.

  
local marker1= createMarker(1967.3199462891,-2177.8508300781,12.540625,"cylinder",1.5,0,255,0,255) 
local marker2= createMarker(1703.9216308594,1488.7879638672,9.640625,"cylinder", 
1.5,0,255,0,255) 
  
function warpMe(player) 
if (source == marker1) then         
setElementPosition(player, 1707.3765869141,1486.5506591797,10.795643806458) 
elseif (source == marker2) then 
setElementPosition(player, 1965.5300292969,-2174.9704589844,13.502159118652) 
end 
end 
addEventHandler("onMarkerHit", root,warpMe) 
  

 <meta> 
 <script src ="teleporter.lua" type="server"/> 
</meta> 

Link to comment
barcha 3bed ta3ref e Teleporter w houwa ma3rouf barcha ki tmes marker twarpi l blasa jdid.fel example hetha marker mawjouda fel airport mta3 el LS w lo5ra fel airport mta3 el LV.
  
local marker1= createMarker(1967.3199462891,-2177.8508300781,12.540625,"cylinder",1.5,0,255,0,255) 
local marker2= createMarker(1703.9216308594,1488.7879638672,9.640625,"cylinder", 
1.5,0,255,0,255) 
  
function warpMe(player) 
if (source == marker1) then         
setElementPosition(player, 1707.3765869141,1486.5506591797,10.795643806458) 
elseif (source == marker2) then 
setElementPosition(player, 1965.5300292969,-2174.9704589844,13.502159118652) 
end 
end 
addEventHandler("onMarkerHit", root,warpMe) 
  

 <meta> 
 <script src ="teleporter.lua" type="server"/> 
</meta> 

tnajam trigli hadhi ?

il marker1 ya5dem ama manajmch nchofo

marker1 = createMarker(2550,-1294,1061,"arrow",1.5,255,255,0,155) 
marker2 = createMarker(2197, 1678, 13,"arrow",1.5,255,255,0,155) 
  
setElementInterior (marker1,2) 
setElementDimension (marker1,100) 
  
function entrada(thePlayer) 
    post = setElementPosition(thePlayer, 2195, 1678, 13) 
            setElementInterior (thePlayer, 0 ) 
            setElementDimension (thePlayer, 0 ) 
end 
addEventHandler( "onMarkerHit", marker1, entrada ) 
  
function leave(thePlayer) 
    post2 = setElementPosition(thePlayer, 2551.5,-1294,1061) 
            setElementInterior (thePlayer, 2 ) 
            setElementDimension (thePlayer, 100 ) 
end 
addEventHandler( "onMarkerHit", marker2, leave ) 

Link to comment

Wut??

script a5er xDD /suicide + timer

s.lua

addCommandHandler("suicide", 
    function(thePlayer) 
        setTimer(killPed, 5000, 1, thePlayer) -- badel el 5000 el 9adech t7eb enti et 1000=1 sec 
        setElementFrozen(thePlayer, true) 
        outputChatBox("You'll die in 5 seconds!", thePlayer, 255, 0, 0) 
    end 
) 
  
addEventHandler("onPlayerSpawn", root, 
   function(thePlayer) 
    setElementFrozen(thePlayer, false) 
end 
) 

meta.xml:

<meta> 
    <script src="s.lua" type="server" /> 
</meta> 

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...