Jump to content

-.Paradox.-

Members
  • Posts

    1,239
  • Joined

  • Last visited

Everything posted by -.Paradox.-

  1. -.Paradox.-

    Help

    I fixed it myself, thanks dude a lot
  2. -.Paradox.-

    Help

    Thanks a lot it's working, one more thing, when player reconnect he is not muted anymore.
  3. -.Paradox.-

    Help

    Now working, but when i do /task 1 Nikolai 15 it says wrong task id i tried /task 2 and /task 3 too but i get same error
  4. -.Paradox.-

    Help

    Not working, i can't get any errors in debug or output
  5. -.Paradox.-

    Help

    Yes and all of them are not working
  6. -.Paradox.-

    Help

    Not working, when i do /task 1 nikolai nothing happens
  7. -.Paradox.-

    Help

    Like this? function doTask(theClient, taskId, playername) if ( hasObjectPermissionTo ( theClient, "function.banPlayer" ) ) then if taskId then local player = getPlayerFromName(playername or "") if player then if taskId == 1 then setPlayerMuted(player, true) outputChatBox("You have been muted.",player) elseif taskId == 2 then kickPlayer ( player, theClient, "You are kicked because of cheating." ) elseif taskId == 3 then banPlayer ( player, theClient, serial, "You are banned because of hacking/abusing.", 3600 ) else outputChatBox("Wrong Task id.",player) end else outputChatBox("Could not find the player.",player) end else outputChatBox("SYNTAX: /task [id] [victim] ",player) end else outputChatBox ( "TaskID: You don't have enough permissions", theClient ) end And please i don't know how to call timer to unmute the victim, can you show me how and thanks.
  8. Both are server side...
  9. -.Paradox.-

    Help

    Yeah thanks Shall i use addCommandHandler?
  10. -.Paradox.-

    Help

    Hello again, guys i need help to complete my task panel, i need some functions that i could use to make this: when i type /task 1 [playername] [duration] it suppose to mute the player /task 2 [playername] [reason] to kick the player /task 3 [playername] [reason] [duration] to ban the player Thanks for help
  11. It's not a number I'm using some different names, what about Events what i should use?
  12. Hello, i want to made a Class system, i want when player join give him random class from 10 classes, what i could use to do that?
  13. I just set all the players stamina stats to 0
  14. -.Paradox.-

    Help

    messages = {"test1","test2","test3","test4"} textDisplay = textCreateDisplay() textItem = textCreateTextItem(messages[math.random(#messages)], 0.5, 0.5, 2, 255, 255, 255, 255, 3, "center", "center") textDisplayAddText(textDisplay, textItem) setTimer(function() textItemSetText(textItem, messages[math.random(#messages)]) for _, thePlayer in ipairs(getElementsByType("player")) do if not textDisplayIsObserver(textDisplay, thePlayer) then textDisplayAddObserver(textDisplay, thePlayer) end end end, 60000, 0) setTimer( function() destroyElement(textDisplay) destroyElement(textDisplay) end , 5000, 1) Can you fix it please?
  15. I fixed it thanks a lot guys
  16. -.Paradox.-

    Help

    Thanks but it don't disappear, what's the problem?It suppose to disappear after 5seconds Edit: ah yeah sorry i forgot to tell you about that
  17. this suppose to flash it local faded = false if faded then fadeCamera ( thePlayer, true ) else fadeCamera ( thePlayer, false, 1, 250, 0, 0 ) end faded = not faded
  18. -.Paradox.-

    Help

    Hello, can somebody fix to me this? i want it to shoot every player in the game random texts every minute, thanks for help messages = {"test1","test2","test3","test4"} setTimer(function() local randomMsg = math.random(1,#messages) textDisplay = textCreateDisplay ( ) textItem = textCreateTextItem ( messages, 0.5, 0.5, 2, 255, 255, 255, 255, 3, "center", "center" ) textDisplayAddText ( textDisplay, textItem ) for _, thePlayer in ipairs ( getElementsByType ( "player" ) ) do textDisplayAddObserver ( textDisplay, thePlayer ) end end ,60000,1)
  19. I already tried to do that in the first time, but it just crashed my exp script
  20. I can post it here, and i made new ranks images so i wont repeat them, anyway here is the code Server addEventHandler ( 'onPlayerJoin', root, function ( ) setElementData ( source, 'Rankimage', ':Class/Rank/rank_0.png' ); end ); addEventHandler ( 'onPlayerLogin', root, function( _, account ) local LV = tonumber( getAccountData( account, 'LV' ) ); if ( LV and LV > 0 ) then setElementData ( source, 'Rankimage', ':Class/Rank/rank_'..LV..'.png' ); elseif ( LV == 50 )then setElementData ( source, 'Rankimage', ':Class/Rank/rank_50.png' ); else setElementData ( source, 'Rankimage', ':Class/Rank/rank_0.png' ); end end ); Client addEventHandler ( "onClientRender", root, function ( ) local Rankimage = getElementData ( localPlayer, "Rankimage" ) if ( Rankicons and fileExists ( Rankimage ) ) then dxDrawImage(1173, 265, 36, 41, Rankimage, 0, 0, 0, tocolor(255, 255, 255, 255), true) end end )
×
×
  • Create New...