Jump to content

TheIceman1

Members
  • Posts

    296
  • Joined

  • Last visited

Everything posted by TheIceman1

  1. 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)
  2. TheIceman1

    Pitanje

    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?
  3. Fixed,thanks!
  4. I dont understand...
  5. Nothing
  6. 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 )
  7. 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)
  8. 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 )
  9. I dont understand.
  10. function createclan() setAccountData ( acc, "Clan", getElementData ( source, "clan" ) ) end addEvent ( "createclan", true ) addEventHandler ( "createclan", root, createclan )
  11. No,i trying to put all made clans on grid list.
  12. 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 )
  13. yes?
  14. Nothing happens!
  15. 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 )
  16. TheIceman1

    Question

    How i can put all clans(data "clan") to grid list?
  17. Working,thanks!
  18. Nothing happens.
  19. 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 )
  20. Thanks!
  21. 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 )
  22. Solved,i found problem!
  23. GUIEditor_Edit[4] = guiCreateEdit(139,90,49,34,"",false,GUIEditor_Window[1])
  24. Yes
  25. 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)
×
×
  • Create New...