Jump to content

!#NssoR_)

Retired Staff
  • Posts

    1,474
  • Joined

  • Last visited

  • Days Won

    23

Everything posted by !#NssoR_)

  1. Client: addEventHandler("onClientGUIClick",guiRoot, function () if source == GUIEditor.button[6] then triggerServerEvent('SendMSG',localPlayer) end end) Server: addEvent('SendMSG',true) addEventHandler('SendMSG',root, function () takePlayerMoney ( source, 1000 ) exports["guimessages"]:outputServer(source,"#ff0000*#3399FF[Player Panel]: #ff0000 تــم الاتصال بالاسعاف!!", 255, 0, 102) end)
  2. اعتقد ان ردي يكفي + انت ماسويت شي نسخت كودي وغيرت مكان الاكواد يعني مسوي شي
  3. addEventHandler( "onPlayerChat", root, function ( ) if ( isGuestAccount ( getPlayerAccount ( source ) ) ) then outputChatBox ( "Please Login First", source, 255, 0, 0, true ); cancelEvent ( ); end end );
  4. VIPCar = { } function VIPCARs ( ) if ( isPedInVehicle ( source ) ) then exports["guimessages"]:outputServer(source,"#00ff00[VIP System] :#ffff00 Exit your car first ! ",250,128,114,true) cancelEvent ( ) end x,y,z = getElementPosition ( source ) if ( isElement ( VIPCar [ source ] ) ) then destroyElement ( VIPCar [ source ] ) end VIPCar [ source ] = createVehicle ( 411, x, y, z ) warpPlayerIntoVehicle ( source, VIPCar [ source ] ) local text = "VIP Car" exports["guimessages"]:outputServer(source,"#00ff00[VIP System] :#ffff00 You Has Got VIP Car !",80,120,200,true) setVehiclePlateText ( VIPCar [ source ], text ) setVehicleDamageProof ( VIPCar [ source ], true ) end addEvent( "VC", true ) addEventHandler( "VC", getRootElement(), VIPCARs ) addEventHandler ( "onVehicleStartEnter", root, function ( thePlayer ) if ( VIPCar [ thePlayer ] and VIPCar [ thePlayer ] == source ) then if not ( aclGroupListACL(aclGetGroup("VIP1")) ) then outputChatBox ( "القروب موموجود في الاسل !", thePlayer, 255, 255, 0, true ) cancelEvent ( ) end local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if not ( isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "VIP1" ) ) ) then cancelEvent ( ) outputChatBox ( "You Must Be In VIP Group ", thePlayer, 255, 255, 0, true ) else outputChatBox ( "Welcome To Your Vehicle ", thePlayer, 255, 255, 0, true ) end end end)
  5. VIPCar = {} function VIPCARs ( ) if isPedInVehicle ( source ) then exports["guimessages"]:outputServer(source,"#00ff00[VIP System] :#ffff00 Exit your car first ! ",250,128,114,true) cancelEvent () else x,y,z = getElementPosition ( source ) if isElement(VIPCar[source]) then destroyElement(VIPCar[source]) end VIPCar[source] = createVehicle ( 411, x, y, z ) warpPlayerIntoVehicle ( source, VIPCar[source] ) local text = "VIP Car" exports["guimessages"]:outputServer(source,"#00ff00[VIP System] :#ffff00 You Has Got VIP Car !",80,120,200,true) setVehiclePlateText ( VIPCar[source], text ) setVehicleDamageProof ( VIPCar[source], true ) end end addEvent( "CarVIP", true ) addEventHandler( "CarVIP", getRootElement(), VIPCARs )
  6. انت مو حاط غير ملف السيرفر يعني اي ملف بيكون ؟ اكيد السيرفر
  7. تقدر تختصر بهذا الشكل . addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,'ابي سلاب') or string.find(msg,'صكوني سلاب') or string.find(msg,'عطوني سلاب') then killPed (source) outputChatBox("* [KFO]=|> تم إعطائك سلآب بنجاح <|=[KFO]",source,255,0,0,true); end end )
  8. Amount = { "100", "200", "300", "400", "500", "600", "700", "800", "900", "1000" } function MarkerHit( hitElement, matchingDimension ) givePlayerMoney ( hitElement, Amount[math.random(#Amount)] ) end addEventHandler( "onMarkerHit", myMarker, MarkerHit )
  9. setElementDimension -- يحط لاعبك في عالم وهمي setElementPosition -- ينقلك لأي مكان في اللعبة
  10. addEventHandler ( "onClientGUIClick", guiRoot, function ( ) if ( source == login ) then local user = guiGetText(user) local pass = guiGetText(pass) local user1 = guiGetText(user1) local pass1 = guiGetText(pass1) if user ~= "" and pass ~= "" then if guiCheckBoxGetSelected(remember) then triggerServerEvent("onRequestLogin",localPlayer,user,pass) else triggerServerEvent("onRequestLogin",localPlayer,user,pass) end else outputChatBox("* You Must Write Username Or Password",255,0,0) end elseif ( source == reg ) then local user = guiGetText(user) local pass = guiGetText(pass) local user1 = guiGetText(user1) local pass1 = guiGetText(pass1) if user1 ~= "" and pass1 ~= "" then triggerServerEvent("onRequestRegister",localPlayer,user1,pass1) else outputChatBox("* You Must Write Username Or Password",255,0,0) end elseif ( getElementType(source) == "gui-checkbox" ) then if not ( guiCheckBoxGetSelected(source) ) then Music = playSound ("SoundName.mp3") outputChatBox ( "Sound Played !", 255, 255, 0, true ) else stopSound ( Music ) outputChatBox ( "Sound Stopped !", 255, 255, 0, true ) end end end)
  11. addCommandHandler('GIFT', function ( player ,_,amount) givePlayerMoney ( player , amount ) end) addCommandHandler ( "giveall", function (player,_,amount) if not ( getPlayerAccount(player) ) then return exports.killmessages:outputMessage( "* #FFFFFF[#CC0000 Server.Owner #FFFFFF] يجب تسجيل الدخول" ,player, 255,0,0) end if (isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("Console"))) then exports.killmessages:outputMessage( "* #FFFFFF[#CC0000 Server.Owner #FFFFFF] [ "..getPlayerName(player).." #FFFFFF] #00FFFF( #00FF00[ GIFT ]بدأ توزيع جديد لإستلام التوزيع اكتب في اف8 #00FFFF) ["..amount.."]" ,root, 255,0,0) for i,v in ipairs ( getAccounts() ) do setAccountData( v , "r8" , false ) end else exports.killmessages:outputMessage( "* #FFFFFF[#CC0000 Server.Owner #FFFFFF] انت لست ادمن" ,player, 255,0,0) end end )
  12. سطر 7 بالسيرفر خليه كذا setPedArmor ( source,100)
  13. حياك الله بالخدمة ..#
  14. https://wiki.multitheftauto.com/wiki/IsMouseInPosition
  15. اذا تبي تخليه ارقام زي كذا 442 شوف اخر شي بالكود arabic = guiCreateButton(621, 372, 125, 125, "Ar",true,wnd) true كلمة وحط الارقام false غيرها الي
  16. !#NssoR_)

    ??

    لوول مانتبهت لها ,Thanks bro ><
  17. عندك من سطر 13 الي 20 لازم تغيره الي addEvent("dxText:Client", true); addEventHandler("dxText:Client", root, function (msg) text = ''..msg..'' addEventHandler('onClientRender',root,Render) setTimer(function ( ) removeEventHandler('onClientRender',root,Render) text = '' end,5000,1) end);
  18. setCloudsEnabled ( false ) function loadmkay () setTimer(function () infernustxd = engineLoadTXD("infernus.txd") engineImportTXD(infernustxd, 411) infernusdff = engineLoadDFF("infernus.dff", 411) engineReplaceModel(infernusdff, 411) end, 5 * 1000,1) end addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), loadmkay )
  19. !#NssoR_)

    ??

    function ( ) PlayerLevelUpSound() setPedAnimation(source,"DANCING","dnce_m_a") setTimer(setPedAnimation,30000,1,source,false) addEventHandler("onClientRender",root,DrawLevelUp) setTimer(function() removeEventHandler("onClientRender",root,DrawLevelUp) end, 30000, 1) end function PlayerLevelUpSound() if not isElement(sound) then local sound = playSound("levelup.mp3") setSoundVolume(sound, 1) end end
  20. في هالحاله مالك الا التايمر setTimer(function () for _, Players in pairs ( getElementsByType 'player' ) do local team = getPlayerTeam(Players) if ( team ) then if getTeamName(team) == 'Police' then giveWeapon(Players,3,1) else takeWeapon(Players,3) end end end end,15 * 1000,0)
×
×
  • Create New...