Jump to content

^Dev-PoinT^

Members
  • Posts

    313
  • Joined

  • Last visited

Everything posted by ^Dev-PoinT^

  1. i fix it with this function msg() outputChatBox(getPlayerName(source).." is Not Protected!",root,255,0,0,true) end addEvent("ShowMsg",true) addEventHandler ("ShowMsg",root,msg) function spawn () outputChatBox(getPlayerName(source).." is Spawn Protected !",root,0,255,0,true) end addEventHandler ( "onPlayerSpawn", getRootElement(), spawn ) its Nice to fix by myself
  2. yes dosnt work but how can i add msg if he Portected say PlayerName.. is Now Spawn Protect!
  3. i mean if tapl spawn say Tapl is Now Protected and if he not Protected say Tapl in not Protected just like this
  4. and how can i add msg Tapl is Now SpawnProtected = true flase = Tapl is not Protected ?
  5. there is problem with this function cancelDamageOnHurt cancelEvent() end dosnt have to be closed?
  6. if the Players Spawn give them anti-Damge For 5 Secned and then outputChatBox(getPlayerName).. is No Not Protected! did you get it?
  7. Hi all i have Make Gamemode but it dont know how to Make Spawn Protect can any one show me how to Make it Thx
  8. Your Code Have errors i Fix it Thx For Help
  9. i Have Made This For My Server See function a () GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(495,274,549,308,"",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,29,531,270,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Main",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(137,18,182,17,"Welcome To GTA:T Server",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(5,49,288,20,"[*] GO To Gun Shop To Buy Guns!",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],0,255,0) guiSetFont(GUIEditor_Label[2],"clear-normal") GUIEditor_Label[3] = guiCreateLabel(5,82,228,17,"[*] Kill Players To Get Some Points !",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[3],0,0,255) guiSetFont(GUIEditor_Label[3],"clear-normal") GUIEditor_Label[4] = guiCreateLabel(6,115,223,16,"[*] Max FPS 50!",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[4],255,255,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Label[5] = guiCreateLabel(279,222,251,17,"This GameMode Made By Dev-PoinT !",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Label[5],"default-bold-small") GUIEditor_Image[1] = guiCreateStaticImage(345,57,185,138,"images/mtalogo.png",false,GUIEditor_Tab[1]) GUIEditor_Label[6] = guiCreateLabel(3,154,326,15,"[*] This GameMode is Copy oF Samp Free Kill /RPG",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[6],255,255,100) guiSetFont(GUIEditor_Label[6],"clear-normal") GUIEditor_Label[7] = guiCreateLabel(5,215,276,22,"[*] Have Fun Play in My Server!",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[7],255,0,0) guiSetFont(GUIEditor_Label[7],"default-bold-small") GUIEditor_Button[1] = guiCreateButton(386,13,131,24,"X",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Tab[2] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) GUIEditor_Label[8] = guiCreateLabel(4,15,508,21,"This is Rules of The Server Please Read it !",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[8],255,255,0) guiSetFont(GUIEditor_Label[8],"clear-normal") GUIEditor_Memo[1] = guiCreateMemo(5,44,522,198,"[*] Dont Ask To Give Admin !\n\n[*] Dont install Weapon.dat\n\n[*] Dont Run any Hack Programs\n\n[*] PlayFair\n\n[*] Special Thx To [H~9] Gang !\n\n[*] This GameMode is Gift For [H~9] [Avira] \n\nHave Fun !",false,GUIEditor_Tab[2]) addEventHandler("onClientGUIClick",GUIEditor_Button[1],function(button) if (button == "left") then destroyElement(GUIEditor_TabPanel[1]) destroyElement(GUIEditor_Window[1]) showCursor(false) end end,false) but can any one Help Make it Visbel when i bind Key F3 and Make it unbisble when i bind it again? sorry for Bad english
  10. Thxx All Solved God I Love Mta Fourms
  11. the windows is not stick to the Panel
  12. Hi all i Make This but i need 2 things Only can i get some help on them ? GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Checkbox = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(400,147,566,436,"GTA:T Help System!",false) GUIEditor_TabPanel[1] = guiCreateTabPanel(409,174,551,400,false) GUIEditor_Tab[1] = guiCreateTab("Main",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(10,13,223,16,"[*] Welcome To GTA:T Server",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],255, 255, 0) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Label[2] = guiCreateLabel(5,38,322,17,"[*] Want Some Weapons ? [Go To Weapons Shop]",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],255, 0 ,0) guiSetFont(GUIEditor_Label[2],"clear-normal") GUIEditor_Label[3] = guiCreateLabel(69,301,5,5,"",false,GUIEditor_Tab[1]) GUIEditor_Image[1] = guiCreateStaticImage(4,249,533,122,"images/logo.png",false,GUIEditor_Tab[1]) GUIEditor_Label[4] = guiCreateLabel(2,78,323,18,"[*] Want Some Points /EXp? [Kill a Player ]",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[4],0,255,0) guiSetFont(GUIEditor_Label[4],"clear-normal") GUIEditor_Label[5] = guiCreateLabel(2,115,280,19,"[*] Want Some Anti-Bgs System ?[Type /Kill]",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[5],0,0,255) guiSetFont(GUIEditor_Label[5],"clear-normal") GUIEditor_Label[6] = guiCreateLabel(1,156,293,18,"[*] This GameMode Made By Dev-PoinT 100%",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Label[6],"clear-normal") GUIEditor_Checkbox[1] = guiCreateCheckBox(6,217,20,13,"",false,false,GUIEditor_Tab[1]) GUIEditor_Label[7] = guiCreateLabel(38,216,232,14,"did You Have Fun ?",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[7],255, 255 ,0) GUIEditor_Button[1] = guiCreateButton(368,8,173,23,"Close",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Button[1],"clear-normal") GUIEditor_Tab[2] = guiCreateTab("Help",GUIEditor_TabPanel[1]) GUIEditor_Memo[1] = guiCreateMemo(8,14,533,353,"GTA:T GameMode v4.0\n\n Features: \n [*] Weapons Shop v4.0!\n [*] Shop With New Features!\n [*] Fixed Some Bugs v3.0\n [*] New Spawn Place!v1.0\n [*] New Marker Entry!\n [*] New die Effects!v1.0\n [*] New Reward System v1.0\n [*] New Respawn System v1.0\n [*] Login / Register / System v2.0\n \n Credits goes to:\n - Castilo : For Help\n - MTASA Fourm Members : For Helping Me\n\n This GameMode By Dev-PoinT\n\nEnjoy!",false,GUIEditor_Tab[2]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) 1= if i press Close its close 2- show the Crouser
  13. Thx Very Very Mutch Wafamde i Fix it By My Self
  14. its my first time Making Markars Please Help me
  15. Hi i have Weapon Shop but the problem in Markers i want it all on Ammo Shop 1 see marker1 = createMarker (295.239,-37.58,1000.515,"cylinder",1.5,0,0,225,100) marker2 = createMarker (295.48,-80.38,1000.51,"cylinder",1.5,0,0,225,100) marker3 = createMarker (290.28,-109.35,1000.51,"cylinder",1.5,0,0,225,100) pedammusf = createPed (179,290.187,-111.514,1001.51) setElementInterior(pedammusf,6) setPedFrozen(pedammusf,true) pedammulv = createPed (179,295.47,-82.53,1001.51) setElementInterior (pedammulv,4) setElementInterior (marker2,4) setElementInterior (marker1,1) setElementInterior (marker3,6) function showGUI (jugador) if (source == marker1) then triggerClientEvent (jugador,"showGUI",getRootElement(),jugador) elseif (source == marker2) then triggerClientEvent (jugador,"showGUI",getRootElement(),jugador) elseif (source == marker3) then triggerClientEvent (jugador,"showGUI",getRootElement(),jugador) end end addEventHandler ("onMarkerHit",getRootElement(),showGUI) 1367.76171875 x -1279.6805419922 y 13.546875 z
  16. ok Thx Very Mutch Aibo thx to every one who helped me Topic Closed
  17. i fix it thank you Capy i shuold learn from the first lua scripting
  18. Hi all i made this but i want killer kill a player got 1 if he kill another player give second start ... 6 starts addEventHandler("onPlayerWasted", getRootElement(), function(ammo, killer, weapon, bodypart) if source then if (bodypart == 4) then outputChatBox("#Outch ! " ..getPlayerName(killer).. " has shot in your ass !", source, 255, 255, 0, true) elseif (bodypart == 9)then outputChatBox("#OWNED ! "..getPlayerName(killer).." has shot in your head !", source, 255, 255, 0, true) else outputChatBox(getPlayerName(killer).."# has kill you ! Now Kill him Noob -_-'", source, 255, 255, 0, true) end end end) addEventHandler("onPlayerWasted", getRootElement(), function(ammo, killer, weapon, bodypart) if killer then local stars = getPlayerWantedLevel(killer) setPlayerWantedLevel(killer, stars+1) else if WantedLevel = 1 then setPlayerWantedLevel(killer, stars+2) else if WantedLevel = 3 then setPlayerWantedLevel(killer, stars+3) outputChatBox(getPlayerName(killer) .. "Has Now 6 Wanted Start Watch out! ", 255, 255, 0, true) end end) sry for bad english
  19. what about use this? function play () welcomeSound = playSound("sounds/theme.mp3") setSoundVolume(welcomeSound, 0.5) end addEventHandler("onClientPlayerJoin", getRootElement(), play)
  20. Now its works Thx Jr10 and SoldSnake
  21. no dont count the Health its always 100 even when i slap my self
  22. Hi all i made this but when Player loss some healths it show like this 80.9848348 90.04009493 20.00040 i want like BaseMode 100 80 60 40 .... function myHealth() exports.scoreboard:scoreboardAddColumn ( "Health" ) local playerHealth = getElementHealth ( getLocalPlayer() ) setElementData ( getLocalPlayer ( ), "Health", playerHealth) end addEventHandler ( "onClientResourceStart", resourceRoot, myHealth)
×
×
  • Create New...