Jump to content

ممكن كود


LOAM

Recommended Posts

شباب انا اريد كود

مثلا انا عملت هكر مكينه المصرف

عوز اول ما اعمل هاك واخذ الفلوس يجيلى محضر  او محضرين الى انا احطه انا لو شرطى شافنى يمسكنى

شكرا

Link to comment
13 minutes ago, LOAM said:

شباب انا اريد كود

مثلا انا عملت هكر مكينه المصرف

عوز اول ما اعمل هاك واخذ الفلوس يجيلى محضر  او محضرين الى انا احطه انا لو شرطى شافنى يمسكنى

شكرا

setPlayerWantedLevel

--ex.

local Marker = createMarker (...)

function KillerProject ( DeveloperAhmed )
	if source == Marker then
		if (getElementType (DeveloperAhmed) == "player") and (DeveloperAhmed == localPlayer)  then
			setPlayerWantedLevel ( DeveloperAhmed, 6 )
		end
	end
end

addEventHandler ( "onMarkerHit", root, KillerProject )

 

Edited by Killer Project
ex...
  • Like 1
Link to comment
6 hours ago, Killer Project said:

اطلع فوق على ردي ^_^

شكرا اخى انا الان بجرب :D

#Edit:

5 hours ago, #_iMr.[E]coo said:

هات كود المصرف

@Killer Project كودك خطا

---------server
-- useful function  bool isPlayerInTeam ( player thePlayer [, team/string theTeam = nil ] )
function isPlayerInTeam(player, team)
    assert(isElement(player) and getElementType(player) == "player", "Bad argument 1 @ isPlayerInTeam [player expected, got " .. tostring(player) .. "]")
    assert((not team) or type(team) == "string" or (isElement(team) and getElementType(team) == "team"), "Bad argument 2 @ isPlayerInTeam [nil/string/team expected, got " .. tostring(team) .. "]")
    return getPlayerTeam(player) == (type(team) == "Criminal" and getTeamFromName(team) or (type(team) == "userdata" and team or (getPlayerTeam(player) or true)))
end


local Team = "Criminal"
local Money = 5000

addEvent("givePlayerMoney",true)
addEventHandler ("givePlayerMoney",root,
  function ()
  	  if isPlayerInTeam(source,"Criminal") then 

  	    givePlayerMoney ( source , Money )
		
      	outputChatBox("You get money 5000k from..ATM../..Hack",source,550,666,0,true)
     else
      	outputChatBox("you can't hack...Criminal Job only can Hack",source,666,0,0,true)
   	 end
  end
  )
  
  addEvent ( "onPlayerSendMoney", true)
addEventHandler ( "onPlayerSendMoney", root,
	function ( plr , money )
		local plr = getPlayerFromName ( plr )
        local getM = getPlayerMoney ( source )
        if getM == tonumber(money) then
        takePlayerMoney ( source , tonumber(money) )
        givePlayerMoney ( plr , tonumber(money) )
      end
    end
  )

 

Link to comment
7 minutes ago, LOAM said:

تجربتك


جرب

 

---------server
-- useful function  bool isPlayerInTeam ( player thePlayer [, team/string theTeam = nil ] )
function isPlayerInTeam(player, team)
    assert(isElement(player) and getElementType(player) == "player", "Bad argument 1 @ isPlayerInTeam [player expected, got " .. tostring(player) .. "]")
    assert((not team) or type(team) == "string" or (isElement(team) and getElementType(team) == "team"), "Bad argument 2 @ isPlayerInTeam [nil/string/team expected, got " .. tostring(team) .. "]")
    return getPlayerTeam(player) == (type(team) == "Criminal" and getTeamFromName(team) or (type(team) == "userdata" and team or (getPlayerTeam(player) or true)))
end


local Team = "Criminal"
local Money = 5000

addEvent("givePlayerMoney",true)
addEventHandler ("givePlayerMoney",root,
  function ()
  	  if isPlayerInTeam(client,"Criminal") then 

  	    givePlayerMoney ( client , Money )
		
		setPlayerWantedLevel ( client, 6 ) -- عدد النجوم 6
		
      	outputChatBox("You get money 5k from..ATM../..Hack",client,550,666,0,true)
     else
      	outputChatBox("you can't hack...Criminal Job only can Hack",client,666,0,0,true)
   	 end
  end
  )
  
  addEvent ( "onPlayerSendMoney", true)
addEventHandler ( "onPlayerSendMoney", root,
	function ( plr , money )
		local plr = getPlayerFromName ( plr )
        local getM = getPlayerMoney ( client )
        if getM == tonumber(money) then
        takePlayerMoney ( client , tonumber(money) )
        givePlayerMoney ( plr , tonumber(money) )
      end
    end
  )

 

  • Like 1
Link to comment
4 hours ago, Killer Project said:


جرب

 


---------server
-- useful function  bool isPlayerInTeam ( player thePlayer [, team/string theTeam = nil ] )
function isPlayerInTeam(player, team)
    assert(isElement(player) and getElementType(player) == "player", "Bad argument 1 @ isPlayerInTeam [player expected, got " .. tostring(player) .. "]")
    assert((not team) or type(team) == "string" or (isElement(team) and getElementType(team) == "team"), "Bad argument 2 @ isPlayerInTeam [nil/string/team expected, got " .. tostring(team) .. "]")
    return getPlayerTeam(player) == (type(team) == "Criminal" and getTeamFromName(team) or (type(team) == "userdata" and team or (getPlayerTeam(player) or true)))
end


local Team = "Criminal"
local Money = 5000

addEvent("givePlayerMoney",true)
addEventHandler ("givePlayerMoney",root,
  function ()
  	  if isPlayerInTeam(client,"Criminal") then 

  	    givePlayerMoney ( client , Money )
		
		setPlayerWantedLevel ( client, 6 ) -- عدد النجوم 6
		
      	outputChatBox("You get money 5k from..ATM../..Hack",client,550,666,0,true)
     else
      	outputChatBox("you can't hack...Criminal Job only can Hack",client,666,0,0,true)
   	 end
  end
  )
  
  addEvent ( "onPlayerSendMoney", true)
addEventHandler ( "onPlayerSendMoney", root,
	function ( plr , money )
		local plr = getPlayerFromName ( plr )
        local getM = getPlayerMoney ( client )
        if getM == tonumber(money) then
        takePlayerMoney ( client , tonumber(money) )
        givePlayerMoney ( plr , tonumber(money) )
      end
    end
  )

 

 

1 hour ago, #_iMr.[E]coo said:

عارف بس هو طلب نجمة او نجمتين

شكرا على المساعده شباب

  • Like 1
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...