Jump to content

SkatCh

Members
  • Content Count

    365
  • Joined

  • Last visited

Posts posted by SkatCh

  1. guys please i have a question i don't know if it's possible or not , can i ipairs 3 table in the same time example :

    for _, p in ipairs (..... , ...... , .....) do 
    

    i'm sorry about my english.

  2. guys can anyone help me here i create an export function to addWanted level when a player kill some etc ... and it's working fine but when the player get 6 stars this error apper :

    My export function (addWatendLevel):

      
    function addWantedLevel(player, amount) 
        local cur = wantedLevel[player] or 0 
        local wl = getPlayerWantedLevel(player) or 0 
        wantedLevel[player] = cur + amount 
        setPlayerWantedLevel(player, wl + 1) 
        setElementData(player, "wap", cur + amount) 
        setElementData(player, "wans", wl + 1) 
    end 
    

    error : Valid wanted levels are between 0 and 6 inclusive.

  3. Post your full code so we can understand your problem even better.

    it's just a part from my code just i need to make the players inside the tabe can hear the sound that's all .

    i already change it to root but all players inside the server hear it.

  4. guys i need some help i create a table and i want just those players will hear the sound ,

    server :

    for _, p in ipairs (CrTable) do 
                    textDisplayRemoveObserver(Display, p) 
                    triggerClientEvent("playMyMusic",p) 
                    end 
    

    and iside the client file i add the PlaySound . the text is working fine and the triggerClientEvent i think that there is something wrong.

    i'm sorry about my english.

  5. guys please i have a question i create a Radar Area and i want to select a random color for it what can i do .

      
    createRadarArea(X, Y, Z, S, ) -- i want a random color . 
      
    

    i'm sorry about my english.

  6. guys can anyone help me here :

    function getPlayerCountry ( player ) 
        return getIpCountry ( getPlayerIP ( player ) )  <----- this line 
    end 
      
    function getIpCountry ( ip ) 
        local ip_group = tonumber ( gettok ( ip, 1, 46 ) ) <------- This line 
        local ip_code = ( gettok ( ip, 1, 46 ) * 16777216 ) + ( gettok ( ip, 2, 46 ) * 65536 ) + ( gettok ( ip, 3, 46 ) * 256 ) + ( gettok ( ip, 4, 46 ) ) <------ this line 
        if ( #aCountries == 0 ) then 
            loadIPGroups () 
        end 
        if ( not aCountries[ip_group] ) then 
            aCountries[ip_group] = {} 
        end 
        for id, group in ipairs ( aCountries[ip_group] ) do 
            if ( ( group.rstart <= ip_code ) and ( ip_code <= group.rend ) ) then 
                return group.rcountry 
            end 
        end 
        return false 
    end 
    

    Warning :

    1- Bar argument @ 'getPlayerIP' [Excepted Element At argument 1, got nil]

    2- Bar argument @ 'gettok' [Excepted String At argument 1, got boolean]

    3- Bar argument @ 'gettok' [Excepted String At argument 1, got boolean]

  7. i guys please i want to disable chat here what can i do i tried showChat (false). but didn't work .

    DownloadDisplay = textCreateDisplay() 
    Text = textCreateTextItem("Hello!!", 0.5,0.5) 
    textDisplayAddText(DownloadDisplay, Text) 
      
      
    addEventHandler("onPlayerJoin", root, 
    function() 
        textDisplayAddObserver(DownloadDisplay, source) 
    end) 
      
      
    

  8. sorry i read it all but i don't undrestand exactll what i need to do can u help me with simple steps example i want or download xXMADEXx.dff .

    1- first i need to add download to the meta.xml like this : (true it means it will dowload it on resource start right).

    "xXMADEXx.dff" download="true"/> 
    

    2- after i add it to meta.xml what i need to do i think i need to delete the file from the resource folder right then i need to upload it to HTTP server

  9. hi guys please i need some help todya i create a Vip system and it's working fine but i have a small problem wich is , i want to add a save system ( i already create it ) but is it possible to make it save players Vip times every ex : 3 or 5 seconds ,

    in other words i want the save function restart evrey 3 seconds to check players VIP time.

×
×
  • Create New...