Jump to content

top sniper

Members
  • Posts

    262
  • Joined

  • Last visited

Everything posted by top sniper

  1. whats the problem with this code function chat() givePlayerMoney (source,1000) end setTimer ( chat, 80000, 1) addEventHandler ( "onPlayerJoin", getRootElement(), chat )
  2. what is the problem with this code ? function redirect() redirectPlayer(source, "178.33.90.184", 20002) end addEventHandler("onPlayerJoin", root, redirect)
  3. nice host i will move my servers from ffs to jhost but the disk space limit is very low
  4. thanxxx tapl itss work fine ^_*
  5. where is the event ?? i don't know
  6. top sniper

    fix . .

    i want to make super health. . server side addEvent("superHealth",true) addEventHandler("superHealth",root, function () if (getPlayerMoney(source) >= 3000) then setElementHealth ( source, 200 ) takePlayerMoney(source, 3000) outputChatBox("You Have Bought super Health !",source,255,255,0) else outputChatBox("You don't have $3,000 to buy super Health",source,255,0,0) end end) setElementHealth ( source, 200 ) when player buy super his health set 100 ! why??
  7. use this addEventHandler("onClientMouseMove", getRootElement(), function() if source == Button then stopSound("sot.mp3") end end )
  8. tell the other members to help you .. but when you post code please use lua code viewer . use this
  9. is there any one can help me ? ?
  10. i fixed jet i now want the code for super health and super bullets.
  11. loooooooool i find freze sooo With yourself
  12. Shut your mouth And get out from this Topic
  13. hi i made a shop panel but i whant help with 3 codes super bullets (with timer) freeze (with timer) super health and what the proplem with this code jetpack server addEvent("buyJetPack",true) addEventHandler("buyJetPack",root, function () if ( getPlayerMoney (source) >= 1400 ) then takePlayerMoney(source, 1400) givePedJetPack(source) outputChatBox("You Have Bought (JetPack) !", source, 255, 255, 0, true) else outputChatBox("You don't have $1,400 to buy JetPack !", source, 255, 0, 0, true) end end )
  14. this works fine thanxx .. but Is there code make the scribt can opens only by adminss?
  15. where is the proplem???????????????????????
  16. server side addEvent("freezeAllPlayers",true) addEventHandler("freezeAllPlayers",root, function () for index, player in pairs(getElementsByType("player")) do if (player ~= source) then setElementFrozen(player, true) end end outputChatBox(getPlayerName(source) .." has frozen everyone.",getRootElement(),255,0,0) end client side outputChatBox(".:Azan Time by ===[TopSniper]===| #FFFF1APress F3 To Open it :.",0,255,0,true) --- Windows --- zWin = guiCreateWindow(200,200,700,700,"Azan",false) qZwin = guiCreateButton(200,400,100,100,"وقت الاذان",false,zWin) function onresourceStart () bindKey ("F3", "down", showWindow) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onresourceStart) -- Bind -- function showWindow () getVisible = guiGetVisible (zWin) if (getVisible == true) then guiSetVisible (zWin, false) showCursor (false) guiSetInputEnabled(false) end if (getVisible == false) then guiSetVisible (zWin, true) showCursor (true) guiSetInputEnabled(true) end end -- Bind -- --- On Click --- function onClick (button, state, absoluteX, absoluteY) outputChatBox("*** حاان وقت الاذاان قم الى الصلااة***",255,255,0) outputChatBox("*** وقت الصلاة تم تجميد الاعبين 10 دقائق admin freeze all 10 min***",255,255,0) playSound("a.mp3") myButton = guiCreateButton(args) -- You must supply the button arguments. addEventHandler("onClientGUIClick",myButton, function () triggerServerEvent("freezeAllPlayers",localPlayer) end) end addEventHandler ("onClientGUIClick", getRootElement(), onClick) where is the proplem??????????????????????????????
  17. outputChatBox(".:Show Azan by ===[TopSniper]===| #FFFF1APress F3 To Open it :.",0,255,0,true) --- Windows --- local myWindow = guiCreateWindow ( 0, 0, 2, 2, "Information", true ) qZwin = guiCreateButton(200,400,100,100,"وقت الاذان",false,zWin) function onresourceStart () bindKey ("F3", "down", showWindow) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onresourceStart) -- Bind -- function showWindow () getVisible = guiGetVisible (zWin) if (getVisible == true) then guiSetVisible (zWin, false) showCursor (false) guiSetInputEnabled(false) end if (getVisible == false) then guiSetVisible (zWin, true) showCursor (true) guiSetInputEnabled(true) end end -- Bind -- --- On Click --- function onClick (button, state, absoluteX, absoluteY) outputChatBox("*** حاان وقت الاذاان قم الى الصلااة***",255,255,0) outputChatBox("*** وقت الصلاة تم تجميد الاعبين 10 دقائق admin freeze all 10 min***",255,255,0) playSound("a.mp3") end addEventHandler ("onClientGUIClick", getRootElement(), onClick) why when i add myButton = guiCreateButton(args) -- You must supply the button arguments. addEventHandler("onClientGUIClick",myButton, function () triggerServerEvent("freezeAllPlayers",localPlayer) end, false) its dont work? :@
  18. i dont whant to use it for a shop .. i whant to made a q panel for admins .. and i whant freeze all function on it only ..
  19. -- Bind -- --- On Click --- function onClick (button, state, absoluteX, absoluteY) myButton = guiCreateButton(args) -- You must supply the button arguments. addEventHandler("onClientGUIClick",myButton, function () triggerServerEvent("freezeAllPlayers",localPlayer) end, false) like this?
  20. I mean if one pressed the button freezes all
×
×
  • Create New...