Jump to content

S3Nn4oXx

Members
  • Posts

    69
  • Joined

  • Last visited

S3Nn4oXx's Achievements

Snitch

Snitch (10/54)

0

Reputation

  1. S3Nn4oXx

    Help

    Hey guys, I made a little script, I forgot a lot of things when I was Inactive I want when I press on a button, I've to wait 5 seconds, and look at this problem, when I press Z - binded the menu doesn't appear.. I know I've to do something with 'onClientRender' function menu() faggot = guiCreateButton(759, 440, 76, 36, "", false) guiSetAlpha(faggot, 0.00) addEventHandler ( "onClientGUIClick", faggot, faggots, false ) fuckyou = guiCreateButton(544, 441, 76, 36, "", false) guiSetAlpha(fuckyou, 0.00) addEventHandler ( "onClientGUIClick", fuckyou, fuckyous, false ) getnoscope = guiCreateButton(759, 326, 76, 36, "", false) guiSetAlpha(getnoscope, 0.00) addEventHandler ( "onClientGUIClick", getnoscope, noscopes, false ) gay = guiCreateButton(544, 323, 76, 36, "", false) guiSetAlpha(gay, 0.00) addEventHandler ( "onClientGUIClick", gay, gays, false ) dxDrawRectangle(853, 250, 0, 185, tocolor(255, 255, 255, 255), false) dxDrawLine(491 - 1, 227 - 1, 491 - 1, 542, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(875, 227 - 1, 491 - 1, 227 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(491 - 1, 542, 875, 542, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(875, 542, 875, 227 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawRectangle(491, 227, 384, 315, tocolor(27, 27, 27, 202), false) dxDrawLine(491 - 1, 227 - 1, 491 - 1, 271, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(875, 227 - 1, 491 - 1, 227 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(491 - 1, 271, 875, 271, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(875, 271, 875, 227 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawRectangle(491, 227, 384, 44, tocolor(31, 171, 0, 202), false) dxDrawText("SpRoXx's Sound System", 591, 237, 975, 279, tocolor(255, 255, 255, 255), 1.50, "default", "left", "top", false, false, false, false, false) dxDrawLine(544 - 1, 324 - 1, 544 - 1, 359, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(618, 324 - 1, 544 - 1, 324 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(544 - 1, 359, 618, 359, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(618, 359, 618, 324 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawRectangle(544, 324, 74, 35, tocolor(31, 171, 0, 202), false) dxDrawText("Gay", 568, 331, 644, 351, tocolor(255, 255, 255, 255), 1.20, "default", "left", "top", false, false, false, false, false) dxDrawLine(759 - 1, 327 - 1, 759 - 1, 362, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(833, 327 - 1, 759 - 1, 327 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(759 - 1, 362, 833, 362, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(833, 362, 833, 327 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawRectangle(759, 327, 74, 35, tocolor(31, 171, 0, 202), false) dxDrawText("NoScope", 769, 334, 845, 354, tocolor(255, 255, 255, 255), 1.20, "default", "left", "top", false, false, false, false, false) dxDrawLine(544 - 1, 442 - 1, 544 - 1, 477, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(618, 442 - 1, 544 - 1, 442 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(544 - 1, 477, 618, 477, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(618, 477, 618, 442 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawRectangle(544, 442, 74, 35, tocolor(31, 171, 0, 202), false) dxDrawText("Fk you", 559, 450, 635, 470, tocolor(255, 255, 255, 255), 1.20, "default", "left", "top", false, false, false, false, false) dxDrawLine(759 - 1, 441 - 1, 759 - 1, 476, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(833, 441 - 1, 759 - 1, 441 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(759 - 1, 476, 833, 476, tocolor(31, 171, 0, 202), 1, false) dxDrawLine(833, 476, 833, 441 - 1, tocolor(31, 171, 0, 202), 1, false) dxDrawRectangle(759, 441, 74, 35, tocolor(31, 171, 0, 202), false) dxDrawText("Faggot !", 769, 449, 845, 469, tocolor(255, 255, 255, 255), 1.20, "default", "left", "top", false, false, false, false, false) dxDrawText("Fuck the system | fts", 630, 393, 829, 416, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) end function open() if removeEventHandler('onClientRender', root, menu) then removeEventHandler('onClientRender', root, menu) guiSetVisible(fuckyou,false) guiSetVisible(getnoscope,false) guiSetVisible(gay,false) guiSetVisible(faggot,false) showCursor(false) else addEventHandler('onClientRender', root, menu) guiSetVisible(fuckyou,true) guiSetVisible(getnoscope,true) guiSetVisible(gay,true) guiSetVisible(faggot,false) showCursor(true) end end bindKey( "F2", "down", open) function faggots( button ) if button == "left" then local sound = playSound("sounds/faggot.mp3") end end function gays( button ) if button == "left" then local sound = playSound("sounds/gay.mp3") end end function noscopes( button ) if button == "left" then local sound = playSound("sounds/noscope.mp3") end end function fuckyous( button ) if button == "left" then local sound = playSound("sounds/fuckyou.mp3") end end
  2. S3Nn4oXx

    Overdose Mod

    If I download this Overdose mod I got banned yasterday with this reason "TRAINER" for 24 hours !, Do you think it's because this mod or it's another thing?
  3. player is not defined, instead of you can use thePlayer because it's defined in your function . function vehspawner( thePlayer ,commandName, ID) local x, y ,z = getElementPosition ( thePlayer ) local team = getPlayerTeam ( thePlayer ) if (team == Staff )then succes = createVehicle ( ID, x+2 , y+2 , z ) if (succes) then outputChatBox("Am spawnat masina", source) else outputChatBox("Am esuat", source) end else outputChatBox("Nu esti Staff", source) end end addCommandHandler("sv",vehspawner)
  4. [21:25:56] WARNING: Ach\script.lua:4: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got resource-data] [21:25:56] WARNING: Ach\script.lua:5: Bad argument @ 'isGuestAccount' [Expected account at argument 1, got boolean] [21:25:56] WARNING: Ach\script.lua:6: Bad argument @ 'getAccountData' [Expected account at argument 1, got player] [21:25:56] WARNING: Ach\script.lua:7: Bad argument @ 'getPlayerMoney' [Expected player at argument 1, got resource-data] [21:25:56] ERROR: Ach\script.lua:7: attempt to compare number with boolean
  5. it was it was ERROR: Loading script failed: Ach\script.lua:2: 'do' expected near 'getElementsByType' when I changed it, it doesn't show up
  6. <meta> <script src="script.lua" type="server" /> </meta> I am not that stupid sir ;D == Mr.Pres[T]ege It's still not working function RichmanAch ( thePlayer ) local plr = getElementsByType( "player" ) for i,thePlayer in ipairs(plr) do local PlrAccount = getPlayerAccount(thePlayer) if not isGuestAccount( PlrAccount ) then if getAccountData(PlrAccount,"RichMan:Achievement") ~= "done" then if (getPlayerMoney(thePlayer)) >= 1000000 then outputChatBox(getPlayerName(thePlayer).."Has Reached 'RichMan' Achievement, Congratulations!", getRootElement(), 255, 0, 0, true) setAccountData(PlrAccount, "RichMan:Achievement", "done") end end end end end addEventHandler("onResourceStart", getRootElement(), RichmanAch)
  7. addEvent('onBuyWeapon',true) addEventHandler('onBuyWeapon',root, function ( id , price, thePlayer) if ( tonumber ( price ) and getWeaponIDFromName ( id ) ) then if ( getPlayerMoney ( client ) >= tonumber ( price ) ) then takePlayerMoney ( client , tonumber ( price ) ) setPedStat(thePlayer, 23, 999) end end end )
  8. I don't get it look here I reiterated the account already at line 2 "local PlrAccount = getPlayerAccount(thePlayer)" [15:15:40] WARNING: Ach\script.lua:2: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got resource-data] [15:15:40] WARNING: Ach\script.lua:3: Bad argument @ 'isGuestAccount' [Expected account at argument 1, got boolean] [15:15:40] WARNING: Ach\script.lua:4: Bad argument @ 'getAccountData' [Expected account at argument 1, got boolean] [15:15:40] WARNING: Ach\script.lua:5: Bad argument @ 'getPlayerMoney' [Expected player at argument 1, got resource-data] [15:15:40] ERROR: Ach\script.lua:5: attempt to compare number with boolean function RichmanAch(thePlayer) local PlrAccount = getPlayerAccount(thePlayer) if not isGuestAccount( PlrAccount ) then if getAccountData(PlrAccount,"RichMan:Achievement") ~= "done" then if (getPlayerMoney(thePlayer)) >= 1000000 then outputChatBox(getPlayerName(thePlayer).."Has Reached 'RichMan' Achievement, Congratulations!", getRootElement(), 255, 0, 0, true) setAccountData(PlrAccount, "RichMan:Achievement", "done") end end end end addEventHandler("onResourceStart", getRootElement(), RichmanAch)
  9. When I trigger the event from server side, It doesn't work too Should I remove onClientRender event?
  10. S3Nn4oXx

    Achievement

    When I reach 1m It doesn't show a message + no debug message color = 255,0,0 function RichmanAch(thePlayer) local account = getPlayerAccount(thePlayer) if not isGuestAccount( account ) then if getAccountData(account,"RichMan:Achievement") ~= "done" then if (getPlayerMoney(thePlayer)) >= 1000000 then outputChatBox(getPlayerName(thePlayer).."Has Reached 'RichMan' Achievement, Congratulations!", getRootElement(), color, true) setAccountData(account, "RichMan:Achievement", "done") end end end end addEventHandler("onClientRender", getRootElement(), RichmanAch)
  11. S3Nn4oXx

    Update

    How do I add more Updates for my resource ?
  12. S3Nn4oXx

    Help

    Which functions,events do I need to equip a mask in my head by doing a command - I have txd ' dff .
  13. If I make Achievement for a richman If the player has 1m It shows a message to him I just want to know how to make it once, If I have 1m so the Achievement is open I don't want If I lose money and it's 999k when I reach 1m so it doesn't show again Idon't want it like this
  14. How to make that when the player is Registered (On the first time) a message appears and give the player 10000 I know to make the script but I don't know how to do it just once, when the player Is register
×
×
  • Create New...