Jump to content

novo

Members
  • Posts

    325
  • Joined

  • Last visited

Everything posted by novo

  1. Hi all. I'm using the discopogo script with timer that i had on mta 1.0, and now on 1.1.* isn't working fine. On 1.0, when i did the command "party" it played music and did disco effects for all the players, but now on 1.1.* isn't the same, just i see the effects and hear the music. Here's the code: addCommandHandler ( "party", function () local sound = playSound("disco_pogo.mp3") setSoundVolume(sound, 0.5) function xxx() for i, car in ipairs( getElementsByType( "vehicle" ) ) do local color = {} color[1] = math.random(0,255) color[2] = math.random(0,255) color[3] = math.random(0,255) color[4] = math.random(0,255) setVehicleColor ( car, color[1], color[2], color[3], color[4] ) setSkyGradient ( math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255) ) setWaterColor(math.random (0,255), math.random (0,255), math.random (0,255)) end end setTimer(xxx,300,46) end) Thanks. PLEASE HELP !!!!!!!!!!
  2. Are you sure that you have the script on "server" side ?
  3. novo

    MySQL script

    Are you sure that you have the module "ml_mysql.dll" installed on your server ? The MYSQL scripts, needs that module to work. Check that. Wiki of MYSQL; https://wiki.multitheftauto.com/wiki/Modules/MTA-MySQL
  4. Hi all. I want to make when you do /login, you must to be registered too on my website. It's like the forum accounts, but on the server too. I don't know how to make it, i have some ideas to make it with SQL. Please help me PD: If somebody wants make it for maps and admin on my server tell me on a reply of this post. Thanks !
  5. 1st. I get the script from a clan called [GRS] 2nd. Sniper, that code isn't the same as yours. I know, there are some code from your script. I'll delete from post. 3rd. Post closed.
  6. WARNING: Bad argument @ 'setElementData' [Expected element at argument 1, got nill]
  7. What text? All the command code ? Please explain me, i'm noob yea.
  8. I want add the timer to those commands; -------------------------- -- PUSH CMD start -- -------------------------- function pushHisFreakingAss (playerSource, command, arg1) local account = getPlayerAccount( playerSource ) if isObjectInACLGroup("user." ..getAccountName(account), aclGetGroup("VIP")) == false then outputChatBox ("You aren't VIP. You can't use that command.", playerSource, 255, 12, 15, false) else if (arg1 == nil ) or ( arg1 == false ) then outputChatBox ("You must to insert a valid player name.", playerSource, 255, 12, 15, false) else if isObjectInACLGroup("user." ..getAccountName(account), aclGetGroup("VIP")) == true then local playerElement = getPlayerFromName(arg1) if playerElement then local name = getPlayerName(playerElement) local sourceName = getPlayerName(playerElement) local theVehicle = getPedOccupiedVehicle(playerElement) local hisCar = getPedOccupiedVehicle(playerElement) local x, y, z = getElementVelocity ( hisCar ) setElementVelocity ( hisCar, x , y, z + 0.3 ) outputChatBox ("#0082D8" .. getPlayerName(playerElement) .." pushes "..getPlayerName(playerSource).."!", getRootElement(), 255, 255, 255, true) end end end end end addCommandHandler("push", pushHisFreakingAss) -------------------------- -- PUSH CMD end -- -------------------------- -------------------------- -- FIX CMD start -- -------------------------- function fixx ( playerSource, command ) local account = getPlayerAccount( playerSource ) if isObjectInACLGroup("user." ..getAccountName(account), aclGetGroup("VIP")) == false then outputChatBox ("You aren't VIP. You can't use that command.", playerSource, 255, 12, 15, false) else if isObjectInACLGroup("user." ..getAccountName(account), aclGetGroup("VIP")) == true then outputChatBox ("#0082D8" .. getPlayerName(playerSource) .." fixes his self !", getRootElement(), 255, 255, 255, true) if isPedInVehicle(playerSource) then local vehicle = getPedOccupiedVehicle(playerSource) fixVehicle(vehicle) end end end end addCommandHandler ( "fix", fixx ) -------------------------- -- FIX CMD end -- -------------------------- -------------------------- -- NOS CMD start -- -------------------------- function nitro1 ( playerSource, command ) local account = getPlayerAccount( playerSource ) if isObjectInACLGroup("user." ..getAccountName(account), aclGetGroup("VIP")) == false then outputChatBox ("You aren't VIP. You can't use that command.", playerSource, 255, 12, 15, false) else if isObjectInACLGroup("user." ..getAccountName(account), aclGetGroup("VIP")) == true then outputChatBox ("#0082D8" .. getPlayerName(playerSource) .." gives nos to his self !", getRootElement(), 255, 255, 255, true) if isPedInVehicle(playerSource) then local vehicle = getPedOccupiedVehicle(playerSource) addVehicleUpgrade(vehicle,1010) end end end end addCommandHandler ( "nos", nitro1 ) -------------------------- -- NOS CMD end -- -------------------------- -------------------------- -- FLIP CMD start -- -------------------------- function flip () end -------------------------- -- FLIP CMD end -- -------------------------- Where to add it ?
  9. The people who are in a ACL group, i made a post for it, can't spam with the command, like if i write now /push, i still wait 60 seconds for use it again. I wanna it. Ty.
  10. I have now a problem, i used the code what you gave to me, but "playerElement" is a nill value. Then i'm using now this code, i added some more commands too; -------------------------- -- PUSH CMD start -- -------------------------- function pushHisFreakingAss (playerSource, command, arg1) if isObjectInACLGroup("user." ..getAccountName(account), aclGetGroup("VIP")) == false then outputChatBox ("You aren't VIP. You can't use that command.", playerSource, 255, 12, 15, false) else if (arg1 == nil ) or ( arg1 == false ) then outputChatBox ("You must to insert a valid player name.", playerSource, 255, 12, 15, false) else if isObjectInACLGroup("user." ..getAccountName(account), aclGetGroup("VIP")) == true then local playerElement = getPlayerFromName(arg1) if playerElement then local name = getPlayerName(playerElement) local sourceName = getPlayerName(playerElement) local theVehicle = getPedOccupiedVehicle(playerElement) local hisCar = getPedOccupiedVehicle(playerElement) local x, y, z = getElementVelocity ( hisCar ) setElementVelocity ( hisCar, x , y, z + 0.3 ) outputChatBox ("#0082D8" .. getPlayerName(playerElement) .." pushes "..getPlayerName(playerSource).."!", getRootElement(), 255, 255, 255, true) end end end end end addCommandHandler("push", pushHisFreakingAss) -------------------------- -- PUSH CMD end -- -------------------------- -------------------------- -- FIX CMD start -- -------------------------- function fixx ( playerSource, command ) if isObjectInACLGroup("user." ..getAccountName(account), aclGetGroup("VIP")) == false then outputChatBox ("You aren't VIP. You can't use that command.", playerSource, 255, 12, 15, false) else if isObjectInACLGroup("user." ..getAccountName(account), aclGetGroup("VIP")) == false then outputChatBox ("#0082D8" .. getPlayerName(playerElement) .." has fixed his self !", getRootElement(), 255, 255, 255, true) player=getLocalPlayer(playerSource) if isPedInVehicle(player) then local vehicle=getPedOccupiedVehicle(player) fixVehicle(vehicle) end end end end addCommandHandler ( "fix", fixx ) -------------------------- -- FIX CMD end -- -------------------------- -------------------------- -- NOS CMD start -- -------------------------- function nitro1 ( playerSource, command ) if isObjectInACLGroup("user." ..getAccountName(account), aclGetGroup("VIP")) == false then outputChatBox ("You aren't VIP. You can't use that command.", playerSource, 255, 12, 15, false) else if isObjectInACLGroup("user." ..getAccountName(account), aclGetGroup("VIP")) == false then outputChatBox ("#0082D8" .. getPlayerName(playerElement) .." gives nos to his self !", getRootElement(), 255, 255, 255, true) player=getLocalPlayer(playerSource) if isPedInVehicle(player) then local vehicle=getPedOccupiedVehicle(player) addVehicleUpgrade(vehicle,1010) end end end end addCommandHandler ( "nos", nitro1 ) -------------------------- -- NOS CMD end -- -------------------------- -------------------------- -- WARP CMD start -- -------------------------- function warpuj2(command,nazwa) if isObjectInACLGroup("user." ..getAccountName(account), aclGetGroup("VIP")) == false then outputChatBox ("You aren't VIP. You can't use that command.", playerSource, 255, 12, 15, false) else if isObjectInACLGroup("user." ..getAccountName(account), aclGetGroup("VIP")) == false then outputChatBox ("#0082D8" .. getPlayerName(playerElement) .." warps to "..getPlayerName(playerSource).."!", getRootElement(), 255, 255, 255, true) nazwa=tostring(nazwa) if (nazwa) then player2=getPlayerFromName(nazwa) vehicle=getPedOccupiedVehicle(player2) x,y,z=getElementPosition(vehicle) vehicle2=getPedOccupiedVehicle(player) setElementPosition(vehicle2,x,y,z+4) end end end end addCommandHandler("warp",warpuj2) -------------------------- -- WARP CMD end -- -------------------------- Plz help
  11. Hi all. I want to add to a command, restriction with time. Like if you do idk... push, you can't use it again within 60 seconds. I need help with that. Bye and ty.
  12. Aaaah sometimes i fail writting in default notes block in windows, ty anyway. PD: Noob error ^^ Bye.
  13. Can i know what did you changed ? I wanna learn ^^
  14. Ty Kenix, it's nice to have you as a Multi Lingual Moderator ;P Bye.
  15. Hi all. I need to make commands what just can use the people of a specific acl group. I tryed to make the code, but idk what is wrong; function pushHisFreakingAss (playerSource, command, arg1) if (arg1 == nil ) or arg1 == false then outputChatBox ("You must to insert a valid player name.", playerSource, 255, 12, 15, false) else if if isObjectInACLGroup("user." .. playerElement, aclGetGroup("VIP")) == false then outputChatBox ("You aren't VIP. You can't use that command.", playerSource, 255, 12, 15, false) else if isObjectInACLGroup("user." .. playerElement, aclGetGroup("VIP")) == true then local playerElement = getPlayerFromName(arg1) if playerElement then local name = getPlayerName(playerElement) local sourceName = getPlayerName(playerElement) local theVehicle = getPedOccupiedVehicle(playerElement) local hisCar = getPedOccupiedVehicle(playerElement) local x, y, z = getElementVelocity ( hisCar ) setElementVelocity ( hisCar, x , y, z + 0.3 ) outputChatBox ("#0082D8" .. getPlayerName(playerElement) .." pushes "..getPlayerName(playerSource).."!", getRootElement(), 255, 255, 255, true) end end end addCommandHandler("push", pushHisFreakingAss) I'ts the command for "push" Please help me. ¡Bye!
  16. I made it client-side, but now the songs start and start and start, not just 1 song, there are a lot of song playing at same time lol ! Plz help ? D:
  17. Now i need help with "PlaySound" it says attempts to call global (a nil value) plz help ?
  18. Hi, I tryed to make a disco time with timer, i want to see efects and listen the song for just ** seconds. I tryed to make it, but idk what is wrong. Here is my code: addCommandHandler ( "party", setTimer(300,46), function () local sound = playSound("disco_pogo.mp3") setSoundVolume(sound, 0.5) for i, car in ipairs( getElementsByType( "vehicle" ) ) do local color = {} color[1] = math.random(0,255) color[2] = math.random(0,255) color[3] = math.random(0,255) color[4] = math.random(0,255) setVehicleColor ( car, color[1], color[2], color[3], color[4] ) setSkyGradient ( math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255) ) setWaterColor(math.random (0,255), math.random (0,255), math.random (0,255)) setTimer(yo,300,46) end end end ) Plz help !
  19. novo

    IRC Channel Help !

    ¿What? I just wanna make an IRC Channel to my server plz help me
  20. Thank you but .. I have problems with doing that idk what triggers to edit and what to edit of them plz explain me plz plz plz plz
  21. Can you help me ? Where to change the codes or something ? plz
×
×
  • Create New...