-
Posts
296 -
Joined
-
Last visited
Everything posted by TheIceman1
-
I dont really know what you want,but try this: function KickDM(attacker) if ( attacker ) then if ( getElementType ( attacker ) == "player" ) then kickPlayer(attacker,"You have been kicked for killing another player") outputChatBox(getPlayerName(attacker).."have been kicked for DM!", getRootElement, 250, 60, 60, true) end end addEventHandler("onPlayerWasted",getRootElement,KickDM)
-
Radim clan system pa trebam pomoč,ovako,ako player napravi caln "SWAT",nitko nemre napravit taj clan dok ga leader neuzbriše,jel se to može naprvit sa getElementData?
-
Its full code: function startbank () setElementData ( source, "bankrobber", "true" ) exports ["guimessages"] : outputServer ( source, "You start bank rob!" , 255, 255, 0) exports ["guimessages"] : outputServer ( source, "You must stay in bank 5 minutes to get money!" , 255, 255, 0) setElementInterior ( source, 3, 387.6708, 173.8050, 1008.3893 ) setPlayerWantedLevel ( source, 6 ) bankTimer = setTimer ( function(player) givePlayerMoney ( player, 50000 ) removeElementData( player, "bankrobber" ) exports ["guimessages"] : outputServer ( player, "You successfully robbed the bank and get $50000!" , 255, 255, 0) end ,10000,1) end addEvent ( "start", true ) addEventHandler ( "start", root, startbank )
-
Nothing happens bankTimer = setTimer ( function(player) givePlayerMoney ( player, 50000 ) removeElementData( player, "bankrobber" ) exports ["guimessages"] : outputServer ( player, "You succesfully robbed the bank and get $50000!" , 255, 255, 0) end,10000,1)
-
Why i didnt get money and message?No errors. Server side: bankTimer = setTimer ( function() givePlayerMoney ( source, 50000 ) removeElementData( source, "bankrobber" ) exports ["guimessages"] : outputServer ( source, "You succesfully robbed the bank and get $50000!" , 255, 255, 0) end ,10000, 1 )
-
function createclan() setAccountData ( acc, "Clan", getElementData ( source, "clan" ) ) end addEvent ( "createclan", true ) addEventHandler ( "createclan", root, createclan )
-
No,i trying to put all made clans on grid list.
-
Here: function createclan() local clan = guiGetText ( GUIEditor_Edit[1] ) setElementData ( localPlayer, "clan", clan ) triggerServerEvent ( "createclan",localPlayer) exports ["guimessages"] : outputClient ( "You create "..clan.." clan!", 255, 255, 0 ) end end addEventHandler ( "onClientGUIClick", GUIEditor_Button[2], createclan )
-
This doesnt work.No errors function setclans () local clan = getElementData ( localPlayer, "clan" ) for _, playerclan in ipairs (clan) do local rowc = guiGridListAddRow ( GUIEditor_Grid[3] ) guiGridListSetItemText ( GUIEditor_Grid[4], rowc, GUIEditor_Column[5], playerclan, false, false ) end end addCommandHandler ( "clans", setclans )
-
How i can put all clans(data "clan") to grid list?
-
Why this dont set "None" on scoreboard if i dont have clan?No errors. exports [ "scoreboard" ]:addScoreboardColumn ( "Clan", 3 ) function updatePlayerClan ( ) for index, players in ipairs ( getElementsByType "player" ) do if ( getElementData ( players, "clan" ) == "false" ) then setElementData(source, "Clan", "None") else setElementData ( players, "Clan", getElementData ( players, "clan" ) ) end end end setTimer ( updatePlayerClan, 2500, 0 )
-
There was two edits with name GUIEditor_Edit[4],but i have new problem Why this dont set element data?Error "setElementData"[Expected bool at argument 4, got string"59"] local r = guiGetText ( GUIEditor_Edit[2] ) local g = guiGetText ( GUIEditor_Edit[3] ) local b = guiGetText ( GUIEditor_Edit[4] ) setElementData ( localPlayer, "color", r, g, b )
-
Solved,i found problem!
-
GUIEditor_Edit[4] = guiCreateEdit(139,90,49,34,"",false,GUIEditor_Window[1])
-
Try this: function doafk (commandname) setTimer ( function() outputChatBox("You will be AFK in 5 seconds",255,0,0, false ) setElementAlpha(getLocalPlayer(),140) setElementFrozen ( localPlayer, true ) end, 5000, 1 ) end addCommandHandler("afk", doafk)
