Jump to content

NotAvailable

Members
  • Posts

    595
  • Joined

  • Last visited

Everything posted by NotAvailable

  1. i think true i tested it on false that did NOT work now im going to test on TRUE ill post back in 10 min
  2. Like when someone registers he will be putted in the Members team
  3. I know... In C++ its has to be true
  4. Hi, When i click map editor @ the main menu It will say: Connecting to local server... The 1st message & after that MTA freezes
  5. Hi, Can someone help me im trying to make: when a player registers he will be put in the members team Can someone help me here is the CONFIG.XML file: <teams> -- Add your teams here. Please note that the resource needs to be restarted for the changes in this file to take effect. Required attributes: - name: The name of the team Optional attributes: - color: The color of the team as HTML-Color - tag: The clantag the players should have to be put in the team. This does not have to be a clantag of course, it can be any part of the nick. - aclGroup: The ACL Group the player should be in to be put in the team - required: If set to 'both', both the tag and the aclGroup have to match for a player to be put in the team (otherwise only one of them has to match, so if you only want players that are in a certain aclGroup to get in the team, only define the aclGroup) Example: <team name="Cool-Clan Members" color="#FF0000" tag="[Cool]" aclGroup="Moderator" required="both" /> This will add a team which will be displayed as 'Cool-Clan Members' with red color and to which players will be added that have '[Cool]' somewhere in their nick and are in the ACL Group 'Moderator'. --> <team name="Admin(s)" color="#FF0000" tag="[Crew]" aclGroup="Admin" /> <team name="Non - Members" color="#FFFFFF" tag="[Crew]" aclGroup="Everyone" /> <team name="Members" color="#FFFF00" tag="[Crew]" aclGroup="Everyone" /> teams>
  6. This is just a example!: <file src="images/PICTURE.png" />
  7. Try this: setTimer ( explosions1, 3000, 3 ) -- you can set the time how much you want (1000-1sec))
  8. Yes u did it wrong the timer part! its in mili seconds (Ex. 1000 MS = 1 Second )
  9. You Should look in other Scripts to learn
  10. Delete the: end It's the last 1
  11. Hi, There is a horrible bug in my weapon shop: Ex. You have 1000$ & you buyed a M4 for 1000$... Then you kill a zombie & you get the 1000$ back + the zombie kill reward.. Someone knows how to fix it?
  12. Hi, I made the script and everything... & it works! But if someone stands in it the GUI pops up for everybody O_O I know it has to be something with localplayer but i dont know where... Here is the Server - Sided & Client - Sided Script SERVER SIDED: --LSAmmu-Nation --------------- createBlip ( 1536.0153808594, -1476.4598388672, 8.5, 6 ) function gw(weapon,ammo) giveWeapon ( source, weapon, ammo ) playSoundFrontEnd ( source, 17 ) end addEvent( "giveweapon", true ) addEventHandler( "giveweapon", getRootElement(), gw ) HERE IS THE CLIENT - SIDE: --LS Ammu-Nation ---------------- GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Grid = {} GUIEditor_Image = {} function menu_close() showCursor(false) guiSetVisible( GUIEditor_Window[1], false ) end function menu_show() guiSetVisible( GUIEditor_Window[1], true ) end local mar = createMarker ( 1536.0153808594, -1476.4598388672, 8.5, 255, 1, 136, 79, 1 ) function markertarget() setMarkerTarget ( mar, 1536.0153808594, -1476.4598388672, 8.5 ) end function MarkerHit( hitPlayer, matchingDimension ) local x,y,z = getMarkerTarget( source, mar ) -- get the marker target if x ~= false then if getElementType(hitPlayer)=="player" then showCursor(true) --GUI GUIEditor_Window[1] = guiCreateWindow(0.2109,0.3112,0.5957,0.3984,"Stuff from Holland!",true) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(0.023,0.1176,0.2328,0.3529,true,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) GUIEditor_Image[1] = guiCreateStaticImage(0.2535,0.0741,0.4718,0.5463,"IMG/DEAGLE.png",true,GUIEditor_Grid[1]) GUIEditor_Label[1] = guiCreateLabel(0.0563,0.0648,0.3944,0.1852,"50$",true,GUIEditor_Grid[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) GUIEditor_Label[2] = guiCreateLabel(0.0563,0.0648,0.3944,0.1852,"50$",true,GUIEditor_Grid[1]) guiLabelSetColor(GUIEditor_Label[2],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[2],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[2],"left",false) GUIEditor_Grid[2] = guiCreateGridList(0.2656,0.1176,0.2328,0.3529,true,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[2],2) GUIEditor_Image[2] = guiCreateStaticImage(0.2676,0.1204,0.4789,0.5556,"IMG/MICROUZI.png",true,GUIEditor_Grid[2]) GUIEditor_Label[3] = guiCreateLabel(0.0704,0.0648,0.3451,0.1759,"100$",true,GUIEditor_Grid[2]) guiLabelSetColor(GUIEditor_Label[3],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[3],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[3],"left",false) GUIEditor_Grid[3] = guiCreateGridList(0.5082,0.1176,0.2328,0.3529,true,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[3],2) GUIEditor_Image[3] = guiCreateStaticImage(0.2606,0.1481,0.5211,0.5556,"IMG/M4.png",true,GUIEditor_Grid[3]) GUIEditor_Button[3] = guiCreateButton(0.0986,0.7037,0.8028,0.2222,"M4",true,GUIEditor_Grid[3]) GUIEditor_Label[4] = guiCreateLabel(0.0634,0.0741,0.3873,0.1667,"500$",true,GUIEditor_Grid[3]) guiLabelSetColor(GUIEditor_Label[4],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[4],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[4],"left",false) GUIEditor_Grid[4] = guiCreateGridList(0.023,0.4869,0.2328,0.3529,true,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[4],2) GUIEditor_Image[4] = guiCreateStaticImage(0.2746,0.1019,0.4225,0.5556,"IMG/COLT45.png",true,GUIEditor_Grid[4]) GUIEditor_Label[5] = guiCreateLabel(0.0563,0.0833,0.4225,0.1574,"50$",true,GUIEditor_Grid[4]) guiLabelSetColor(GUIEditor_Label[5],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[5],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[5],"left",false) GUIEditor_Grid[5] = guiCreateGridList(0.2672,0.4902,0.2328,0.3529,true,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[5],2) GUIEditor_Button[5] = guiCreateButton(0.0915,0.6944,0.7958,0.2222,"MP5",true,GUIEditor_Grid[5]) GUIEditor_Image[5] = guiCreateStaticImage(0.2606,0.1019,0.4296,0.5185,"IMG/MP5.png",true,GUIEditor_Grid[5]) GUIEditor_Label[6] = guiCreateLabel(0.0634,0.0741,0.338,0.1574,"300$",true,GUIEditor_Grid[5]) guiLabelSetColor(GUIEditor_Label[6],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[6],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[6],"left",false) GUIEditor_Grid[6] = guiCreateGridList(0.5098,0.4902,0.2328,0.3529,true,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[6],2) GUIEditor_Image[6] = guiCreateStaticImage(0.2535,0.1019,0.5282,0.5463,"IMG/AK47.png",true,GUIEditor_Grid[6]) GUIEditor_Label[7] = guiCreateLabel(0.0704,0.0741,0.3451,0.1667,"400$",true,GUIEditor_Grid[6]) guiLabelSetColor(GUIEditor_Label[7],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[7],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[7],"left",false) GUIEditor_Grid[7] = guiCreateGridList(0.7525,0.4869,0.2246,0.3529,true,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[7],2) GUIEditor_Image[7] = guiCreateStaticImage(0.1679,0.1019,0.5547,0.5648,"IMG/SNIPER.png",true,GUIEditor_Grid[7]) GUIEditor_Label[8] = guiCreateLabel(0.0657,0.0741,0.365,0.1574,"400$",true,GUIEditor_Grid[7]) guiLabelSetColor(GUIEditor_Label[8],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[8],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[8],"left",false) GUIEditor_Grid[8] = guiCreateGridList(0.7508,0.1176,0.2246,0.3529,true,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[8],2) GUIEditor_Image[8] = guiCreateStaticImage(0.2336,0.1204,0.5036,0.5833,"IMG/RIFLE.png",true,GUIEditor_Grid[8]) GUIEditor_Label[9] = guiCreateLabel(0.0657,0.0648,0.3942,0.1667,"200$",true,GUIEditor_Grid[8]) guiLabelSetColor(GUIEditor_Label[9],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[9],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[9],"left",false) GUIEditor_Button[9] = guiCreateButton(0.3689,0.8758,0.2525,0.0882,"Close",true,GUIEditor_Window[1]) DEAGLE = guiCreateButton(0.0845,0.6944,0.8239,0.2315,"Deagle",true,GUIEditor_Grid[1]) COLT = guiCreateButton(0.1056,0.6944,0.7958,0.2222,"Colt",true,GUIEditor_Grid[4]) MP5 = guiCreateButton(0.0915,0.6944,0.7958,0.2222,"MP5",true,GUIEditor_Grid[5]) UZI = guiCreateButton(0.0915,0.7037,0.8099,0.2222,"Micro Uzi",true,GUIEditor_Grid[2]) M4 = guiCreateButton(0.0986,0.7037,0.8028,0.2222,"M4",true,GUIEditor_Grid[3]) AK47 = guiCreateButton(0.1056,0.6944,0.7958,0.2315,"AK47",true,GUIEditor_Grid[6]) SNIPER = guiCreateButton(0.1095,0.7037,0.7664,0.2315,"Sniper",true,GUIEditor_Grid[7]) RIFLE = guiCreateButton(0.1095,0.7037,0.7737,0.2222,"Rifle",true,GUIEditor_Grid[8]) CLOSE = guiCreateButton(0.3689,0.8758,0.2525,0.0882,"Close",true,GUIEditor_Window[1]) addEventHandler ( "onClientGUIClick", CLOSE, menu_close, false ) addEventHandler ( "onClientGUIClick", DEAGLE, gdeagle, false ) addEventHandler ( "onClientGUIClick", COLT, gColt, false ) addEventHandler ( "onClientGUIClick", UZI, gUzi, false ) addEventHandler ( "onClientGUIClick", MP5, gMp5, false ) addEventHandler ( "onClientGUIClick", M4, gM4, false ) addEventHandler ( "onClientGUIClick", AK47, gAK47, false ) addEventHandler ( "onClientGUIClick", SNIPER, gSniper, false ) addEventHandler ( "onClientGUIClick", RIFLE, gRifle, false ) end end end addEventHandler ( "onClientMarkerHit", getRootElement(), markertarget, MarkerHit, menu_show, hitplayer ) function gdeagle( thePlayer ) local money = getPlayerMoney(thePlayer) if (money > 49) then takePlayerMoney ( 50 ) triggerServerEvent ( "giveweapon", getLocalPlayer(), "24","10" ) else outputChatBox("* You dont have enough money!", thePlayer ) end end function gColt( thePlayer ) local money = getPlayerMoney(thePlayer) if (money > 49) then takePlayerMoney ( 50 ) triggerServerEvent ( "giveweapon", getLocalPlayer(), "22","15" ) else outputChatBox("* You dont have enough money!", thePlayer ) end end function gUzi( thePlayer ) local money = getPlayerMoney(thePlayer) if (money > 99) then takePlayerMoney ( 100 ) triggerServerEvent ( "giveweapon", getLocalPlayer(), "28","50" ) else outputChatBox("* You dont have enough money!", thePlayer ) end end function gMp5( thePlayer ) local money = getPlayerMoney(thePlayer) if (money > 299) then takePlayerMoney ( 300 ) triggerServerEvent ( "giveweapon", getLocalPlayer(), "29","70" ) else outputChatBox("* You dont have enough money!", thePlayer ) end end function gM4( thePlayer ) local money = getPlayerMoney(thePlayer) if (money > 499) then takePlayerMoney ( 500 ) triggerServerEvent ( "giveweapon", getLocalPlayer(), "31","100" ) else outputChatBox("* You dont have enough money!", thePlayer ) end end function gAK47( thePlayer ) local money = getPlayerMoney(thePlayer) if (money > 399) then takePlayerMoney ( 400 ) triggerServerEvent ( "giveweapon", getLocalPlayer(), "30","80" ) else outputChatBox("* You dont have enough money!", thePlayer ) end end function gSniper( thePlayer ) local money = getPlayerMoney(thePlayer) if (money > 399) then takePlayerMoney ( 400 ) triggerServerEvent ( "giveweapon", getLocalPlayer(), "34","30" ) else outputChatBox("* You dont have enough money!", thePlayer ) end end function gRifle( thePlayer ) local money = getPlayerMoney(thePlayer) if (money > 199) then takePlayerMoney ( 200 ) triggerServerEvent ( "giveweapon", getLocalPlayer(), "33","40" ) else outputChatBox("* You dont have enough money!", thePlayer ) end end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) Please,. i would really appreciate it if you can help me...
  13. type in your CMD: upgrade OR in game type: /upgrade & then it will search for new resources & then you can add them. PS. Wait till the upgrade is done ( 10 seconds or less / more )
  14. Its me Jesseunit! Whazzaaaaaaaaaaaaaa!
  15. thanks , soon v2.0 is ready I´am Not good in scripting. i work with: C++ Im making a program called: WEPLAY It's a MP3 player like "Itunes" That plays music.
  16. COOL MAN! CANT WAIT TO USE IT!
  17. Thanks Example : local player = getLocalPlayer() addEventHandler ( "onClientMarkerHit", getRootElement(), markertarget, MarkerHit, menu_show )
  18. H, i got a weapon shop but it pop-ups for everybody? I tried to fix it... But no luck for me. Can someone fix it? CLIENT --LS Ammu-Nation ---------------- GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Grid = {} GUIEditor_Image = {} function menu_close() showCursor(false) guiSetVisible( GUIEditor_Window[1], false ) end function menu_show() guiSetVisible( GUIEditor_Window[1], true ) end local mar = createMarker ( 1536.0153808594, -1476.4598388672, 8.5, 255, 1, 136, 79, 1 ) function markertarget() setMarkerTarget ( mar, 1536.0153808594, -1476.4598388672, 8.5 ) end function MarkerHit( hitPlayer, matchingDimension ) local x,y,z = getMarkerTarget( source, mar ) -- get the marker target if x ~= false then if getElementType(hitPlayer)=="player" then showCursor(true) --GUI GUIEditor_Window[1] = guiCreateWindow(0.2109,0.3112,0.5957,0.3984,"Stuff from Holland!",true) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(0.023,0.1176,0.2328,0.3529,true,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) GUIEditor_Image[1] = guiCreateStaticImage(0.2535,0.0741,0.4718,0.5463,"IMG/DEAGLE.png",true,GUIEditor_Grid[1]) GUIEditor_Label[1] = guiCreateLabel(0.0563,0.0648,0.3944,0.1852,"50$",true,GUIEditor_Grid[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) GUIEditor_Label[2] = guiCreateLabel(0.0563,0.0648,0.3944,0.1852,"50$",true,GUIEditor_Grid[1]) guiLabelSetColor(GUIEditor_Label[2],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[2],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[2],"left",false) GUIEditor_Grid[2] = guiCreateGridList(0.2656,0.1176,0.2328,0.3529,true,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[2],2) GUIEditor_Image[2] = guiCreateStaticImage(0.2676,0.1204,0.4789,0.5556,"IMG/MICROUZI.png",true,GUIEditor_Grid[2]) GUIEditor_Label[3] = guiCreateLabel(0.0704,0.0648,0.3451,0.1759,"100$",true,GUIEditor_Grid[2]) guiLabelSetColor(GUIEditor_Label[3],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[3],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[3],"left",false) GUIEditor_Grid[3] = guiCreateGridList(0.5082,0.1176,0.2328,0.3529,true,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[3],2) GUIEditor_Image[3] = guiCreateStaticImage(0.2606,0.1481,0.5211,0.5556,"IMG/M4.png",true,GUIEditor_Grid[3]) GUIEditor_Button[3] = guiCreateButton(0.0986,0.7037,0.8028,0.2222,"M4",true,GUIEditor_Grid[3]) GUIEditor_Label[4] = guiCreateLabel(0.0634,0.0741,0.3873,0.1667,"500$",true,GUIEditor_Grid[3]) guiLabelSetColor(GUIEditor_Label[4],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[4],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[4],"left",false) GUIEditor_Grid[4] = guiCreateGridList(0.023,0.4869,0.2328,0.3529,true,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[4],2) GUIEditor_Image[4] = guiCreateStaticImage(0.2746,0.1019,0.4225,0.5556,"IMG/COLT45.png",true,GUIEditor_Grid[4]) GUIEditor_Label[5] = guiCreateLabel(0.0563,0.0833,0.4225,0.1574,"50$",true,GUIEditor_Grid[4]) guiLabelSetColor(GUIEditor_Label[5],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[5],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[5],"left",false) GUIEditor_Grid[5] = guiCreateGridList(0.2672,0.4902,0.2328,0.3529,true,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[5],2) GUIEditor_Button[5] = guiCreateButton(0.0915,0.6944,0.7958,0.2222,"MP5",true,GUIEditor_Grid[5]) GUIEditor_Image[5] = guiCreateStaticImage(0.2606,0.1019,0.4296,0.5185,"IMG/MP5.png",true,GUIEditor_Grid[5]) GUIEditor_Label[6] = guiCreateLabel(0.0634,0.0741,0.338,0.1574,"300$",true,GUIEditor_Grid[5]) guiLabelSetColor(GUIEditor_Label[6],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[6],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[6],"left",false) GUIEditor_Grid[6] = guiCreateGridList(0.5098,0.4902,0.2328,0.3529,true,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[6],2) GUIEditor_Image[6] = guiCreateStaticImage(0.2535,0.1019,0.5282,0.5463,"IMG/AK47.png",true,GUIEditor_Grid[6]) GUIEditor_Label[7] = guiCreateLabel(0.0704,0.0741,0.3451,0.1667,"400$",true,GUIEditor_Grid[6]) guiLabelSetColor(GUIEditor_Label[7],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[7],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[7],"left",false) GUIEditor_Grid[7] = guiCreateGridList(0.7525,0.4869,0.2246,0.3529,true,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[7],2) GUIEditor_Image[7] = guiCreateStaticImage(0.1679,0.1019,0.5547,0.5648,"IMG/SNIPER.png",true,GUIEditor_Grid[7]) GUIEditor_Label[8] = guiCreateLabel(0.0657,0.0741,0.365,0.1574,"400$",true,GUIEditor_Grid[7]) guiLabelSetColor(GUIEditor_Label[8],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[8],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[8],"left",false) GUIEditor_Grid[8] = guiCreateGridList(0.7508,0.1176,0.2246,0.3529,true,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[8],2) GUIEditor_Image[8] = guiCreateStaticImage(0.2336,0.1204,0.5036,0.5833,"IMG/RIFLE.png",true,GUIEditor_Grid[8]) GUIEditor_Label[9] = guiCreateLabel(0.0657,0.0648,0.3942,0.1667,"200$",true,GUIEditor_Grid[8]) guiLabelSetColor(GUIEditor_Label[9],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[9],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[9],"left",false) GUIEditor_Button[9] = guiCreateButton(0.3689,0.8758,0.2525,0.0882,"Close",true,GUIEditor_Window[1]) DEAGLE = guiCreateButton(0.0845,0.6944,0.8239,0.2315,"Deagle",true,GUIEditor_Grid[1]) COLT = guiCreateButton(0.1056,0.6944,0.7958,0.2222,"Colt",true,GUIEditor_Grid[4]) MP5 = guiCreateButton(0.0915,0.6944,0.7958,0.2222,"MP5",true,GUIEditor_Grid[5]) UZI = guiCreateButton(0.0915,0.7037,0.8099,0.2222,"Micro Uzi",true,GUIEditor_Grid[2]) M4 = guiCreateButton(0.0986,0.7037,0.8028,0.2222,"M4",true,GUIEditor_Grid[3]) AK47 = guiCreateButton(0.1056,0.6944,0.7958,0.2315,"AK47",true,GUIEditor_Grid[6]) SNIPER = guiCreateButton(0.1095,0.7037,0.7664,0.2315,"Sniper",true,GUIEditor_Grid[7]) RIFLE = guiCreateButton(0.1095,0.7037,0.7737,0.2222,"Rifle",true,GUIEditor_Grid[8]) CLOSE = guiCreateButton(0.3689,0.8758,0.2525,0.0882,"Close",true,GUIEditor_Window[1]) addEventHandler ( "onClientGUIClick", CLOSE, menu_close, false ) addEventHandler ( "onClientGUIClick", DEAGLE, gdeagle, false ) addEventHandler ( "onClientGUIClick", COLT, gColt, false ) addEventHandler ( "onClientGUIClick", UZI, gUzi, false ) addEventHandler ( "onClientGUIClick", MP5, gMp5, false ) addEventHandler ( "onClientGUIClick", M4, gM4, false ) addEventHandler ( "onClientGUIClick", AK47, gAK47, false ) addEventHandler ( "onClientGUIClick", SNIPER, gSniper, false ) addEventHandler ( "onClientGUIClick", RIFLE, gRifle, false ) end end end addEventHandler ( "onClientMarkerHit", getRootElement(), markertarget, MarkerHit, menu_show ) function gdeagle( thePlayer ) local money = getPlayerMoney(thePlayer) if (money > 49) then takePlayerMoney ( 50 ) triggerServerEvent ( "giveweapon", getLocalPlayer(), "24","10" ) else outputChatBox("* You dont have enough money!", thePlayer ) end end function gColt( thePlayer ) local money = getPlayerMoney(thePlayer) if (money > 49) then takePlayerMoney ( 50 ) triggerServerEvent ( "giveweapon", getLocalPlayer(), "22","15" ) else outputChatBox("* You dont have enough money!", thePlayer ) end end function gUzi( thePlayer ) local money = getPlayerMoney(thePlayer) if (money > 99) then takePlayerMoney ( 100 ) triggerServerEvent ( "giveweapon", getLocalPlayer(), "28","50" ) else outputChatBox("* You dont have enough money!", thePlayer ) end end function gMp5( thePlayer ) local money = getPlayerMoney(thePlayer) if (money > 299) then takePlayerMoney ( 300 ) triggerServerEvent ( "giveweapon", getLocalPlayer(), "29","70" ) else outputChatBox("* You dont have enough money!", thePlayer ) end end function gM4( thePlayer ) local money = getPlayerMoney(thePlayer) if (money > 499) then takePlayerMoney ( 500 ) triggerServerEvent ( "giveweapon", getLocalPlayer(), "31","100" ) else outputChatBox("* You dont have enough money!", thePlayer ) end end function gAK47( thePlayer ) local money = getPlayerMoney(thePlayer) if (money > 399) then takePlayerMoney ( 400 ) triggerServerEvent ( "giveweapon", getLocalPlayer(), "30","80" ) else outputChatBox("* You dont have enough money!", thePlayer ) end end function gSniper( thePlayer ) local money = getPlayerMoney(thePlayer) if (money > 399) then takePlayerMoney ( 400 ) triggerServerEvent ( "giveweapon", getLocalPlayer(), "34","30" ) else outputChatBox("* You dont have enough money!", thePlayer ) end end function gRifle( thePlayer ) local money = getPlayerMoney(thePlayer) if (money > 199) then takePlayerMoney ( 200 ) triggerServerEvent ( "giveweapon", getLocalPlayer(), "33","40" ) else outputChatBox("* You dont have enough money!", thePlayer ) end end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) SERVER SIDE --LSAmmu-Nation --------------- createBlip ( 1536.0153808594, -1476.4598388672, 8.5, 6 ) function gw(weapon,ammo) giveWeapon ( source, weapon, ammo ) playSoundFrontEnd ( source, 17 ) end addEvent( "giveweapon", true ) addEventHandler( "giveweapon", getRootElement(), gw ) Greetz, Jesseunit
  19. or i could change OnClientPlayerDamage to: OnClientZombieDamage
  20. Kevin, can you make a safe zone for me its the train station in San fierro ( SF ) that zombies cant attack?
  21. Hi, i am looking for a gate script that opens & closes automaticcaly. like you have skin: 115 you stand in front of the gate and it opens & when you go away it closes I saw the script somewhere but dono where.
×
×
  • Create New...