Jump to content

JasperRieken

Members
  • Posts

    97
  • Joined

  • Last visited

Everything posted by JasperRieken

  1. Due, this function moves you away it doesn't allow the other function to activate that's why i need the timer to work
  2. Because there is another function wich has to be activated first
  3. And how would i fix this function?
  4. So what must i edit because i really cant see it
  5. function warpGarage(player) setPedArmor(player, 100) setElementPosition(player, 1526.19,-1459.14,10.5) setElementHealth(player, 100) outputChatBox("* You have been set to the Garage Crew", player,0,255,255,false) end setTimer(warpGarage, 2000) addEventHandler("onMarkerHit",marker,warpGarage) It doesn't seem to work the timer
  6. This is what i've got neither of the chatbox things work function redirect(player) redirectPlayer(player, "94.23.38.142", "22006") outputChatBox ("*#000000 [ #FF0000"..getPlayerName(player) .." #000000]#FFFF00 Has turning to the Freeroam Server #ff0000!!",getRootElement(), 255, 0, 0, true ) end addCommandHandler("freeroam",redirect) setTimer( function() outputChatBox ("#FFff00~@ #00bbccTyp #000000[ #ff0000/freeroam #000000] #00bbccTo connect to The#000000: #ff0000Freeroam #00bbccServer #ffff00 @~",root, 255, 255, 255, true ) end , 60000, 0) function redirect1(player) redirectPlayer(player, "94.23.38.142", "22003") outputChatBox ("*#000000 [ #FF0000"..getPlayerName(player) .." #000000]#FFFF00 Has turning to the Zombie Server #ff0000!!",getRootElement(), 255, 0, 0, true ) end addCommandHandler("zombie",redirect1) setTimer( function() outputChatBox ("#FFff00~@ #00bbccTyp #000000[ #ff0000/zombie #000000] #00bbccTo connect to The#000000: #ff0000Zombie #00bbccServer #ffff00 @~",root, 255, 255, 255, true ) end , 60000, 0)
  7. it's not the color codes i used this one before copied it
  8. What about this part? 7.function chat() 8. outputChatBox ("#FFff00~@ #00bbccTyp #000000[ #ff0000/zombie #000000] #00bbccTo connect to The#000000: #ff0000Zombie #00bbccServer #ffff00 @~",getRootElement(), 255, 255, 255, true ) 9.end 10.setTimer ( chat, 60000, 0)
  9. Thanks, this one works only the chat thing doesn't both of the outputchatbox don't work function redirect1(player) redirectPlayer(player, "94.23.38.142", "22003") outputChatBox ("*#000000 [ #FF0000"..getPlayerName(source) .." #000000]#FFFF00 Has turning to the Zombie Server #ff0000!!",getRootElement(), 255, 0, 0, true ) end addCommandHandler("zombie",redirect1) function chat() outputChatBox ("#FFff00~@ #00bbccTyp #000000[ #ff0000/zombie #000000] #00bbccTo connect to The#000000: #ff0000Zombie #00bbccServer #ffff00 @~",getRootElement(), 255, 255, 255, true ) end setTimer ( chat, 60000, 0)
  10. function redirect() redirectPlayer(source, "94.23.38.142", "22006") end addCommandHandler("freeroam",redirect) That doesn't work for me
  11. i did that, first it said permission denied. I added it to the acl now it sais bad argument line 4
  12. function redirect() redirectPlayer(source, "94.23.38.142", tonumber(22006)) end addCommandHandler("freeroam",redirect) This doesn't seem to work
  13. function joinHandler(player) setPlayerTeam(player, getTeamFromName("Freeroam Players")) end addEventHandler("onPlayerJoin", getRootElement(), joinHandler) This doesn't work
  14. function warpMexican(player) local theAccount = getPlayerAccount(player) if theAccount then local accountName = getAccountName(theAccount) if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) then setElementPosition(player,2568.22,-1279.25,25.62) end end end setTimer(warpMexican, 10000, 0) addCommandHandler("basewarp",warpMexican) I think it's a easy thing but the timer fails
  15. this is what i've got ServerSide: function addASecond() local serial = getPlayerSerial(player) local oldData = executeSQLSelect( "TimePlayed", "TimePlayed","serial = '" .. serial .. "'") newData = tonumber(oldData[1]["TimePlayed"]) + 1 setElementData(player,"TimePlayed",tonumber(getElementData(player,"TimePlayed"))+1) executeSQLUpdate ( "TimePlayed", "TimePlayed = '"..newData.."'","serial = '" .. serial .. "'") end addEventHandler ( "onClientRender", getRootElement(), addASecond) ClientSide: function Columns() exports.dxscoreboard:scoreboardAddColumn("TimePlayed") setElementData(localPlayer,"TimePlayed",0) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), Columns)
  16. this is what i've got ServerSide: function addASecond() local serial = getPlayerSerial(player) local oldData = executeSQLSelect( "TimePlayed", "TimePlayed","serial = '" .. serial .. "'") newData = tonumber(oldData[1]["TimePlayed"]) + 1 setElementData(player,"TimePlayed",tonumber(getElementData(player,"TimePlayed"))+1) executeSQLUpdate ( "TimePlayed", "TimePlayed = '"..newData.."'","serial = '" .. serial .. "'") end addEventHandler ( "onClientRender", getRootElement(), addASecond) ClientSide: function Columns() exports.dxscoreboard:scoreboardAddColumn("TimePlayed") setElementData(localPlayer,"TimePlayed",0) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), Columns)
  17. well the thing is it just doesn't count
  18. [2011-12-23 20:55:32] SCRIPT ERROR: dxscoreboard/time_Server.lua:8: '' expected near 'end' [2011-12-23 20:55:32] WARNING: Loading script failed: dxscoreboard/time_Server.lua:8: '' expected near 'end'
  19. well i've been trying for three days can you please help me with reading what you will make i learn more because i really can't get it to work man
  20. It doesn't count so it doesn't work also could you make it so after 60 mins it will say 1 hour 2 minutes
×
×
  • Create New...