كلنت
GUIEditor = {
button = {},
window = {},
label = {},
memo = {}
}
addEventHandler("onClientResourceStart", resourceRoot,function()
GUIEditor.window[1] = guiCreateWindow(409, 184, 284, 402, "[ SystemKidnapping ]By MemoPrince+Mr.SAAD", false)
guiSetVisible(GUIEditor.window[1],false)
guiWindowSetMovable(GUIEditor.window[1], false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[1], 0.69)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0F4EEF")
GUIEditor.button[1] = guiCreateButton(10, 250, 290, 101, "اخذ الوظيفة = get", false,GUIEditor.window[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF060CF5")
GUIEditor.label[1] = guiCreateLabel(10, 370, 276, 25, "Created By: Sonik", false,GUIEditor.window[1])
guiLabelSetColor(GUIEditor.label[1], 8, 250, 2)
GUIEditor.memo[1] = guiCreateMemo(10, 50, 270, 190, "وظيفة الخطف: ~>\nعبارة عن ان تضغط زر \" اخذ الوظيفة \" سوف \nيتم ادخلك تيم المجرمين الذين يستطعون\nخطف اي الاعب فقط عليك بقتل اي لاعب وسوفو\nوسوف تربح 1500$ من المال\n----------------------------------------------------------\nفريق العمل :\nSonik + MemoPrince + Mr.SAAD + DarkGhost", false,GUIEditor.window[1])
end
)
local marker = createMarker(814.3, -1105.9, 25.7,'cylinder',2, 0,255, 0, 255)
addEventHandler('onClientMarkerHit', marker,function(hitPlayer)
if ( hitPlayer == localPlayer ) then
guiSetVisible(GUIEditor.window[1], true)
showCursor(true)
end
end
)
addEventHandler ('onClientGUIClick', root,function ()
if ( source == GUIEditor.button[1] ) then
guiSetVisible(GUIEditor.window[1],false) showCursor(false)
triggerServerEvent ( 'SetTeam', localPlayer)
end
end
)
سيرفر
createTeam('Kidnapping',255,0,0)
local timer = {}
local timerS = {}
addEventHandler( 'onPlayerWasted',root,function(attacker)
if ( attacker ) and ( attacker ~= source ) and ( getElementType(attacker) == 'player' ) then
if ( getPlayerTeam(attacker) ) and ( getTeamName(getPlayerTeam(attacker)) == 'Kidnapping' ) then
createBlipAttachedTo(attacker,33)
outputChatBox('1000 $ لقد حصلت على',attacker,255,255,0,true) givePlayerMoney(attacker,1000)
if not timer[source] or not timerS[source] then
timer[source] = setTimer(function()
spawnPlayer(source, 812.29241943359,-1100.7707519531,25.786060333252, 0,math.random (0,288))
setElementFrozen(source,true)
outputChatBox('بخطفك [ '..getPlayerName(attacker).. ' ] قام اللاعب',source,255,255,0,true)
end,2000,1,source)
timerS[source] = setTimer(function() setElementFrozen(source,false) setElementPosition(source,896.5, -1114.9, 24.2) outputChatBox('انت الآن حر',source)
end,300000,1,source)
end
end
end
end
)
addEvent( 'SetTeam', true )
addEventHandler( 'SetTeam', root,function()
setPlayerTeam ( source, getTeamFromName('Kidnapping' ))
end
)