Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. createMarker 'onMarkerHit' getElementType isTimer setTimer isElementWithinMarker doesPedHaveJetPack removePedJetPack 'onMarkerLeave' isTimer killTimer
  2. addEventHandler("onClientGUIClick",root, function() if source == Roll~1 then waste = true end end) function onWaste() if waste then setElementPosition(localPlayer, x, y, z) waste = false end end addEventHandler("onClientPlayerWasted", localPlayer, onWaste)
  3. Oh sorry i forgot the value in the set ped stat change this : setPedStat ( source,getAccountData (account,"save-stats".. stats) or nil,getAccountData (account,"save-stats".. stats) or 0 )
  4. كذا ؟ addEventHandler("onClientGUIClick",root, function() if source == Roll~1 then waste = true end) function onWaste() if waste then setElementPosition(localPlayer, x, y, z) waste = false end end addEventHandler("onClientPlayerWasted", localPlayer, onWaste) Roll~1 ? ورني وينة ومايصلح ~ ذذ
  5. addEventHandler ( "onPlayerWasted", root, function ( ) local account = getPlayerAccount ( source ) if ( account and not isGuestAccount ( account ) ) then for stats = 69,81 do setAccountData ( account,"save-stats".. stats,getPedStat ( source,stats ) ) end for slot = 1, 12 do setAccountData ( account, "save-wep".. slot, getPedWeapon ( source, slot ) ) setAccountData ( account, "save-ammo".. slot, getPedTotalAmmo ( source, slot ) ) end local team = getPlayerTeam ( source ) if ( team ) then setAccountData ( account, "save-team", getTeamName ( team ) ) setAccountData ( account,"save-wanted",getPlayerWantedLevel ( source ) ) end end end ) addEventHandler ( "onPlayerSpawn", root, function ( ) local account = getPlayerAccount ( source ) if ( account and not isGuestAccount ( account ) ) then local team = getTeamFromName ( getAccountData ( account, "save-team" ) ) if not ( team ) then outputChatBox ( "Get a Job NOOB", source ) return end setPlayerTeam ( source, team ) for slot = 1, 12 do local wep = getAccountData ( account, "save-wep".. slot ) local ammo = getAccountData ( account, "save-ammo".. slot ) giveWeapon ( source, wep, ammo ) local playerWanted = getAccountData (account, "save-wanted") setPlayerWantedLevel ( source,playerWanted or 0 ) for stats = 69,81 do setPedStat ( source,getAccountData (account,"save-stats".. stats) or nil ) outputChatBox('SET PED STAT DONE',source) end end end end ) See if it output the chat box or no .
  6. addEventHandler ( "onPlayerWasted", root, function ( ) local account = getPlayerAccount ( source ) if ( account and not isGuestAccount ( account ) ) then for stats = 69,81 do setAccountData ( account,"save-stats".. stats,getPedStat ( source,stats ) ) end for slot = 1, 12 do setAccountData ( account, "save-wep".. slot, getPedWeapon ( source, slot ) ) setAccountData ( account, "save-ammo".. slot, getPedTotalAmmo ( source, slot ) ) end local team = getPlayerTeam ( source ) if ( team ) then setAccountData ( account, "save-team", getTeamName ( team ) ) setAccountData ( account,"save-wanted",getPlayerWantedLevel ( source ) ) end end end ) addEventHandler ( "onPlayerSpawn", root, function ( ) local account = getPlayerAccount ( source ) if ( account and not isGuestAccount ( account ) ) then local team = getTeamFromName ( getAccountData ( account, "save-team" ) ) if not ( team ) then outputChatBox ( "Get a Job NOOB", source ) return end setPlayerTeam ( source, team ) for slot = 1, 12 do local wep = getAccountData ( account, "save-wep".. slot ) local ammo = getAccountData ( account, "save-ammo".. slot ) giveWeapon ( source, wep, ammo ) local playerWanted = getAccountData (account, "save-wanted") setPlayerWantedLevel ( source,playerWanted or 0 ) for stats = 69,81 do setPedStat ( source,getAccountData (account,"save-stats".. stats) ) end end end end )
  7. تقدر بداتا : setElementData and getElementData or TAPL Func
  8. addEventHandler ( "onPlayerWasted", root, function ( ) local account = getPlayerAccount ( source ) if ( account and not isGuestAccount ( account ) ) then for stats = 69,81 do setAccountData ( account,"save-stats".. stats,getPedStat ( source,stats ) ) end for slot = 1, 12 do setAccountData ( account, "save-wep".. slot, getPedWeapon ( source, slot ) ) setAccountData ( account, "save-ammo".. slot, getPedTotalAmmo ( source, slot ) ) end local team = getPlayerTeam ( source ) if ( team ) then setAccountData ( account, "save-team", getTeamName ( team ) ) setAccountData ( account,"save-wanted",getPlayerWantedLevel ( source ) ) end end end ) addEventHandler ( "onPlayerSpawn", root, function ( ) local account = getPlayerAccount ( source ) if ( account and not isGuestAccount ( account ) ) then local team = getTeamFromName ( getAccountData ( account, "save-team" ) ) if not ( team ) then outputChatBox ( "Get a Job NOOB", source ) return end setPlayerTeam ( source, team ) for slot = 1, 12 do local wep = getAccountData ( account, "save-wep".. slot ) local ammo = getAccountData ( account, "save-ammo".. slot ) giveWeapon ( source, wep, ammo ) local playerWanted = getAccountData (account, "save-wanted") setPlayerWantedLevel ( source,playerWanted or 0 ) for stats = 69,81 do local stats = getAccountData (account,"save-stats".. stats) setPedStat ( source,stats ) end end end end )
  9. مثل كنق ؟ على فكرة أنا بطلت ارد على ردودكـ لاني غسلت يدي منكـ خخخ لأنه بصراحة لو بجلس اصحح لكـ رح اغير الكود كامل + كل ما أحد يصحح لكك تقول سوري مانتبهت أو سهران أو مخي ملحوس < دايم ملحوس خخ على قولة أحمد لا لانكم فيكم نفسيه... الكود شغال ومافيه اخطاء لازم تعدلوه 360 درجه,, اممم شوف كودي و كودك وقلي الفرق كودك تايمر يضيف كلام ويسوي مليون قريد متكرر كودك حوسة يخبص الواحد ومدري هو جد شغال؟
  10. حدث : onClientGUIClick وظائف : triggerServerEvent addEventHandler addEvent 'Event' function ( ) isPedDead ( ped or player ) setElementPosition
  11. اهم شيء استفدت .. حياكـ الله ..
  12. addEventHandler('onClientGUIClick',Button, function ( ) if guiGetVisible ( OldWindow ) and not guiGetVisible ( NewWindow ) then guiSetVisible ( OldWindow , false ); guiSetVisible ( NewWindow , true ); end end,false ) Button = MyButton
  13. ^ انا اقل منك ذذ مالي الا سنة .. ذذ بس عموما موفق
  14. Are you sure you have a wanted level ? And please see what the debug say .
  15. ياخوي كودي تمام شكلك مبتدئ بالبرمجة شوف الويكي تأكد من اكواك ثانية اذا ماتبي تطرحة .. ذذذذذ
  16. كودي تمام ومختصر بس الله العالم وش مشكلتك .. ذذ
  17. addEventHandler ( "onPlayerWasted", root, function ( ) local account = getPlayerAccount ( source ) if ( account and not isGuestAccount ( account ) ) then for slot = 1, 12 do setAccountData ( account, "save-wep".. slot, getPedWeapon ( source, slot ) ) setAccountData ( account, "save-ammo".. slot, getPedTotalAmmo ( source, slot ) ) end local team = getPlayerTeam ( source ) if ( team ) then setAccountData ( account, "save-team", getTeamName ( team ) ) setAccountData ( account,"save-wanted",getPlayerWantedLevel ( source ) ) end end end ) addEventHandler ( "onPlayerSpawn", root, function ( ) local account = getPlayerAccount ( source ) if ( account and not isGuestAccount ( account ) ) then local team = getTeamFromName ( getAccountData ( account, "save-team" ) ) if not ( team ) then outputChatBox ( "Get a Job NOOB", source ) return end setPlayerTeam ( source, team ) for slot = 1, 12 do local wep = getAccountData ( account, "save-wep".. slot ) local ammo = getAccountData ( account, "save-ammo".. slot ) giveWeapon ( source, wep, ammo ) local playerWanted = getAccountData (account, "save-wanted") setPlayerWantedLevel ( source,playerWanted or 0 ) end end end )
  18. ماغير شيء بس اكيد عندك اخطاء بالمتغيرات قلنا لك اطرح الكود منت راضي ..
  19. اطرح الكود حقك اللي اشتغل ..
  20. انا اصلا انلحست وش تبي الحين انت؟
  21. الكود كامل ماأقدر أرسله لك خاص ؟ لو اقدر قلت ارسلة بس عندي قانون يمنع هالشيء من كم اسبوع مطبقة .. عموما اذا حاب تطرحة و قدرت اساعدك مافية اشكالية اما ترسلي خاص اعذرني ..
  22. تدري اطرح كودكـ كامل باللوحة وكل شيء وخلنا نصلحة لك شكلك عافس الدنيا ^ فوق لـ تحت
  23. العكس المفروض تسهل بس الشكوى لله نسهل و ينلحسون .. |: .. kill me ..
×
×
  • Create New...