-
Posts
1,363 -
Joined
-
Last visited
Everything posted by Max+
-
انا ؟ اذا انا ياليت تحط التصحيح عشان نشوف ^
-
ولا وحده كلهم غلط " هو قال عند موت الاعب " ماقال اذبح الاعب .. 'onPlayerWasted' spawnPlayer اهــآ لا تنســآ المنت داتا عشان يجيب المكان الي اختـآرهـ X addEventHandler ( 'onPlayerWasted', root, function ( player ) local x, y, z = getElementPosition ( player ) setTimer ( spawnPlayer, 1000, 1, player, x, y, z ) setCameraTarget ( player, player) end )
-
Now , it's Fixed it take me half hour to Figure It Out Copy My Post Again ,
-
you need to make a code if you killed someone add + 1 kills by setElementData ( killer, 'Kills', +1 )
-
ولا وحده كلهم غلط " هو قال عند موت الاعب " ماقال اذبح الاعب .. 'onPlayerWasted' spawnPlayer
-
--ClientSide GUIEditor = { gridlist = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(347, 48, 473, 581, "Stats", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(280, 26, 183, 545, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Players", 0.9) GUIEditor.label[1] = guiCreateLabel(11, 38, 259, 30, "NickName : \"\"", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(11, 78, 259, 30, "Team : \"\"", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(11, 118, 259, 30, "Ping : \"\"", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(11, 158, 259, 30, "Kills : \"\"", false, GUIEditor.window[1]) GUIEditor.label[5] = guiCreateLabel(10, 198, 259, 30, "Deaths : \"\"", false, GUIEditor.window[1]) GUIEditor.label[6] = guiCreateLabel(10, 238, 259, 30, "K/D Ratio : \"\"", false, GUIEditor.window[1]) GUIEditor.label[7] = guiCreateLabel(10, 278, 259, 30, "Money : \"\"", false, GUIEditor.window[1]) end ) function list() guiGridListClear(GUIEditor.gridlist[1]) if (guiGridListClear) then for id, players in ipairs (getElementsByType("player")) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, (getPlayerName(players)), false, false) guiGridListSetItemColor ( GUIEditor.gridlist[1], row, 1, 255, 255, 0, 255 ) end end end addEventHandler("onClientPlayerJoin", getRootElement(), list) addEventHandler("onClientPlayerQuit", getRootElement(), list) addEventHandler("onClientPlayerChangeNick", getRootElement(), list) addEventHandler("onClientResourceStart", getRootElement(), list) function PanelShow () getVisible = guiGetVisible (GUIEditor.window[1]) if (getVisible == true) then guiSetVisible (GUIEditor.window[1], false) showCursor (false) elseif (getVisible == false) then showCursor (true) guiSetVisible (GUIEditor.window[1], true) guiSetInputEnabled(false) end end bindKey("F5", "down", PanelShow) function setStats ( ) if ( source == GUIEditor.gridlist[1] ) then row, col = guiGridListGetSelectedItem ( source ) if ( row and col and row ~= -1 and col ~= -1 ) then local playername = guiGridListGetItemText ( source, row, col ) local thePlayer = getPlayerFromName ( playername ) if ( thePlayer ) then local tm1 = getPlayerTeam ( thePlayer ) local tm2 = getTeamName ( tm1 ) local ping = getPlayerPing ( thePlayer ) local money = getPlayerMoney ( thePlayer ) local gKillsClient = getElementData ( localPlayer,'Kills' ) or 'N/A' guiSetText ( GUIEditor.label[1], "Nickname: ".. playername ) guiSetText ( GUIEditor.label[2], "Team: ".. tm2 ) guiSetText ( GUIEditor.label[3], "Ping: ".. ping ) guiSetText ( GUIEditor.label[7], "Money: ".. money ) guiSetText ( GUIEditor.label[4], "Kills: "..gKillsClient ) end end end end
-
quizWindow = guiCreateWindow(207, 118, 406, 371, "", false) guiWindowSetSizable(quizWindow, false) guiSetVisible( quizWindow, false ) quizOne = guiCreateLabel(27, 35, 210, 24, "1. What is Deathmatching in Roleplay?", false, quizWindow) quizOneAnswerOne = guiCreateCheckBox(27, 57, 299, 24, "When you kill someone for fun.", false, false, quizWindow) quizOneAnswerTwo = guiCreateCheckBox(27, 81, 299, 21, "When you kill someone without a Roleplay reason.", false, false, quizWindow) guiCheckBoxSetSelected(quizOneAnswerTwo, true); quizOneAnswerThree = guiCreateCheckBox(27, 106, 299, 21, "When you kill someone and run away.", false, false, quizWindow) quizTwo = guiCreateLabel(27, 137, 237, 18, "2. What side do you drive your vehicle on?", false, quizWindow) quizTwoAnswerOne = guiCreateCheckBox(27, 161, 299, 24, "Right.", false, false, quizWindow) guiCheckBoxSetSelected(quizTwoAnswerOne, true); quizTwoAnswerTwo = guiCreateCheckBox(27, 185, 299, 24, "Left.", false, false, quizWindow) quizTwoAnswerThree = guiCreateCheckBox(27, 209, 299, 24, "Any side you want.", false, false, quizWindow) quizFour = guiCreateLabel(27, 239, 343, 17, "3. If you see someone breaking the rules what would you do?", false, quizWindow) quizFourAnswerOne = guiCreateCheckBox(27, 260, 299, 24, "Use F2/Report using the right information.", false, false, quizWindow) guiCheckBoxSetSelected(quizFourAnswerOne, true); quizFourAnswerTwo = guiCreateCheckBox(27, 290, 299, 24, "Walk past and take no action.", true, false, quizWindow) quizFourAnswerThree = guiCreateCheckBox(27, 318, 299, 24, "Spam an Admin's PM.", false, false, quizWindow) quizFinish = guiCreateButton(308, 335, 72, 26, "Finish", false, quizWindow) addCommandHandler("rpquiz", function ( ) guiSetVisible( quizWindow, true ) showCursor( true ) end ) addEventHandler("onClientGUIClick",resourceRoot, function ( ) if(guiCheckBoxGetSelected(quizOneAnswerTwo) == true and guiCheckBoxGetSelected(quizTwoAnswerOne) == true) and guiCheckBoxGetSelected(quizFourAnswerOne) == true then if ( source == quizFinish ) then guiSetVisible( quizWindow, false ) showCursor( false ) outputChatBox("You have successfully passed the test, now you may continue!", 0, 255, 0 ) end end end ) Edited @
-
Show me you'r final Code ,
-
I don't understand why are you using: isPlayerHudComponentVisible and setPlayerHudComponentVisible. Bingo : )
-
addEventHandler('onClientElementDataChange',root, function ( ) local gKillsClient = getElementData ( localPlayer,'Kills' ) or 'N/A' guiSetText ( yourLabel,'Total Kills : '..gKillsClient ) end ) Change yourLabel to the label name you got .
-
زعلان ليه زعلان على اخطائك الاملائية .
-
"onMarkerHit" --يوم يلمس الماركر getPedOccupiedVehicle --يتحقق انه الاعب داخل سيــآره getPlayerOccupiedVehicle -- تجيب سيــآرهـ الي يسوقها الاعب setElementFrozen --تجمد السياره getPlayerOccupiedVehicle This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. Please use getPedOccupiedVehicle instead.
-
مانا عامل كدا ايه الجديد طيب وش رايك تروح تجربه ؟
-
You'r welcome ,
-
<acl> <group name="Everyone"> <acl name="Default"></acl> <object name="user.*"></object> <object name="resource.*"></object> </group> <group name="Moderator"> <acl name="Moderator"></acl> <object name="resource.mapcycler"></object> <object name="resource.mapmanager"></object> <object name="resource.resourcemanager"></object> <object name="resource.votemanager"></object> </group> <group name="SuperModerator"> <acl name="Moderator"></acl> <acl name="SuperModerator"></acl> </group> <group name="Admin"> <acl name="Moderator"></acl> <acl name="SuperModerator"></acl> <acl name="Admin"></acl> <acl name="RPC"></acl> <object name="user._Max"></object> <object name="resource.admin"></object> <object name="resource.webadmin"></object> <object name="resource.tag"></object> <object name="resource.basicmode"></object> <object name="resource.1"></object> </group> <group name="Console"> <acl name="Moderator"></acl> <acl name="SuperModerator"></acl> <acl name="Admin"></acl> <acl name="RPC"></acl> <object name="user._Max"></object> </group> <group name="RPC"> <acl name="RPC"></acl> </group> <group name="MapEditor"> <acl name="Default"></acl> <acl name="MapEditor"></acl> <object name="resource.editor_main"></object> <object name="resource.edf"></object> </group> <group name="raceACLGroup"> <acl name="Default"></acl> <acl name="raceACL"></acl> <object name="resource.race"></object> </group> <group name="DevGroup"> <acl name="DevACL"></acl> </group> <group name="autoGroup_guieditor"> <acl name="autoACL_guieditor"></acl> <object name="resource.guieditor"></object> </group> <group name="autoGroup_basicmode"> <acl name="autoACL_basicmode"></acl> <object name="resource.basicmode"></object> </group> <acl name="Default"> <right name="general.ModifyOtherObjects" access="false"></right> <right name="general.http" access="false"></right> <right name="command.start" access="false"></right> <right name="command.stop" access="false"></right> <right name="command.stopall" access="false"></right> <right name="command.gamemode" access="false"></right> <right name="command.changemode" access="false"></right> <right name="command.changemap" access="false"></right> <right name="command.stopmode" access="false"></right> <right name="command.stopmap" access="false"></right> <right name="command.skipmap" access="false"></right> <right name="command.restart" access="false"></right> <right name="command.refresh" access="false"></right> <right name="command.refreshall" access="false"></right> <right name="command.addaccount" access="false"></right> <right name="command.delaccount" access="false"></right> <right name="command.debugscript" access="false"></right> <right name="command.chgpass" access="false"></right> <right name="command.loadmodule" access="false"></right> <right name="command.upgrade" access="false"></right> <right name="command.mute" access="false"></right> <right name="command.crun" access="false"></right> <right name="command.srun" access="false"></right> <right name="command.run" access="false"></right> <right name="command.unmute" access="false"></right> <right name="command.kick" access="false"></right> <right name="command.ban" access="false"></right> <right name="command.banip" access="false"></right> <right name="command.unbanip" access="false"></right> <right name="command.reloadbans" access="false"></right> <right name="command.shutdown" access="false"></right> <right name="command.install" access="false"></right> <right name="command.aexec" access="false"></right> <right name="command.whois" access="false"></right> <right name="command.whowas" access="false"></right> <right name="function.executeCommandHandler" access="false"></right> <right name="function.setPlayerMuted" access="false"></right> <right name="function.addAccount" access="false"></right> <right name="function.addBan" access="false"></right> <right name="function.removeBan" access="false"></right> <right name="function.removeAccount" access="false"></right> <right name="function.setAccountPassword" access="false"></right> <right name="function.kickPlayer" access="false"></right> <right name="function.banIP" access="false"></right> <right name="function.banPlayer" access="false"></right> <right name="function.banSerial" access="false"></right> <right name="function.getBansXML" access="false"></right> <right name="function.unbanIP" access="false"></right> <right name="function.unbanSerial" access="false"></right> <right name="function.reloadBans" access="false"></right> <right name="function.setServerPassword" access="false"></right> <right name="function.getServerPassword" access="false"></right> <right name="function.callRemote" access="false"></right> <right name="function.fetchRemote" access="false"></right> <right name="function.startResource" access="false"></right> <right name="function.stopResource" access="false"></right> <right name="function.restartResource" access="false"></right> <right name="function.createResource" access="false"></right> <right name="function.copyResource" access="false"></right> <right name="function.addResourceMap" access="false"></right> <right name="function.addResourceConfig" access="false"></right> <right name="function.removeResourceFile" access="false"></right> <right name="function.setResourceDefaultSetting" access="false"></right> <right name="function.removeResourceDefaultSetting" access="false"></right> <right name="function.redirectPlayer" access="false"></right> <right name="function.aclReload" access="false"></right> <right name="function.aclSave" access="false"></right> <right name="function.aclCreate" access="false"></right> <right name="function.aclDestroy" access="false"></right> <right name="function.aclSetRight" access="false"></right> <right name="function.aclRemoveRight" access="false"></right> <right name="function.aclCreateGroup" access="false"></right> <right name="function.aclDestroyGroup" access="false"></right> <right name="function.aclGroupAddACL" access="false"></right> <right name="function.aclGroupRemoveACL" access="false"></right> <right name="function.aclGroupAddObject" access="false"></right> <right name="function.aclGroupRemoveObject" access="false"></right> <right name="function.refreshResources" access="false"></right> <right name="function.setServerConfigSetting" access="false"></right> <right name="function.updateResourceACLRequest" access="false"></right> <right name="command.aclrequest" access="false"></right> <right name="general.adminpanel" access="false"></right> <right name="general.tab_players" access="false"></right> <right name="general.tab_resources" access="false"></right> <right name="general.tab_maps" access="false"></right> <right name="general.tab_server" access="false"></right> <right name="general.tab_bans" access="false"></right> <right name="general.tab_adminchat" access="false"></right> <right name="command.freeze" access="false"></right> <right name="command.setnick" access="false"></right> <right name="command.shout" access="false"></right> <right name="command.spectate" access="false"></right> <right name="command.slap" access="false"></right> <right name="command.setgroup" access="false"></right> <right name="command.sethealth" access="false"></right> <right name="command.setarmour" access="false"></right> <right name="command.setmoney" access="false"></right> <right name="command.setskin" access="false"></right> <right name="command.setteam" access="false"></right> <right name="command.giveweapon" access="false"></right> <right name="command.setstat" access="false"></right> <right name="command.jetpack" access="false"></right> <right name="command.warp" access="false"></right> <right name="command.setdimension" access="false"></right> <right name="command.setinterior" access="false"></right> <right name="command.givevehicle" access="false"></right> <right name="command.repair" access="false"></right> <right name="command.blow" access="false"></right> <right name="command.destroy" access="false"></right> <right name="command.customize" access="false"></right> <right name="command.setcolor" access="false"></right> <right name="command.setpaintjob" access="false"></right> <right name="command.listmessages" access="false"></right> <right name="command.readmessage" access="false"></right> <right name="command.listresources" access="false"></right> <right name="command.execute" access="false"></right> <right name="command.delete" access="false"></right> <right name="command.setpassword" access="false"></right> <right name="command.setwelcome" access="false"></right> <right name="command.setgame" access="false"></right> <right name="command.setmap" access="false"></right> <right name="command.setweather" access="false"></right> <right name="command.blendweather" access="false"></right> <right name="command.setblurlevel" access="false"></right> <right name="command.setwaveheight" access="false"></right> <right name="command.setskygradient" access="false"></right> <right name="command.setgamespeed" access="false"></right> <right name="command.setgravity" access="false"></right> <right name="command.settime" access="false"></right> <right name="function.shutdown" access="false"></right> <right name="command.setfpslimit" access="false"></right> <right name="command.fetchRemote" access="false"></right> <right name="command.unban" access="false"></right> <right name="command.banserial" access="false"></right> <right name="command.unbanserial" access="false"></right> <right name="command.listbans" access="false"></right> </acl> <acl name="Moderator"> <right name="general.ModifyOtherObjects" access="false"></right> <right name="command.gamemode" access="true"></right> <right name="command.changemode" access="true"></right> <right name="command.changemap" access="true"></right> <right name="command.stopmode" access="true"></right> <right name="command.stopmap" access="true"></right> <right name="command.skipmap" access="true"></right> <right name="command.mute" access="true"></right> <right name="command.unmute" access="true"></right> <right name="command.whois" access="true"></right> <right name="command.whowas" access="true"></right> <right name="function.setPlayerMuted" access="true"></right> <right name="function.kickPlayer" access="true"></right> <right name="function.banIP" access="true"></right> <right name="function.banPlayer" access="true"></right> <right name="function.banSerial" access="true"></right> <right name="function.getBansXML" access="true"></right> <right name="function.unbanIP" access="true"></right> <right name="function.unbanSerial" access="true"></right> <right name="function.startResource" access="true"></right> <right name="function.stopResource" access="true"></right> <right name="function.restartResource" access="true"></right> <right name="function.redirectPlayer" access="true"></right> <right name="general.adminpanel" access="true"></right> <right name="general.tab_players" access="true"></right> <right name="general.tab_resources" access="false"></right> <right name="general.tab_maps" access="false"></right> <right name="general.tab_server" access="true"></right> <right name="general.tab_bans" access="false"></right> <right name="general.tab_adminchat" access="true"></right> <right name="command.kick" access="false"></right> <right name="command.freeze" access="true"></right> <right name="command.setnick" access="true"></right> <right name="command.shout" access="true"></right> <right name="command.spectate" access="true"></right> <right name="command.slap" access="true"></right> <right name="command.setgroup" access="false"></right> <right name="command.sethealth" access="true"></right> <right name="command.setarmour" access="true"></right> <right name="command.setmoney" access="false"></right> <right name="command.setskin" access="true"></right> <right name="command.setteam" access="true"></right> <right name="command.giveweapon" access="true"></right> <right name="command.setstat" access="true"></right> <right name="command.jetpack" access="true"></right> <right name="command.warp" access="true"></right> <right name="command.setdimension" access="true"></right> <right name="command.setinterior" access="true"></right> <right name="command.createteam" access="false"></right> <right name="command.destroyteam" access="false"></right> <right name="command.givevehicle" access="true"></right> <right name="command.repair" access="true"></right>
-
ارسلي الفنكشنات خاص : ( ودي اسويه
-
قيم مود play فيه سكربت تاج بعد يعني راح يطلع بالشات مرتين اسمك . . لازم تشيل السكربت حق التاج من القيم مود
-
--- جرب ذا GUIEditor_Window = {} GUIEditor_Window[1] = guiCreateWindow(400,400,655,470,"Test",false) guiSetVisible(GUIEditor_Window[1],false) addEvent( "onGreeting", true ) addEventHandler( "onGreeting",root, function ( ) guiSetVisible ( GUIEditor_Window[1], true ) end ) ---Server marker = createMarker ( 267.84066772461,-1808.1632080078,3.5,"cylinder",3, 255, 0, 255, 255) addEventHandler('onMarkerHit', marker, function(hitElement) if getElementType(hitElement) == 'player' and isPedInVehicle ( hitElement ) then triggerClientEvent ( hitElement, "onGreeting", hitElement) if isElement(marker) then destroyElement(marker) end end end )
-
تأكد تطفي قيم مود play وتشغل قيم مود fallout عشان مايسبب حوسه ,
-
addEventHandler ("onClientGUIClick", resourceRoot, function () if ( source == gomaqer ) then triggerServerEvent("tripmaqer", localPlayer) end end ) -----Server addEvent("tripmaqer", true) addEventHandler("tripmaqer", root, function() exports.killmessages:outputMessage("Welcom") setElementPosition ( source, -56.96640,2078.59082,22.22503 ) end ) ---- other resource addEvent("lasventrtrap", true) addEventHandler("lasventrtrap", root, function() if ( getPlayerMoney (source) > 860 ) then takePlayerMoney(source, 860) outputChatBox("msg", source, 255, 255,0 ) else outputChatBox("msg", source, 255, 255,0 ) end end )
-
اسف على التأخير , local root = getRootElement() function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) if isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then cancelEvent() outputChatBox("#bd1c18* [ #424242Develper#bd1c18 ] " .. name .. ":#DBA901 " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Devlpor")) then cancelEvent() outputChatBox("#bd1c18* [ #424242Develper1#bd1c18 ] " .. name .. ":#DBA901 " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("HeadAdmin")) then cancelEvent() outputChatBox("#bd1c18* [ #FE2E2EHead Leader#bd1c18 ] " .. name .. ":#EBDDE2 " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Leader")) then cancelEvent() outputChatBox("#bd1c18* [ #FE2E2ELeader#bd1c18 ] " .. name .. ":#EBDDE2 " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Level_1")) then cancelEvent() outputChatBox("#bd1c18* [ #04B4AELevel 1#bd1c18 ] #04B4AE" .. name .. ":#EBDDE2 " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Level_2")) then cancelEvent() outputChatBox("#bd1c18* [ #8A0868Level 2#bd1c18 ] #8A0868" .. name .. ":#EBDDE2 " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Level_3")) then cancelEvent() outputChatBox("#bd1c18* [ #298A08Level 3#bd1c18 ] #298A08" .. name .. ":#EBDDE2 " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Level_4")) then cancelEvent() outputChatBox("#bd1c18* [ #B18904Level 4#bd1c18 ] #B18904" .. name .. ":#EBDDE2 " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Level_5")) then cancelEvent() outputChatBox("#bd1c18* [ #8A0808Level 5#bd1c18 ] #8A0808" .. name .. ":#EBDDE2 " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Ex")) then cancelEvent() outputChatBox("#9c9a9c[ Admin - Ex ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) end end addEventHandler("onPlayerChat", root, chatbox)
-
حياك الله يابعدي وتذكر دائم اذا سويت ماركر لازم تعرف من اللي دخل الماركر عشان مايصير اخطاء موفق
-
hitElement اللي دخل الماركر تقدر تحطه flapjack3003 nMax player اي اسم تبي بس عرفه داخل الفنكشن + في التريقر وبس
-
That's odd show meta.xml and make sure my Code is ServerSide and the window is clientside /debugscript 3 .. also you must enter the marker on foot not in cars .