Jump to content

X-SHADOW

Members
  • Posts

    721
  • Joined

  • Last visited

Everything posted by X-SHADOW

  1. Here it toke me 20 min to fix this wtf local animations = { { "RIOT", "RIOT_ANGRY" }, { "RIOT", "RIOT_ANGRY_B" }, { "RIOT", "RIOT_challenge" }, { "RIOT", "RIOT_CHANT" }, { "RIOT", "RIOT_FUKU" }, { "RIOT", "RIOT_PUNCHES" }, { "RIOT", "RIOT_shout" } } bindKey( "i", "down", function() if ( guiGetVisible( guiElement1 ) == false ) then guiSetVisible( guiElement1, true ) showCursor( true ) end end ) addEventHandler( "onClientResourceStart", resourceRoot, function() for i = 1, #animations do guiElement[i] = guiGridListAddRow( guiElement2 ) guiGridListSetItemText( guiElement2, guiElement5, guiElement..""..i, animations[i][1], false, false ) guiGridListSetItemText( guiElement2, guiElement6, guiElement..""..i, animations[i][2], false, false ) end end ) addEventHandler( "onClientGUIClick", elementGroup, function() if ( source == guiElement3 ) then if ( guiGridListGetSelectedItem) then ( guiElement2 )(guiElement[i]) (guiElemen) ( guiGridListGetSelectedItem)( guiElement2 ) if (guiElement[i]) and (guiElement6) then local block = guiGridListGetItemText( guiElement2, guiGridListGetSelectedItem( guiElement2 ), guiElement5 ) local animation = guiGridListGetItemText( guiElement2, guiGridListGetSelectedItem( guiElement2 ), guiElement6 ) if ( block ) and ( animation ) then triggerServerEvent( "onElementAnimation", elementPlayer, block, animation ) elseif ( source == guiElement4 ) then guiSetVisible( guiElement1, false ) showCursor( false ) end end end end end)
  2. yes its Stoped Mate_ make it its stupid idea you can stop it from 'F1' .
  3. X-SHADOW

    GUI Help

    Thank's Jaysds1 For Help alredy fixed but i want ask some thing i have 9 buttons its possble to make tabel and use it insted of like this for i , .. do 'onClientGUIClick', if [1] = 'Button 1' then etc ..
  4. X-SHADOW

    GUI Help

    now i have problem with setPlayerMoney and givePlayerMoney triggerServerEvent addEvent('giveM', true) addEventHandler('giveM',root,function() local money = getPlayerMoney(source) if ( money >= 500 ) then takePlayerMoney(source, money) giveWeapon ( source, 31 , 200 ) outputChatBox(getPlayerName(source) .. 'Bought M4') else outputChatBox('You Dont Have Enough Money To Buy This',source, 255, 255, 0 ) end end) addEvent('giveG', true) addEventHandler('giveG',root,function() local money = getPlayerMoney(source) if ( money >= 2500 ) then takePlayerMoney(source, money) giveWeapon ( source, 16 , 5 ) outputChatBox(getPlayerName(source) .. ' Bought Greande ') else outputChatBox('You Dont Have Enough Money To Buy This',source, 255, 255, 0 ) end end) addEvent('giveCash', true) addEventHandler('giveCash',root,function() givePlayerMoney(source, 1000) end) addEvent('setM', true) addEventHandler('setM',root,function() setPlayerMoney(source, 0) end)
  5. X-SHADOW

    GUI Help

    i want when the player open the window play sound i have the sound but how to make it can you show me example
  6. X-SHADOW

    GUI Help

    Can Some One show me example how to play sound when gui open ?
  7. X-SHADOW

    GUI Help

    its say server.lua:27 addEventHandler a nill value and when i press the buttons dont do any thing .
  8. X-SHADOW

    GUI Help

    Hi all i have made this script but it didn't work ClientSide GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(420,259,582,358,"Stats_Manger By 'Dev-PoinT' v1.0",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,17,564,330,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Reset Mangement",GUIEditor_TabPanel[1]) GUIEditor_Image[1] = guiCreateStaticImage(11,1,174,107,"images/Controll.png",false,GUIEditor_Tab[1]) GUIEditor_Button[1] = guiCreateButton(82,133,124,32,"Dmg",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Button[1],"clear-normal") GUIEditor_Button[2] = guiCreateButton(86,182,124,34,"Damage",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Button[2],"clear-normal") GUIEditor_Button[3] = guiCreateButton(249,133,121,37,"Kills",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Button[3],"clear-normal") GUIEditor_Button[4] = guiCreateButton(395,136,133,32,"Deaths",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Button[4],"clear-normal") GUIEditor_Button[5] = guiCreateButton(246,182,130,34,"Money",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Help Mangement",GUIEditor_TabPanel[1]) GUIEditor_Memo[1] = guiCreateMemo(9,5,554,297,"\n#1 First tab use for resert your Dmg - Damage Kills- Deaths -Money To [ 0 ] |\n\n#2 Help Mangemnet You Can Put what you want By Make guiSetMemo read only (false) and type what you want then set it to (true).\n\n'Dev-PoinT Development.\n\nThank's",false,GUIEditor_Tab[2]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) GUIEditor_Tab[3] = guiCreateTab("V.I.P Mangment",GUIEditor_TabPanel[1]) GUIEditor_Button[6] = guiCreateButton(385,259,141,31,"give Money $ 1000",false,GUIEditor_Tab[3]) guiSetFont(GUIEditor_Button[6],"clear-normal") GUIEditor_Image[2] = guiCreateStaticImage(358,183,180,54,"images/Dollars.png",false,GUIEditor_Tab[3]) GUIEditor_Button[7] = guiCreateButton(371,86,153,34,"M4 $ 500",false,GUIEditor_Tab[3]) guiSetFont(GUIEditor_Button[7],"clear-normal") GUIEditor_Image[3] = guiCreateStaticImage(358,13,157,65,"images/7.png",false,GUIEditor_Tab[3]) GUIEditor_Button[8] = guiCreateButton(12,260,137,32,"Greande $ 2500",false,GUIEditor_Tab[3]) guiSetFont(GUIEditor_Button[8],"clear-normal") GUIEditor_Image[4] = guiCreateStaticImage(1,189,159,73,"images/1.png",false,GUIEditor_Tab[3]) GUIEditor_Label[1] = guiCreateLabel(187,17,137,15,"Buy Weapons ",false,GUIEditor_Tab[3]) guiLabelSetColor(GUIEditor_Label[1],0,255,255) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Image[5] = guiCreateStaticImage(10,15,146,127,"images/DecentGun.png",false,GUIEditor_Tab[3]) function open() if (guiGetVisible(GUIEditor_Window[1]) == true) then guiSetVisible(GUIEditor_Window[1], false) showCursor(false) else guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end end bindKey("F6","down",open) function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end addEventHandler('onClientGUIClicl', getRootElement(), function (button, state, absoluteX, absoluteY) if ( source == GUIEditor_Button[7] ) then triggerServerEvent('giveM',getLocalPlayer()) elseif ( source == GUIEditor_Button[8] ) then triggerServerEvent('giveG',getLocalPlayer()) elseif ( source == GUIEditor_Button[1] ) then setElementData(source, 'Dmg', 0 ) outputChatBox('successfully reset!',source,255 , 255, 0) elseif ( source == GUIEditor_Button[2] ) then setElementData( source, 'Damage', 0) outputChatBox('successfully reset!',source,255 , 255, 0) elseif ( source == GUIEditor_Button[3] ) then setElementData(source, 'Kills', 0 ) outputChatBox('successfully reset!',source,255 , 255, 0) elseif ( source == GUIEditor_Button[4] ) then setElementData(source,'Deaths', 0 ) outputChatBox('successfully reset!',source,255 , 255, 0) elseif ( source == GUIEditor_Button[5] ) then setPlayerMoney(source, 0 ) outputChatBox('successfully reset!',source,255 , 255, 0) elseif ( source == GUIEditor_Button[ 6] ) then givePlayerMoney( source , 100) outputChatBox('successfully Payed !',source,255 , 255, 0) end end) ServerSide addEvent('giveM', true) addEventHandler('giveM',root, function() local money = getPlayerMoney(source) if ( money >= 500 ) then takePlayerMoney(source, money) giveWeapon ( source, 31 , 200 ) outputChatBox(getPlayerName(source) .. 'Bought M4') else outputChatBox('You Dont Have Enough Money To Buy This',source, 255, 255, 0 ) end end) addEvent('giveG', true) addEventHandler('giveG',root, function() local money = getPlayerMoney(source) if ( money >= 2500 ) then takePlayerMoney(source, money) giveWeapon ( source, 16 , 5 ) outputChatBox(getPlayerName(source) .. 'Bought Greande') else outputChatBox('You Dont Have Enough Money To Buy This',source, 255, 255, 0 ) end end) addEventHanlder('onResourceStart', resourceRoot, function() outputChatBox('Press F6 To Open Your Stats_Mangment !',255,255,0) end)
  9. lol i never thougt about this StanleySathler its cool idea !
  10. why it wont work on serverside? if i try trigger it well work or not ?
  11. Try Using this addEventHandler ( "onPlayerDamage", getRootElement(), cancelEvent )
  12. did you test what i post ?
  13. Try This addCommandHandler( 'zombie', function ( pPlayer ) redirectPlayer( pPlayer, "94.23.38.142", 22003) outputChatBox ("*#000000 [ #FF0000"..getPlayerName(pPlayer) .." #000000]#FFFF00 Has turning to the Zombie Server #ff0000!!",getRootElement(), 255, 0, 0, true ) end ) function chat() outputChatBox ("#FFff00~@ #00bbccTyp #000000[ #ff0000/zombie #000000] #00bbccTo connect to The#000000: #ff0000Zombie #00bbccServer #ffff00 @~",getRootElement(), 255, 255, 255, true ) end setTimer ( chat, 60000, 0)
  14. addEventHandler('onPlayerJoin', root, function ( noob ) if ( noob == 'Mojrem511' ) then kickPlayer(noob, 'You Have Been Kicked For Noob is script') end)
  15. acl.xml <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.s"></object> <object name="resource.admin"></object> <object name="resource.webadmin"></object> <object name="resource.User"></object> <object name="resource.zombie"></object> </group> <group name="Console"> <acl name="Moderator"></acl> <acl name="SuperModerator"></acl> <acl name="Admin"></acl> <acl name="RPC"></acl> <object name="user.s"></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="Armed Force"> <object name="user.s"></object> </group> <group name="Police"></group> <group name="Robbers"></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.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.getClientIP" 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.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.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="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.getClientIP" 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> <right name="command.blowvehicle" access="true"></right> <right name="command.destroyvehicle" access="true"></right> <right name="command.customize" access="true"></right> <right name="command.setcolor" access="true"></right> <right name="command.setpaintjob" access="true"></right> <right name="command.listmessages" access="true"></right> <right name="command.readmessage" access="true"></right> <right name="command.listresources" access="true"></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.restart" access="false"></right>
  16. GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(167,128,949,523,"Chats",false) GUIEditor_TabPanel[1] = guiCreateTabPanel(32,39,893,460,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Help",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[1]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[1]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[2] = guiCreateTab("Main",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[2]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[2]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[3] = guiCreateTab("Arabic",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[3]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[3]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[4] = guiCreateTab("Russian",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[4]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[4]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[5] = guiCreateTab("Spanish",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[5]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[5]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[6] = guiCreateTab("Turkish",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[6]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[6]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[7] = guiCreateTab("French",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[7]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[7]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[8] = guiCreateTab("German",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[8]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[8]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[9] = guiCreateTab("Indian",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[9]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[9]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[10] = guiCreateTab("Ireland",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[10]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[10]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[11] = guiCreateTab("Italian",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[11]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[11]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Tab[12] = guiCreateTab("Portuguese",GUIEditor_TabPanel[1]) GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[12]) GUIEditor_Edit[2] = guiCreateEdit(23,27,791,339,"",false,GUIEditor_Tab[12]) guiEditSetReadOnly(GUIEditor_Edit[2],true) guiSetVisible(GUIEditor_TabPanel[1], false) function guiToggleVisible ( ) if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetVisible ( GUIEditor_Window[1], false ) else guiSetVisible ( GUIEditor_Window[1], true ) end end bindKey ( "F2", "down", guiToggleVisible ) By The Way You Have errors i have fixed it
  17. Great Job ! Keep up the Good Work ! i well use this im my scripts
  18. Car Mod https://community.multitheftauto.com/index.php?p= ... ls&id=4841
  19. 0 = x 0 = y 6 = z and you Can get Them by Admin Panel --serverSide function damage (thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then local driver = getVehicleOccupant ( thePlayer) if ( driver ) then setVehicleDamageProof(driver, true) outputChatBox('Your vehicle is Damage Proof',thePlayer,255,255,0) else outputChatBox('You Must Be Admin to do this',thePlayer,255,255,0) end end end addEventHandler ( "onVehicleEnter", getRootElement(), damage )
  20. SoldSnake iam trying to help just like you its free to help others if it wrong or right |~ ~| You write CreateExploison ( x,y,z ) ?? where is x,y,z defined ?
  21. --ClientSide function bombe10_Button (state) if state == "left" then if (source == GUIEditor_Button[12]) then local vehicle = getPedOccupiedVehicle (localPlayer) local x,y,z = getElementPosition (localPlayer) triggerServerEvent ( "Feuerwerk", source ) end end end addEventHandler("onClientGUIClick", getRootElement(), bombe10_Button) --ServerSide function Feuerwerk () end addEvent ( 'Feuerwerk', true ) addEventHandler ( "Feuerwerk", root , Feuerwerk ) function fire1 ( thePlayer ) local x, y, z = getElementPosition ( thePlayer ) createExplosion ( x, y, z + 15, 0 ) setTimer(fire2, 500, 1, 0) end function fire2 ( thePlayer ) local x,y,z = getElementPosition ( thePlayer ) createExplosion ( x, y, z + 13, 0 ) setTimer(fire3, 500, 1, 0) end
  22. X-SHADOW

    robber error

    --serverSide function createRobberTeam () robberTeam = createTeam ( "Robber", 250, 0, 0 ) end addEventHandler ( "onResourceStart", resourceRoot, createRobberTeam ) function givePlayerJob ( ) setPlayerTeam ( source, robberTeam ) end addCommandHandler ( "robber", givePlayerJob ) addEvent ( "givePlayerPay", true ) function givePlayerRobPay () money = math.random ( 350, 1020 ) givePlayerMoney ( source, money ) outputChatBox ( "You succesfully robbed the house and made $" ..money, source ) fadeCamera ( source, false, 1, 0, 0, 0 ) setTimer ( fadeCamera, 1000, 1, source, true, 1 ) end addEventHandler ( "givePlayerPay", root, givePlayerRobPay ) --ClientSide addEvent ( "createHouseEvent", true ) function createHouses () x, y, z = unpackRobberHouses () robhouseMarker = createMarker ( x, y, z, "cylinder", 3, 255, 51, 102, 85, localPlayer ) robhouseBlip = createBlipAttachedTo ( robhouseMarker, 32, localPlayer ) end addEventHandler ( "createHouseEvent", root, createHouses ) addEventHandler ( "onClientMarkerHit", root, function ( hitElement ) if ( source == robhouseMarker and not isPedInVehicle ( localPlayer ) and hitElement == localPlayer ) then triggerServerEvent ( "givePlayerPay", localPlayer ) destroyElement ( robhouseMarker ) destroyElement ( robhouseBlip ) triggerEvent ( "createHouseEvent", localPlayer ) playSound ( "files/cash.mp3", false ) end end ) function pro () cancelEvent() end addEventHandler ( "onClientPedDamage", getRootElement(), pro )
  23. الحل اذهب الى المسار الاتي C:\Program Files\MTA San Andreas 1.3\mods\deathmatch\resources واحذف كل اللي فيه وادخل السيرفر :]
  24. gate = createObject(3115,213.37258911133,1875.5131835938,7.0294618606567,90,0,0) -- اول 3 ارقام تسمى احدثيات y,x,z تقدر تغيرها من الادمنية تجيب الارقام وتستبدلها function opendoor() --- وظيفة moveObject (gate, 5000, 4060.9077148438,-1819.9403076172,29.235511779785 ) --- تحريك البوابة الى الاحداثيات التالية y,x,z end-- اغلاق bindKey ( "tab", "down", opendoor ) ----- وضع مفتاح تحريك البوابة هو تاب function closedoor() -- وظيفة moveObject (gate, 5000, 4060.9077148438,-1819.9403076172,346.60443115234 ) --- تحريك البوابة الى الاحداثيات التالية لاغلاقها end -- اغلاق bindKey ( "tab", "down", closedoor ) --- وضع مفتاح التحريك البوابة هو تاب
  25. Here dont forget to edit to your text function showhelp(thePlayer) outputChatBox("/pm, send a personal message",thePlayer,255,0,0) outputChatBox("/stations,set radio steams",thePlayer,255,0,0) outputChatBox("/rules,a explanation of the rules and the punishments",thePlayer,255,0,0) outputChatBox("/report report someone who breaks the rules ",thePlayer,255,0,0) outputChatBox("/lock, lock your vehicle for others",thePlayer,255,0,0) end addCommandHandler("help",showhelp)
×
×
  • Create New...