-
Posts
262 -
Joined
-
Last visited
Everything posted by top sniper
-
whats the problem with this code function chat() givePlayerMoney (source,1000) end setTimer ( chat, 80000, 1) addEventHandler ( "onPlayerJoin", getRootElement(), chat )
-
what is the problem with this code ? function redirect() redirectPlayer(source, "178.33.90.184", 20002) end addEventHandler("onPlayerJoin", root, redirect)
-
JiHost.co.uk - where quality is cheaper!
top sniper replied to JiHost.co.uk's topic in Hosting solutions
nice host i will move my servers from ffs to jhost but the disk space limit is very low -
JiHost.co.uk - where quality is cheaper!
top sniper replied to JiHost.co.uk's topic in Hosting solutions
*** -
thanxxx tapl itss work fine ^_*
-
where is the event ?? i don't know
-
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??
-
use this addEventHandler("onClientMouseMove", getRootElement(), function() if source == Button then stopSound("sot.mp3") end end )
-
tell the other members to help you .. but when you post code please use lua code viewer . use this
-
is there any one can help me ? ?
-
i fixed jet i now want the code for super health and super bullets.
-
stop fighting and help me ..
-
loooooooool i find freze sooo With yourself
-
Shut your mouth And get out from this Topic
-
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 )
-
this works fine thanxx .. but Is there code make the scribt can opens only by adminss?
-
where is the proplem???????????????????????
-
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??????????????????????????????
-
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? :@
-
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 ..
-
-- 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?
-
I mean if one pressed the button freezes all
