Jump to content

طلب كود


EL-JoKeR

Recommended Posts

جرب كذا

كلينت

addEventHandler("onClientPlayerJoin", root, 
function() 
       Elplayer = localPlayer 
       setTimer( hour24, 1000, 0) 
end ) 
  
function hour24 (  ) 
     s = s+1 
     if s == 60 then 
         s=0 
        m= m+ 1 
     end 
     if m == 60 then 
        m = 0 
        h = h + 1 
     end 
    setElementData( Elplayer, "sec", s ) 
    setElementData( Elplayer, "min", m ) 
    setElementData( Elplayer, "hour", h ) 
    if getElementData( Elplayer, "hour" ) == 24 then 
       triggerServerEvent( "onHour24", root, Elplayer ) 
       h = 0  
    return s 
    end 
end 

سيرفر

  
money = 1000 -- تقدر تغير الفلوس من هنا 
  
addEvent("onHour24", true) 
addEventHandler("onHour24", root, 
function ( Elplayer ) 
     givePlayerMoney( Elplayer, money ) 
     outputChatBox(getPlayerName( Elplayer ), root, 255,0,0,true) 
end    ) 
  

( ماني مجرب الاكواد )

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