#Soking

Members
  • Content count

    1,423
  • Joined

  • Last visited

  • Days Won

    5

#Soking last won the day on April 5

#Soking had the most liked content!

Community Reputation

198 Celebrity

About #Soking

  • Rank
    Loc
  • Birthday 13/03/1990

Details

  • Gang
    i don't have gang :D

Recent Profile Visitors

2,325 profile views
  1. Mini Admin

    واط ثيس ! خورافي حببي
  2. طلب كوود

    هولي شيت هه غير زيرو لـ 2
  3. x[ طلب آستفسآر ]x : set/getElementData

    Query, AllData, UpdateSQL, OnEvent, OnStart, LoadDatas = executeSQLQuery, { 'YourData' }, function( Player ) local Serial, Table = getPlayerSerial( Player ), { } for _, Value in ipairs( AllData ) do table.insert( Table, { Value, getElementData( Player, Value ) } ) end local NewTable = toJSON( Table ) return ( #Query( 'SELECT * FROM SaveData WHERE Serial = ?', Serial ) == 0 and Query( 'INSERT INTO SaveData VALUES( ?, ? )', Serial, NewTable ) or Query( 'UPDATE SaveData SET JSON = ? WHERE Serial = ?', NewTable, Serial ) ) end, function( ) UpdateSQL( source ) end, function( ) for _, Player in ipairs( getElementsByType( 'player' ) ) do UpdateSQL( Player ) end end, function( ) local Serial = getPlayerSerial( source ) if ( #Query( 'SELECT * FROM SaveData WHERE Serial = ?', Serial ) == 0 ) then AllData( source ) end local SQL = Query( 'SELECT * FROM SaveData WHERE Serial = ?', Serial )[1] local LoadTable = fromJSON( SQL['JSON'] ) for _, Value in ipairs( LoadTable ) do setElementData( source, Value[1], Value[2] ) end end Query( 'CREATE TABLE IF NOT EXISTS SaveData( Serial, JSON )' ) addEventHandler( 'onResourceStart', resourceRoot, OnStart ) addEventHandler( 'onPlayerQuit', root, UpdateSQL ) addEventHandler( 'onPlayerJoin', root, LoadDatas ) مش مجربه YourData - غير دي لـ اسم الداتا بتاعتك
  4. طلب كود

    local xRoot = getRootElement() xOld = { } Serials = { ['Serial1'] = 'True hh -_-' } function xGetOldPlayerName ( ) local xName = getPlayerName ( source ) local xSerial = getPlayerSerial(source) if ( Serials[xSerial] ) then return end if xOld[tostring(xSerial)] then if xOld[tostring(xSerial)] ~= xName then local xOldName = xOld[tostring(xSerial)] outputChatBox("#FFFFFF[ #FF0000"..xName.."#FFFFFF ]#2B60DE<==(The Name Back)==>#FFFFFF[ #FF0000"..xOldName.."#FFFFFF ]", root, 255, 255, 0, true) xOld[xSerial] = xName end else xOld[xSerial] = xName end end addEventHandler ( "onPlayerJoin", xRoot, xGetOldPlayerName )
  5. MTASpeak

    واااااااااو
  6. طلب كود برمجي

    onClientVehicleDamage getVehicleOccupant
  7. مشكلة في كود

    لا كلهم داخلين المنتدي يثبتو نفسهم وفقط ههه
  8. مساعدة الرجاء الرد

    😐😐😐
  9. تقدر تضيف اي داتا وفي كومبو بوكس اثناء وضع الاسئله
  10. Gta-PaN موداتي بسيرفر فيها دا المود منشورين باليوتيوب