Jump to content

COOKIE2

Members
  • Posts

    72
  • Joined

  • Last visited

Everything posted by COOKIE2

  1. COOKIE2

    need help

    xbost ty for all youre help i try to ask less question
  2. COOKIE2

    need help

    i need help at roll5-6 the rest is just for now addCommandHandler("roll", function(player,comd) local roll = math.random(1,6) if roll == 1 then outputChatBox("u won", player) -- no player was specified, message'd be shown to all elseif roll == 2 then outputChatBox("u lost blablabla", player) elseif roll == 3 then setPlayerMuted(player, true) -- as i recall, "source" is not passed by command handler, use "player", but i may be wrong setTimer(setPlayerMuted, 30000, 1, player, false) -- what's more, setTimer parameters were messed up, 30000 executions with 1ms interval. elseif roll == 4 then outputChatBox("u win", player) elseif roll == 5 then givePlayerMoney(source,3500) elseif roll == 6 then takePlayerMoney(source,4500) end end )
  3. COOKIE2

    gui???

    hey i found a script that allows you to buy nitro and repair with /buy nitro /buy repair command and i made a gui with 2 buttons 1 repair 2 nitro how do i set that if i click 1 that i buy a repair? price = {} price.nitro = 5000 price.repair = 5000 addCommandHandler("buy", function (player, command, item) if item == "nitro" then if getPlayerMoney(player) > price.nitro then local vehicle = getPedOccupiedVehicle(player) if vehicle then addVehicleUpgrade(vehicle, 1010) takePlayerMoney(player, price.nitro) outputChatBox("You've bought a nitro", player, 0, 222, 0, true) else outputChatBox("You are not in a vehicle", player, 222, 0, 0, true) end else outputChatBox("Not enough cash, nitro costs $"..price.nitro, player, 222, 0, 0, true) end elseif item == "repair" then if getPlayerMoney(player) > price.repair then local vehicle = getPedOccupiedVehicle(player) if vehicle then fixVehicle(vehicle) takePlayerMoney(player, price.repair) outputChatBox("You've bought a repair", player, 0, 222, 0, true) else outputChatBox("You are not in a vehicle", player, 222, 0, 0, true) end else outputChatBox("Not enough cash, repair costs $"..price.repair, player, 222, 0, 0, true) end end end )
  4. no its for the first who get to the hunter:P
  5. 1 that roll thing isnt stolen?? if someone post it on a site u can use it look what youre saying u must be from finland
  6. i dont get it can u post it here please
  7. omfg ty im gonna steal a bmw but idk where u live somewere in carton box?
  8. doesnt work? addEvent("onPlayerFinish",true) addEventHandler("onPlayerFinish",getRootElement(), function (rank,finishtime) if rank == 1 then givePlayerMoney(source,3500) end end )
  9. this doesnt work (i open notepad and paste in it then i do save as then i type roll.lua) function roll(player,comd) local roll = math.random(1,4) if roll == 1 then outputChatBox("u won blablabla") elseif roll == 2 then outputChatBox("u lost blablabla") elseif roll == 3 then setPlayerMuted(source,true); setTimer(function() setPlayerMuted(source,false) end,1,30000) elseif roll == 4 then outputChatBox("u win blablabla") addCommandHandler("roll",roll) end end
  10. is it possible to set vehicle pickup example hunter for just 1 person at 1.0.3 dark
  11. uhm ok... how do i say this nice you all cant read?? not mine not caring about what u say after this post and IM TRYING TO HELP THIS GUY stop argueing and help him
  12. this is mine but not made by me!! a admin from my server gavve me it i thought i was a little helpful by posting it here
  13. calm down 1: where did i wrote it was mine?? 2: i told you not mine 3: ahahah ur wrong
  14. it doesnt work for me http://rapidshare.com/files/378590061/roll.zip.htm can someone look what i did wrong please
  15. lol cuz u care so damn much i tell it a admin of my server gave me source happy now
  16. well im not sure if it works but local checkTime = 20 -- in seconds local afk_timer = nil local keyAlreadyHit = false local function checkAFK() afk_timer = nil if not keyAlreadyHit then triggerServerEvent("onPlayerAfk", getLocalPlayer()) else afk_timer = setTimer(checkAFK, checkTime * 1000, 1) end keyAlreadyHit = false end addEvent("afkStartTimer", true) addEventHandler("afkStartTimer", getRootElement(), function() if afk_timer then killTimer(afk_timer) afk_timer = nil end afk_timer = setTimer(checkAFK, checkTime * 1000, 1) keyAlreadyHit = false end) addEvent("afkStopTimer", true) addEventHandler("afkStopTimer", getRootElement(), function() if afk_timer then killTimer(afk_timer) afk_timer = nil end keyAlreadyHit = false end) local function keyHit() keyAlreadyHit = true end for k, v in pairs{"backspace","tab","lshift","rshift","lctrl","rctrl","lalt","ralt","pause","capslock","enter","space","pgup","pgdn","end","home","arrow_l","arrow_u","arrow_r","arrow_d","insert","delete","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","num_0","num_1","num_2","num_3","num_4","num_5","num_6","num_7","num_8","num_9","num_mul","num_add","num_sep","num_sub","num_dec","num_div","F1","F2","F3","F4","F5","F6","F7","F9","F10","F11","F12","scroll",";","=",",","-",".","/","'","[","\\","]"} do bindKey(v, "down", keyHit) bindKey(v, "up", keyHit) end
  17. word perfect i just added it myself
  18. COOKIE2

    garage doors

    hey i made a skyhouse and with entrance i did 3 garagedoors 1=cars 2=karts 3=entrance house how do i open the garages and how do i open them with a command example /opendoor didnt work : ( (i tried running as client and server) is ok? open=false door=getElementById("17951") addCommandHandler("opendoor",function() if open then moveObject(door,2,2235.5236816406,-1849.1158447266,0.71337890625) else moveObject(door,2,2236.2734375,-1849.0936279297,2.4133789539337) end moved=not moved end)
  19. hey i made a exact copy of the oldgarage and putted it at los santos but how do i open the garage door? can someone put here a line of the script that aloows you to open it
  20. how do u create spawnpoints in play gamemode??
  21. COOKIE2

    tag?

    first of all its not someone elses its mine ok i think its solver now
×
×
  • Create New...