Jump to content

المرجوا مساعدة ب سكريبت بسيط


Recommended Posts

function createRob()
    Marker = createMarker ( 252.3,-54.6,0.9, "cylinder", 1, 255, 255, 0, 170 )
    setElementCollisionsEnabled( Marker, false )
    bl = createBlipAttachedTo(Marker,55)
    outputChatBox( "", root, 0, 255, 0 )
end
addEventHandler("onResourceStart", resourceRoot,createRob)
 
addEventHandler("onMarkerLeave",root,
function ( player )
    if ( source ~= Marker ) then
        return
    end
    if ( isPedInVehicle( player ) ) then
        return
    end
        destroyElement( Marker )
        destroyElement( bl )
        randomMoney = math.random ( 5000, 20000 )
        givePlayerMoney(player,randomMoney)
        setPlayerWantedLevel ( player, randomWanted )
        robPlayer = getPlayerName(player)
		outputChatBox("",root,255,255,255,true)
        outputChatBox("" .. robPlayer .. "" .. tostring(randomMoney) .."" .. tostring(randomWanted) .. " "LocalPlayer,root,0,255,0,true)
        setTimer( createRob, 600000, 1 )
	end
)

 

 

السلام وعليكم 

(FREEZE) ابغا مساعدة بسيطة بهاذا سكريبت بسيط انا ابغا اخلي مني تروح للماركر لسرقة محل ابغاه لراح يسرق ياخد فريزر 

ويمر شريط لين او يطلع له رسالة في شاشة تقول

' Please Wait 8 Min ' المرجو انتضار 8 دقائق '

ومني يكون واخد فريزر وطالعه كلمة ف شاشة يكون مسوي حركة رفع سلاح كأنه يهدد صاحب محل

المرجوا لي يقدر يساعدني يفيدني وشكرا

Link to comment
21 hours ago, Never014 said:

function createRob()
    Marker = createMarker ( 252.3,-54.6,0.9, "cylinder", 1, 255, 255, 0, 170 )
    setElementCollisionsEnabled( Marker, false )
    bl = createBlipAttachedTo(Marker,55)
    outputChatBox( "", root, 0, 255, 0 )
end
addEventHandler("onResourceStart", resourceRoot,createRob)
 
addEventHandler("onMarkerLeave",root,
function ( player )
    if ( source ~= Marker ) then
        return
    end
    if ( isPedInVehicle( player ) ) then
        return
    end
        destroyElement( Marker )
        destroyElement( bl )
        randomMoney = math.random ( 5000, 20000 )
        givePlayerMoney(player,randomMoney)
        setPlayerWantedLevel ( player, randomWanted )
        robPlayer = getPlayerName(player)
		outputChatBox("",root,255,255,255,true)
        outputChatBox("" .. robPlayer .. "" .. tostring(randomMoney) .."" .. tostring(randomWanted) .. " "LocalPlayer,root,0,255,0,true)
        setTimer( createRob, 600000, 1 )
	end
)

 

 

السلام وعليكم 

(FREEZE) ابغا مساعدة بسيطة بهاذا سكريبت بسيط انا ابغا اخلي مني تروح للماركر لسرقة محل ابغاه لراح يسرق ياخد فريزر 

ويمر شريط لين او يطلع له رسالة في شاشة تقول

' Please Wait 8 Min ' المرجو انتضار 8 دقائق '

ومني يكون واخد فريزر وطالعه كلمة ف شاشة يكون مسوي حركة رفع سلاح كأنه يهدد صاحب محل

المرجوا لي يقدر يساعدني يفيدني وشكرا

تفضل

    function createRob()
        Marker = createMarker ( 252.3,-54.6,0.9, "cylinder", 1, 255, 255, 0, 170 )
        setElementCollisionsEnabled( Marker, false )
        bl = createBlipAttachedTo(Marker,55)
        outputChatBox( "", root, 0, 255, 0 )
    end
    addEventHandler("onResourceStart", resourceRoot,createRob)
     
Control = {
	{"aim_weapon"},
	--{"fire"}, لو م تبي يطلق
	{"next_weapon"},
	{"previous_weapon"},
	{"forwards"},
	{"backwards"},
	{"left"},
	{"right"},
	{"zoom_in"},
	{"zoom_out"},
	{"sprint"},
	{"walk"},
	{"enter_exit"},
	}
	 
    addEventHandler("onMarkerHit",root,
    function ( player )
        if ( source ~= Marker ) then
            return
        end
        if ( isPedInVehicle( player ) ) then
            return
        end
			if ( getElementType(player) == "player" ) then
			giveWeapon( player, 25, 2)
			setPlayerWeaponSlot(player,3)
			setElementFrozen( player, true )
			outputChatBox("' Please Wait 8 Min ' الرجآء انتضار 8 دقائق '",root,255,0,0,true)
			for k,v in ipairs ( Control ) do
			toggleControl( player, v[1],false)
			end
			setControlState( player, "aim_weapon", true)
			destroyElement( Marker )
			setTimer(function ()
			takeWeaponAmmo( player, 25, 2)
			setElementFrozen( player, false )
			setControlState( player, "aim_weapon", false)
			for k,v in ipairs ( Control ) do
			toggleControl( player, v[1],true)
			end
            randomMoney = math.random ( 5000, 20000 )
			randomWanted = math.random( 1, 5 )
            givePlayerMoney(player,randomMoney)
            setPlayerWantedLevel ( player, randomWanted )
            robPlayer = getPlayerName(player)
    		outputChatBox("",root,255,255,255,true)
            outputChatBox("" .. robPlayer .. " is got $" .. tostring(randomMoney) .." and he wanted :" .. tostring(randomWanted) .. " ",root,0,255,0,true)
            setTimer( createRob, 600000, 1 )
    	end,60000*8,1)
	end
	end
 )


 

Link to comment
9 minutes ago, *RayaN-Alharbi. said:
  • Control = {
  • {"aim_weapon"},
  • --{"fire"}, لو م تبي يطلق
  • {"next_weapon"},
  • {"previous_weapon"},
  • {"forwards"},
  • {"backwards"},
  • {"left"},
  • {"right"},
  • {"zoom_in"},
  • {"zoom_out"},
  • {"sprint"},
  • {"walk"},
  • {"enter_exit"},
  • }

شدخل ذا الجدول؟

م في فنكشن له

  • Sad 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...