Jump to content

#Paper

Members
  • Posts

    568
  • Joined

  • Last visited

Everything posted by #Paper

  1. #Paper

    Admin panel

    in console this errors was showed and admin panel don't work...
  2. This is MY afk killer, but don't work and no error is showed: Server-Side: local MaxAfkTime = 10 local AfkKickReason = "Afk for "..MaxAfkTime .." Seconds" local afkKeys = {"arrow_l", "arrow_u", "arrow_r", "arrow_d", "w", "s", "d", "a" } local afkTimer = nil local afkTime = 25000 -- 25 Seconds function onAfkEvent(afkTime) if client then setElementData(client , "idletime", tonumber(getElementData(client , "idletime")+tonumber(afkTime))) afkTime = AfkTime/1000 outputChatBox (getPlayerName(client).." is "..afkTime .." Seconds Afk!", getRootElement()) if afkTime > MaxAfkTime then setElementData(client, "idletime", 0) kickPed ( client, "Afk-Script", AfkKickReason ) end end end addEvent( "onAfkEvent", true ) addEventHandler( "onAfkEvent", getRootElement(), onAfkEvent) function pushKey( key, state ) if ( state == "down" ) then if isTimer(afkTime) then killTimer(afkTime) end end end function AfkKeys() setElementData(getLocalPlayer(), "idletime", 0) for key,keyNames in pairs(afkKeys) do bindKey(keynames, "both", pushKey) end end addEventHandler ( "onPlayerJoin", getRootElement(), AfkKeys) Client-Side: local afkTime = 25000 local afkKeys = {"arrow_l", "arrow_u", "arrow_r", "arrow_d", "w", "s", "d", "a" } local img = guiCreateStaticImage(378,283,402,163,"images/warning.png",false) function showimg( ) if afkTime then guiCreateStaticImage(378,283,402,163,"images/warning.png",false) end if afkKeys then guiSetVisible ( img , false ) end end
  3. #Paper

    How to...

    How can I reduce the options of votemanager to 2? Play Again & Random
  4. I've tried to make HunterTopTimes: addEvent('onPlayerFinish') addEventHandler('onPlayerFinish', g_Root, function(rank, time) if g_SToptimesManager then g_SToptimesManager:playerFinished( source, time) end end ) to: addEvent('onPlayerPickUpRacePickup') addEventHandler('onPlayerPickUpRacePickup', g_Root, function(pickupID, pickupType, vehicleModel, rank, time) if vehicleModel == 425 then if g_SToptimesManager then g_SToptimesManager:playerFinished( source, time) end end end ) What's the problem? I should modify another lua default script?
  5. #Paper

    MapRatings

    Exists an event to intercept when a player vote a map (/rate 1-10)? Is there a function like "getMapRatings" or something?
  6. #Paper

    NameTags

    ty varez! work! YOU ARE PRO!
  7. #Paper

    NameTags

    can you post the modified string? pls?
  8. #Paper

    NameTags

    this is the script for make the tag name in race gm, how i can generate the tagname's color random? local r,g,b = 255,127,36 dxDrawText ( getPlayerName(player), sx, sy - offset, sx, sy - offset, tocolor(r,g,b,textalpha), textscale*NAMETAG_TEXTSIZE,"default", "center", "bottom", false, false, false )
  9. #Paper

    ResPath

    yes but whitout C:\Program Files\...\
  10. I disabled the votemanager, says "... has started a new vote" appears, but you can not vote
  11. #Paper

    Race GM

    Why in my race gamemode the names above the players are not showing? How can I add? thanks in advance! ^ _ ^
  12. #Paper

    ResPath

    using this func i don't get the res name? i want to get res path
  13. #Paper

    ResPath

    How i can get the current map res path? ty
  14. ok, it isn't my, i've saw in wiki to try to fix, but don't work... <_< Can you help me one times?
  15. what's wrong in this other script? (-.-") local info = mapInfo.modename function hunterAlert(mapInfo, pickupID, pickupType, vehicleModel) if info == "Destruction derby" then if pickupType == "vehiclechange" then if vehicleModel == 425 then outputChatBox( "#FF0000WARNING: "..getPlayerName(source).." #FF0000has got hunter!", getRootElement(), 25, 125, 225, true ) end end end end addEventHandler("onPlayerPickUpRacePickup",getRootElement(),hunterAlert))
  16. i should set this sript in server-side?
  17. What's wrong in this script? local localPlayerName = getPlayerName(getLocalPlayer()) function afk () outputChatBox ( "" ..localPlayerName.. "#9933ffin now Away From Keyboard!", true ) end addCommandHandler("afk", afk)
  18. How i can make a command: /thx And in chatbox out this: AcitanoX say thanks to
  19. The race starter pack show this error: It's normaly?
  20. i would like to made all res from web server (altervista domain) but give me error
  21. yup, you only need to do that when runnig server from home yes, but the problem... idk to solve! T.T
×
×
  • Create New...