SullyDawish

Members
  • Content Count

    24
  • Joined

  • Last visited

Community Reputation

3 Neutral

About SullyDawish

  • Rank
    Civilian

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. اككيد بمقابل مابي شي ببلاش .. بس ابي واحد يعطيني كلمه وحده مو نتفق ويختفي معاد يرد علي ..
  2. السلام عليكم ورحمة الله وبركاته .. كثير من اعضا المجتمع حاطين مواضيع يقولون فيها اطلب اي مود ونسويه لك .. جربت اكثر من واحد لي الاسف من اطلب المود ونتفق على كل شي يختفي ولا عاد يرد علي .. يااليت الي صامل ويعرف وش يسوي يكلمني خاص عندي اكثر من مود ابيهم .. رجاَ الي ماله في الموضوع هذا لا يكلمني ..
  3. ليه اكثر الي يردون شايلين على بعض .. احس كل واحد حاقد على الثاني كل عام وانتم بخر ..
  4. حليت المشكلة شكرا لي الي حاولو يساعدوني .. المشكلة كانت في الترتيب بس .. بعد ما رتبت الكود كل شي زبط هنا الكود بعد ما عدلت عليه لي الي حاب يفهم وين كانت المشكلة .. --[[ -- ألإصدار القادم سيتم فتح هذا - ---addCommandHandler("alive", getAlivePlayers, false, false) --function getAlivePlayers( alivePlayersList ) function alivePlayers( getAlivePlayers, alivePlayersList ) --() if ( alivePlayers ) then -- if we got the table alivePlayersList = "none" -- Loop through the table for playerKey, playerValue in ipairs(alivePlayers) do -- add their name to the list if ( alivePlayersList == "none" ) then alivePlayersList = getPlayerName ( playerValue ) else alivePlayersList = alivePlayersList .. ", " .. getPlayerName ( playerValue ) end end outputChatBox ( alivePlayersList .. " : اللاعبين الذين هم على قيد الحياة: ") - end addCommandHandler("aaa" ,getAlivePlayers, alivePlayersList) ]] --revive script by: sRT, Richard C' Lugovoi function revivePlayerFromPK(thePlayer, commandName, targetPlayer) --local theTeam = getPlayerTeam(thePlayer) --if (teamID==1 or teamID==2 or teamID==3 or teamID==47 or teamID==59) then -- if exports.global:hasItem(thePlayer, 70) then -- exports.global:takeItem(thePlayer, 70) -- outputChatBox("You have revived And Take From You 500$", thePlayer, 0, 255, 0) if getPlayerTeam( thePlayer ) == getTeamFromName( "وزارة صحة بون كونتري" ) then if not (targetPlayer) then outputChatBox("SYNTAX: /" .. commandName .. " [Player Partial Name / ID]", thePlayer, 255, 194, 14) else local targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) if targetPlayer then if getElementData(targetPlayer, "dead") == 1 then triggerClientEvent(targetPlayer,"es-system:closeRespawnButton",targetPlayer) --fadeCamera(thePlayer, true) --outputChatBox("Respawning...", thePlayer) if isTimer(changeDeathViewTimer) == true then killTimer(changeDeathViewTimer) end local x,y,z = getElementPosition(targetPlayer) local int = getElementInterior(targetPlayer) local dim = getElementDimension(targetPlayer) local skin = getElementModel(targetPlayer) local team = getPlayerTeam(targetPlayer) setPedHeadless(targetPlayer, false) setCameraInterior(targetPlayer, int) setCameraTarget(targetPlayer, targetPlayer) setElementData(targetPlayer, "dead", 0) spawnPlayer(targetPlayer, x, y, z, 0)--, team) --(team ~= "Los Santos Emergency Services") setElementModel(targetPlayer,skin) setPlayerTeam(targetPlayer, team) setElementInterior(targetPlayer, int) setElementDimension(targetPlayer, dim) triggerEvent("updateLocalGuns", targetPlayer) if exports.global:hasMoney(thePlayer, 200) then -- سعرالمعالجة exports.global:takeMoney(thePlayer, 200) -- سعر المعالجة outputChatBox("You have been revived and take from you 200$", thePlayer, 0, 255, 0) -- رسالةتم اذ منك 200 ومعالجتك else outputChatBox("You dont have money", thePlayer, 0, 255, 0) end outputChatBox("The medic "..tostring(getPlayerName(thePlayer):gsub("_"," ")).." has been revived you", targetPlayer, 0, 255, 0) outputChatBox("You have revived "..tostring(getPlayerName(targetPlayer):gsub("_"," "))..".", thePlayer, 0, 255, 0) -- if exports.global:hasItem(thePlayer, 34) then -- exports.global:takeItem(thePlayer, 34) -- outputChatBox("You have revived And Take From You 500$", thePlayer, 0, 255, 0) exports.global:sendMessageToAdmins("AdmCmd: "..getPlayerName(thePlayer).." mrevived "..tostring(getPlayerName(targetPlayer))..".") exports.logs:dbLog(thePlayer, 4, targetPlayer, "REVIVED from PK") else outputChatBox(tostring(getPlayerName(targetPlayer):gsub("_"," ")).." is not dead.", thePlayer, 255, 0, 0) end end end end end addCommandHandler("mrevive", revivePlayerFromPK, false, false) -- /mrevive system by sRT function adminHeal(thePlayer, commandName, targetPlayer) if getPlayerTeam( thePlayer ) == getTeamFromName( "وزارة صحة بون كونتري" ) then -- اسم الفاكشن local health = 100 local targetPlayerName = getPlayerName(thePlayer):gsub("_", " ") if not (targetPlayer) then targetPlayer = thePlayer else targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) end if exports.global:hasMoney(targetPlayer, 200) then -- سعرالمعالجة exports.global:takeMoney(targetPlayer, 200) -- سعر المعالجة outputChatBox("لقد تمت معالجتك من قبل المسعف واخذ مبلغ $200", targetPlayer, 0, 255, 0) -- رسالةتم اذ منك 200 ومعالجتك else outputChatBox("لايوجد لديك المال الكافي لي علاجك", targetPlayer, 0, 255, 0) end if targetPlayer then setElementHealth(targetPlayer, tonumber(health)) -- outputChatBox("The Medic " .. targetPlayerName .. " Has Treat You , Now Your Health : " .. getAlivePlayers .. " Health.", thePlayer, 0, 255, 0) outputChatBox("المسعف " .. thePlayer .. " قام بمعالجتك طاقتك الان : " .. health .. " الطاقة.", targetPlayer, 0, 255, 0) else triggerEvent("onPlayerHeal", targetPlayer, true) exports.logs:dbLog(thePlayer, 4, targetPlayer, "AHEAL "..health) end end end addCommandHandler("maheal", adminHeal, false, false) -- ألتكملةالحلقة القادمة sRT, Richard C' Lugovoi
  5. problem solved .^^^ on th last code iv posted thank you guys
  6. حليت المشكله اشكر الي حاولو يساعدوني ... نزلت الحل عشان الفائدة بس .. شكرا --[[ -- ألإصدار القادم سيتم فتح هذا - ---addCommandHandler("alive", getAlivePlayers, false, false) --function getAlivePlayers( alivePlayersList ) function alivePlayers( getAlivePlayers, alivePlayersList ) --() if ( alivePlayers ) then -- if we got the table alivePlayersList = "none" -- Loop through the table for playerKey, playerValue in ipairs(alivePlayers) do -- add their name to the list if ( alivePlayersList == "none" ) then alivePlayersList = getPlayerName ( playerValue ) else alivePlayersList = alivePlayersList .. ", " .. getPlayerName ( playerValue ) end end outputChatBox ( alivePlayersList .. " : اللاعبين الذين هم على قيد الحياة: ") - end addCommandHandler("aaa" ,getAlivePlayers, alivePlayersList) ]] --revive script by: sRT, Richard C' Lugovoi function revivePlayerFromPK(thePlayer, commandName, targetPlayer) --local theTeam = getPlayerTeam(thePlayer) --if (teamID==1 or teamID==2 or teamID==3 or teamID==47 or teamID==59) then -- if exports.global:hasItem(thePlayer, 70) then -- exports.global:takeItem(thePlayer, 70) -- outputChatBox("You have revived And Take From You 500$", thePlayer, 0, 255, 0) if getPlayerTeam( thePlayer ) == getTeamFromName( "وزارة صحة بون كونتري" ) then if not (targetPlayer) then outputChatBox("SYNTAX: /" .. commandName .. " [Player Partial Name / ID]", thePlayer, 255, 194, 14) else local targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) if targetPlayer then if getElementData(targetPlayer, "dead") == 1 then triggerClientEvent(targetPlayer,"es-system:closeRespawnButton",targetPlayer) --fadeCamera(thePlayer, true) --outputChatBox("Respawning...", thePlayer) if isTimer(changeDeathViewTimer) == true then killTimer(changeDeathViewTimer) end local x,y,z = getElementPosition(targetPlayer) local int = getElementInterior(targetPlayer) local dim = getElementDimension(targetPlayer) local skin = getElementModel(targetPlayer) local team = getPlayerTeam(targetPlayer) setPedHeadless(targetPlayer, false) setCameraInterior(targetPlayer, int) setCameraTarget(targetPlayer, targetPlayer) setElementData(targetPlayer, "dead", 0) spawnPlayer(targetPlayer, x, y, z, 0)--, team) --(team ~= "Los Santos Emergency Services") setElementModel(targetPlayer,skin) setPlayerTeam(targetPlayer, team) setElementInterior(targetPlayer, int) setElementDimension(targetPlayer, dim) triggerEvent("updateLocalGuns", targetPlayer) if exports.global:hasMoney(thePlayer, 200) then -- سعرالمعالجة exports.global:takeMoney(thePlayer, 200) -- سعر المعالجة outputChatBox("You have been revived and take from you 200$", thePlayer, 0, 255, 0) -- رسالةتم اذ منك 200 ومعالجتك else outputChatBox("You dont have money", thePlayer, 0, 255, 0) end outputChatBox("The medic "..tostring(getPlayerName(thePlayer):gsub("_"," ")).." has been revived you", targetPlayer, 0, 255, 0) outputChatBox("You have revived "..tostring(getPlayerName(targetPlayer):gsub("_"," "))..".", thePlayer, 0, 255, 0) -- if exports.global:hasItem(thePlayer, 34) then -- exports.global:takeItem(thePlayer, 34) -- outputChatBox("You have revived And Take From You 500$", thePlayer, 0, 255, 0) exports.global:sendMessageToAdmins("AdmCmd: "..getPlayerName(thePlayer).." mrevived "..tostring(getPlayerName(targetPlayer))..".") exports.logs:dbLog(thePlayer, 4, targetPlayer, "REVIVED from PK") else outputChatBox(tostring(getPlayerName(targetPlayer):gsub("_"," ")).." is not dead.", thePlayer, 255, 0, 0) end end end end end addCommandHandler("mrevive", revivePlayerFromPK, false, false) -- /mrevive system by sRT function adminHeal(thePlayer, commandName, targetPlayer) if getPlayerTeam( thePlayer ) == getTeamFromName( "وزارة صحة بون كونتري" ) then -- اسم الفاكشن local health = 100 local targetPlayerName = getPlayerName(thePlayer):gsub("_", " ") if not (targetPlayer) then targetPlayer = thePlayer else targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) end if exports.global:hasMoney(targetPlayer, 200) then -- سعرالمعالجة exports.global:takeMoney(targetPlayer, 200) -- سعر المعالجة outputChatBox("لقد تمت معالجتك من قبل المسعف واخذ مبلغ $200", targetPlayer, 0, 255, 0) -- رسالةتم اذ منك 200 ومعالجتك else outputChatBox("لايوجد لديك المال الكافي لي علاجك", targetPlayer, 0, 255, 0) end if targetPlayer then setElementHealth(targetPlayer, tonumber(health)) -- outputChatBox("The Medic " .. targetPlayerName .. " Has Treat You , Now Your Health : " .. getAlivePlayers .. " Health.", thePlayer, 0, 255, 0) outputChatBox("المسعف " .. thePlayer .. " قام بمعالجتك طاقتك الان : " .. health .. " الطاقة.", targetPlayer, 0, 255, 0) else triggerEvent("onPlayerHeal", targetPlayer, true) exports.logs:dbLog(thePlayer, 4, targetPlayer, "AHEAL "..health) end end end addCommandHandler("maheal", adminHeal, false, false) -- ألتكملةالحلقة القادمة sRT, Richard C' Lugovoi
  7. function revivePlayerFromPK(thePlayer, commandName, targetPlayer) if getPlayerTeam( thePlayer ) == getTeamFromName( "Los Santos Fire Department" ) then if not (targetPlayer) then outputChatBox("SYNTAX: /" .. commandName .. " [Player Partial Name / ID]", thePlayer, 255, 194, 14) else local targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) if targetPlayer then if getElementData(targetPlayer, "dead") == 1 then triggerClientEvent(targetPlayer,"es-system:closeRespawnButton",targetPlayer) --fadeCamera(thePlayer, true) --outputChatBox("Respawning...", thePlayer) if isTimer(changeDeathViewTimer) == true then killTimer(changeDeathViewTimer) end local x,y,z = getElementPosition(targetPlayer) local int = getElementInterior(targetPlayer) local dim = getElementDimension(targetPlayer) local skin = getElementModel(targetPlayer) local team = getPlayerTeam(targetPlayer) setPedHeadless(targetPlayer, false) setCameraInterior(targetPlayer, int) setCameraTarget(targetPlayer, targetPlayer) setElementData(targetPlayer, "dead", 0) spawnPlayer(targetPlayer, x, y, z, 0)--, team) --(team ~= "Los Santos Emergency Services") setElementModel(targetPlayer,skin) setPlayerTeam(targetPlayer, team) setElementInterior(targetPlayer, int) setElementDimension(targetPlayer, dim) triggerEvent("updateLocalGuns", targetPlayer) --local adminTitle = tostring(exports.global:getPlayerAdminTitle(thePlayer)) outputChatBox("The medic "..tostring(getPlayerName(thePlayer):gsub("_"," ")).." has been revived you", targetPlayer, 0, 255, 0) outputChatBox("You have revived "..tostring(getPlayerName(targetPlayer):gsub("_"," "))..".", thePlayer, 0, 255, 0) --if exports.global:hasItem(thePlayer, 34) then -- exports.global:takeItem(thePlayer, 34) -- outputChatBox("You have revived And Take From You 500$", thePlayer, 0, 255, 0) exports.global:sendMessageToAdmins("AdmCmd: "..getPlayerName(thePlayer).." mrevived "..tostring(getPlayerName(targetPlayer))..".") exports.logs:dbLog(thePlayer, 4, targetPlayer, "REVIVED from PK") else outputChatBox(tostring(getPlayerName(targetPlayer):gsub("_"," ")).." is not dead.", thePlayer, 255, 0, 0) end end end end end addCommandHandler("mrevive", revivePlayerFromPK, false, false) -- /mrevive system by sRT function adminHeal(thePlayer, commandName, targetPlayer) if getPlayerTeam( thePlayer ) == getTeamFromName( "Los Santos Fire Department" ) then -- faction name local health = 100 local targetPlayerName = getPlayerName(thePlayer):gsub("_", " ") if not (targetPlayer) then targetPlayer = thePlayer else targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) end if exports.global:hasMoney(thePlayer, 200) then -- treatment cost exports.global:takeMoney(thePlayer, 200) -- treatment cost outputChatBox("You have been revived and take from you 200$", targetPlayer, 0, 255, 0) -- output else outputChatBox("You dont have money", targetPlayer, 0, 255, 0) end if targetPlayer then setElementHealth(targetPlayer, tonumber(health)) -- outputChatBox("The Medic " .. targetPlayerName .. " Has Treat You , Now Your Health : " .. getAlivePlayers .. " Health.", thePlayer, 0, 255, 0) outputChatBox("The medic " .. targetPlayerName .. " has treat you , now your health is : " .. health .. " health.", thePlayer, 0, 255, 0) else triggerEvent("onPlayerHeal", targetPlayer, true) exports.logs:dbLog(thePlayer, 4, targetPlayer, "AHEAL "..health) end end end addCommandHandler("maheal", adminHeal, false, false) طيب هنا قبل الاستخراج من غير مشاكل .. و اشتغل الامر وسوا ريفايف .. بس ما سويت تحقق من الحساب ولا خصم الفلوس ..
  8. انت ما فهمت علي او انا ما فهمت عليك ... لي التوضيح بس .. الحين امر /maheal شغال كويس يتحقق من الفلوس الي مع الاعب + يخصمه من رصيده مشكلتي في الريفايف ما يتحقق وما يخصم شي ولا يطلع له رساله انه تم اسعافك
  9. --revive script by: sRT, Richard C' Lugovoi function revivePlayerFromPK(thePlayer, commandName, targetPlayer) --local theTeam = getPlayerTeam(thePlayer) --if (teamID==1 or teamID==2 or teamID==3 or teamID==47 or teamID==59) then -- if exports.global:hasItem(thePlayer, 70) then -- exports.global:takeItem(thePlayer, 70) -- outputChatBox("You have revived And Take From You 500$", thePlayer, 0, 255, 0) if getPlayerTeam( thePlayer ) == getTeamFromName( "Los Santos Fire Department" ) then if not (targetPlayer) then outputChatBox("SYNTAX: /" .. commandName .. " [Player Partial Name / ID]", thePlayer, 255, 194, 14) else local targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) if getElementData(targetPlayer, "dead") == 1 then -- if exports.global:hasMoney(targetPlayer, 500) then -- tratment cost exports.global:takeMoney(targetPlayer, 500) -- here what im tryin do charging the player $500 for the reviv else outputChatBox("you dont have eanugh money to be treated ", targetPlayer, 0, 255, 0) triggerClientEvent(targetPlayer,"es-system:closeRespawnButton",targetPlayer end if targetPlayer then --fadeCamera(thePlayer, true) --outputChatBox("Respawning...", thePlayer) if isTimer(changeDeathViewTimer) == true then killTimer(changeDeathViewTimer) end local x,y,z = getElementPosition(targetPlayer) local int = getElementInterior(targetPlayer) local dim = getElementDimension(targetPlayer) local skin = getElementModel(targetPlayer) local team = getPlayerTeam(targetPlayer) setPedHeadless(targetPlayer, false) setCameraInterior(targetPlayer, int) setCameraTarget(targetPlayer, targetPlayer) setElementData(targetPlayer, "dead", 0) spawnPlayer(targetPlayer, x, y, z, 0)--, team) --(team ~= "Los Santos Emergency Services") setElementModel(targetPlayer,skin) setPlayerTeam(targetPlayer, team) setElementInterior(targetPlayer, int) setElementDimension(targetPlayer, dim) triggerEvent("updateLocalGuns", targetPlayer) --local adminTitle = tostring(exports.global:getPlayerAdminTitle(thePlayer)) outputChatBox("Medic"..tostring(getPlayerName(thePlayer):gsub("_"," ")).." has revived you", targetPlayer, 0, 255, 0) outputChatBox("you successfully revied !! "..tostring(getPlayerName(targetPlayer):gsub("_"," "))..".", thePlayer, 0, 255, 0) outputChatBox("You have been revived And charged 500$", thePlayer, 0, 255, 0) -- here what im tryin output to the treated player exports.global:sendMessageToAdmins("AdmCmd: "..getPlayerName(thePlayer).." mrevived "..tostring(getPlayerName(targetPlayer))..".") exports.logs:dbLog(thePlayer, 4, targetPlayer, "REVIVED from PK") else outputChatBox(tostring(getPlayerName(targetPlayer):gsub("_"," ")).." is not dead.", thePlayer, 255, 0, 0) end end end end end addCommandHandler("mrevive", revivePlayerFromPK, false, false) -- /mrevive system by sRT function adminHeal(thePlayer, commandName, targetPlayer) if getPlayerTeam( thePlayer ) == getTeamFromName( "Los Santos Fire Department" ) then -- faction name local health = 100 local targetPlayerName = getPlayerName(thePlayer):gsub("_", " ") if not (targetPlayer) then targetPlayer = thePlayer else targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) end if exports.global:hasMoney(targetPlayer, 200) then -- treatment cost exports.global:takeMoney(targetPlayer, 200) -- ^^^^^^^^^^^^ outputChatBox("You have been treated and charged 200$", targetPlayer, 0, 255, 0) -- output the cost else outputChatBox("You dont have eanugh money", targetPlayer, 0, 255, 0) end if targetPlayer then setElementHealth(targetPlayer, tonumber(health)) -- outputChatBox("The Medic " .. thePlayerName .. " Has Treat You , Now Your Health : " .. getAlivePlayers .. " Health.", targetPlayer, 0, 255, 0) else triggerEvent("onPlayerHeal", targetPlayer, true) exports.logs:dbLog(thePlayer, 4, targetPlayer, "AHEAL "..health) end end end addCommandHandler("maheal", adminHeal, false, false) Hello guys , im stuck here and i really need help . what i, tryin do is making a Medic revive . evrey thing in this script works fine untill i add the if exports.global:hasMoney(targetPlayer, 500) then -- tratment cost exports.global:takeMoney(targetPlayer, 500) -- here what im tryin do charging the player $500 for the reviv else outputChatBox("you dont have eanugh money to be treated ", targetPlayer, 0, 255, 0) ===== here is the code working with no problems at all except it wont charge target player for the revive . --revive script by: function revivePlayerFromPK(thePlayer, commandName, targetPlayer) --local theTeam = getPlayerTeam(thePlayer) --if (teamID==1 or teamID==2 or teamID==3 or teamID==47 or teamID==59) then -- if exports.global:hasItem(thePlayer, 70) then -- exports.global:takeItem(thePlayer, 70) -- outputChatBox("You have revived And Take From You 500$", thePlayer, 0, 255, 0) if getPlayerTeam( thePlayer ) == getTeamFromName( "Los Santos Fire Department" ) then if not (targetPlayer) then outputChatBox("SYNTAX: /" .. commandName .. " [Player Partial Name / ID]", thePlayer, 255, 194, 14) else local targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) if targetPlayer then if getElementData(targetPlayer, "dead") == 1 then triggerClientEvent(targetPlayer,"es-system:closeRespawnButton",targetPlayer) --fadeCamera(thePlayer, true) --outputChatBox("Respawning...", thePlayer) if isTimer(changeDeathViewTimer) == true then killTimer(changeDeathViewTimer) end local x,y,z = getElementPosition(targetPlayer) local int = getElementInterior(targetPlayer) local dim = getElementDimension(targetPlayer) local skin = getElementModel(targetPlayer) local team = getPlayerTeam(targetPlayer) setPedHeadless(targetPlayer, false) setCameraInterior(targetPlayer, int) setCameraTarget(targetPlayer, targetPlayer) setElementData(targetPlayer, "dead", 0) spawnPlayer(targetPlayer, x, y, z, 0)--, team) --(team ~= "Los Santos Emergency Services") setElementModel(targetPlayer,skin) setPlayerTeam(targetPlayer, team) setElementInterior(targetPlayer, int) setElementDimension(targetPlayer, dim) triggerEvent("updateLocalGuns", targetPlayer) --local adminTitle = tostring(exports.global:getPlayerAdminTitle(thePlayer)) outputChatBox("The medic "..tostring(getPlayerName(thePlayer):gsub("_"," ")).." has been revived you", targetPlayer, 0, 255, 0) outputChatBox("You have revived "..tostring(getPlayerName(targetPlayer):gsub("_"," "))..".", thePlayer, 0, 255, 0) --if exports.global:hasItem(thePlayer, 34) then -- exports.global:takeItem(thePlayer, 34) -- outputChatBox("You have revived And Take From You 500$", thePlayer, 0, 255, 0) exports.global:sendMessageToAdmins("AdmCmd: "..getPlayerName(thePlayer).." mrevived "..tostring(getPlayerName(targetPlayer))..".") exports.logs:dbLog(thePlayer, 4, targetPlayer, "REVIVED from PK") else outputChatBox(tostring(getPlayerName(targetPlayer):gsub("_"," ")).." is not dead.", thePlayer, 255, 0, 0) end end end end end addCommandHandler("mrevive", revivePlayerFromPK, false, false) -- /mrevive system by sRT function adminHeal(thePlayer, commandName, targetPlayer) if getPlayerTeam( thePlayer ) == getTeamFromName( "Los Santos Fire Department" ) then -- faction name local health = 100 local targetPlayerName = getPlayerName(thePlayer):gsub("_", " ") if not (targetPlayer) then targetPlayer = thePlayer else targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) end if exports.global:hasMoney(thePlayer, 200) then -- treatment cost exports.global:takeMoney(thePlayer, 200) -- treatment cost outputChatBox("You have been revived and take from you 200$", targetPlayer, 0, 255, 0) -- output else outputChatBox("You dont have money", targetPlayer, 0, 255, 0) end if targetPlayer then setElementHealth(targetPlayer, tonumber(health)) -- outputChatBox("The Medic " .. targetPlayerName .. " Has Treat You , Now Your Health : " .. getAlivePlayers .. " Health.", thePlayer, 0, 255, 0) outputChatBox("The medic " .. targetPlayerName .. " has treat you , now your health is : " .. health .. " health.", thePlayer, 0, 255, 0) else triggerEvent("onPlayerHeal", targetPlayer, true) exports.logs:dbLog(thePlayer, 4, targetPlayer, "AHEAL "..health) end end end addCommandHandler("maheal", adminHeal, false, false) === im tryin charge the target player $500 for the revive and output the charge . it wont let me do it . idont know how should i do this can you guys please help me i dont have that much of experience
  10. يالربع قولو لا اله الى الله ... المشرفين بينتبهون لي الموضوعين وبيحذفون واحد منها الي عنده معلومه لي يفيديني لا يقصر .. لاهنتمم والله كل ما جتني مشكله انزلها هنا ولا احد ساعدني وحلها كل مشاركاتي في MTA العربي مسحوب عليها بروح اجرب الانقليزي افضل ...
  11. --revive script by: sRT, Richard C' Lugovoi function revivePlayerFromPK(thePlayer, commandName, targetPlayer) --local theTeam = getPlayerTeam(thePlayer) --if (teamID==1 or teamID==2 or teamID==3 or teamID==47 or teamID==59) then -- if exports.global:hasItem(thePlayer, 70) then -- exports.global:takeItem(thePlayer, 70) -- outputChatBox("You have revived And Take From You 500$", thePlayer, 0, 255, 0) if getPlayerTeam( thePlayer ) == getTeamFromName( "وزارة صحة بون كونتري" ) then if not (targetPlayer) then outputChatBox("SYNTAX: /" .. commandName .. " [Player Partial Name / ID]", thePlayer, 255, 194, 14) else local targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) if getElementData(targetPlayer, "dead") == 1 then -- هاذي الي انا ظفت if exports.global:hasMoney(targetPlayer, 500) then -- سعرالمعالجة exports.global:takeMoney(targetPlayer, 500) -- سعر المعالجة else outputChatBox("لايوجد لديك المال الكافي لي علاجك", targetPlayer, 0, 255, 0) triggerClientEvent(targetPlayer,"es-system:closeRespawnButton",targetPlayer end if targetPlayer then --fadeCamera(thePlayer, true) --outputChatBox("Respawning...", thePlayer) if isTimer(changeDeathViewTimer) == true then killTimer(changeDeathViewTimer) end local x,y,z = getElementPosition(targetPlayer) local int = getElementInterior(targetPlayer) local dim = getElementDimension(targetPlayer) local skin = getElementModel(targetPlayer) local team = getPlayerTeam(targetPlayer) setPedHeadless(targetPlayer, false) setCameraInterior(targetPlayer, int) setCameraTarget(targetPlayer, targetPlayer) setElementData(targetPlayer, "dead", 0) spawnPlayer(targetPlayer, x, y, z, 0)--, team) --(team ~= "Los Santos Emergency Services") setElementModel(targetPlayer,skin) setPlayerTeam(targetPlayer, team) setElementInterior(targetPlayer, int) setElementDimension(targetPlayer, dim) triggerEvent("updateLocalGuns", targetPlayer) --local adminTitle = tostring(exports.global:getPlayerAdminTitle(thePlayer)) outputChatBox("المسعف"..tostring(getPlayerName(thePlayer):gsub("_"," ")).." قد قام بمعالجتك بنجاح", targetPlayer, 0, 255, 0) outputChatBox("لقد اسعفت المصاب بنجاح !! "..tostring(getPlayerName(targetPlayer):gsub("_"," "))..".", thePlayer, 0, 255, 0) -- if exports.global:hasMoney(targetPlayer, 200) then -- سعرالمعالجة -- exports.global:takeMoney(targetPlayer, 200) -- سعر المعالجة --outputChatBox("لقد تمت معالجتك واخذ مبلغ $500", targetPlayer, 0, 255, 0) exports.global:sendMessageToAdmins("AdmCmd: "..getPlayerName(thePlayer).." mrevived "..tostring(getPlayerName(targetPlayer))..".") exports.logs:dbLog(thePlayer, 4, targetPlayer, "REVIVED from PK") else outputChatBox(tostring(getPlayerName(targetPlayer):gsub("_"," ")).." ليس ميت.", thePlayer, 255, 0, 0) end end end end end addCommandHandler("mrevive", revivePlayerFromPK, false, false) -- /mrevive system by sRT function adminHeal(thePlayer, commandName, targetPlayer) if getPlayerTeam( thePlayer ) == getTeamFromName( "وزارة صحة بون كونتري" ) then -- اسم الفاكشن local health = 100 local targetPlayerName = getPlayerName(thePlayer):gsub("_", " ") if not (targetPlayer) then targetPlayer = thePlayer else targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) end if exports.global:hasMoney(targetPlayer, 200) then -- سعرالمعالجة exports.global:takeMoney(targetPlayer, 200) -- سعر المعالجة outputChatBox("لقد تمت معالجتك من قبل المسعف واخذ مبلغ $200", targetPlayer, 0, 255, 0) -- رسالةتم اذ منك 200 ومعالجتك else outputChatBox("لايوجد لديك المال الكافي لي علاجك", targetPlayer, 0, 255, 0) end if targetPlayer then setElementHealth(targetPlayer, tonumber(health)) -- outputChatBox("The Medic " .. targetPlayerName .. " Has Treat You , Now Your Health : " .. getAlivePlayers .. " Health.", thePlayer, 0, 255, 0) outputChatBox("المسعف " .. thePlayer .. " قام بمعالجتك طاقتك الان : " .. health .. " الطاقة.", targetPlayer, 0, 255, 0) else triggerEvent("onPlayerHeal", targetPlayer, true) exports.logs:dbLog(thePlayer, 4, targetPlayer, "AHEAL "..health) end end end addCommandHandler("maheal", adminHeal, false, false) -- ألتكملةالحلقة القادمة sRT, Richard C' Lugovoi السلام عليكم ورحمة الله وبركاته .. يعطيكم العافيه جميعاَ بعا الكود هذا حصلته في النت .. وكان فيه شوي اخطا وعدلت عليه واشتغل السكربت معاي بدون مشاكل من المشاكل الي كانت فيه ان المسعف اذا عالج شخص بي استخدام الامر ) /maheal تخصم الفلوس من حساب المسعف بدالَ من حساب المصاب وبرضو اذا استخدم الامر /mrevive ما يتحقق من وجود المال في مع المصاب .. + مايخصم شي منه يعني يسويله ريفايف مجاني .. حاولت اني اظيف الي انا حددت فوق والي هي exports.global:hasMoney + takemoney بي استخدام if + than + else + end ومو راضي يشتغل الكود .. عجز اعرف وين المشلكة بي الظبط هل انا استخدمت القواعد خطا ؟ او انه لين الححين متعلق فوق مو قادر يقرا الكود ويكمل لين امر الريفايف .. ياليت تساعدوني انا خبرتي قليله في هذا المجال ياليت تفيدوني في خبراتكم .. وشكراَ لكم
  12. السلام عليكم السيرفر الي عندي سيرفر حياة واقعيه وعندي مشكله في البنك ما تقدر تستخرج بطاقة صراف ياليت الي عنده ملف البنك بدون مشاكل يرسله لي لاهنتتتمم ..
  13. مايطلع لي اي شي ... كان الامر مو موجود مع العلم ان الامر كان شغال بدون اي مشاكل ...
  14. ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟