Jump to content

toxicsmoke11

Members
  • Posts

    232
  • Joined

  • Last visited

Everything posted by toxicsmoke11

  1. could you tell me whats the difference between /refresh and /refreshall ?
  2. lol, restart the server, mta is disappointed in you. it's not my fault that mta developers aren't fixing this kind of ridiculous bugs.
  3. no i dont want to have that then i would get an ugly colored text i had to restart my server to fix this issue,im dissapointed by mta
  4. hello im trying to make a script but mta hates me and doesnt want to load it paidVehicles = { {"Infernus",411,50000} } function buyVehicle(thePlayer,commandName,theVehicle) if getPlayerMoney(thePlayer) >= 50000 then for i,pvehicles in ipairs(paidVehicles) do if string.find(pvehicles[2],tostring(theVehicle)) then outputChatBox("You bought: #FF0033"..tostring(pvehicles[1]),thePlayer,255,255,255,true) local px,py,pz = getElementPosition(thePlayer) createVehicle(tonumber(theVehicle),px,py,pz) else outputChatBox("#FFFFFF"..tostring(theVehicle).."#FF0000 did not find any match in the vehicle shop.",thePlayer,255,0,true) end end else outputChatBox("#FF0000You need #FFFFFF 50000$ #FF0000 in order to buy a vehicle!",thePlayer,255,0,true) end end addCommandHandler("buyvehicle",buyVehicle) when i use /buyvehicle 411 then i get message "nil did not find any match in the vehicle shop." also you might wonder why i got only 2 number arguments in outputChatBox,well the reason is that mta is talking crap and not allowing me to script because its just evil little shit before i have used else outputChatBox("#FF0000You need #FFFFFF 50000$ #FF0000 in order to buy a vehicle!",thePlayer,255,0,0,true) end but stupid mta said that fifth argument (number 0) must be a fucking boolean which doesnt make any sense does anyone know a solution to this ridicilous madness made by mta?
  5. i just wanna ask one more thing if i use something like this in that script -- function if hitElement == "player" or hitElement == "ped" or hitElement == "vehicle" or hitElement == "object" then outputChatBox("you hit an element") else outputChatBox("u hit nothing") end -- event is same like in first post that above example does nothing my script is not exactly like that but it's just example it always outputs "u hit nothing" whatever i hit with my bullet do you know how can i fix this?
  6. thanks and thanks for quick reply!
  7. qqqqqqqqqqqqqqqqqqqqqqqqqč5kn23ćččččččččččččioj55 235io235235235235235235235235235235ohihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihi55555555555555io909090909090909090909090900999999999999999999999325902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590259025902590 352hiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohiohio
  8. yeah as speed increases it should draw more and more of those red dots but it draws only one, the 50kmh one
  9. toxicsmoke11

    help

    im trying to draw images as vehicle speed increases but it only works if speed is above 50 if speed is for example above 100 then there will be just one image and there should be two of them just on other place local sw,sh = guiGetScreenSize() function reddotTest() local theVehicle = getPedOccupiedVehicle(localPlayer) if theVehicle then local speedx,speedy,speedz = getElementVelocity(theVehicle) local actualspeed = (speedx^2 + speedy^2 + speedz^2)^(0.5) local kmh = actualspeed * 180 dxDrawImage(sw/2,sh/2,32,32,"files/blackdot.png") dxDrawImage(sw/1.80,sh/2,32,32,"files/blackdot.png") dxDrawImage(sw/1.60,sh/2,32,32,"files/blackdot.png") dxDrawImage(sw/1.40,sh/2,32,32,"files/blackdot.png") dxDrawImage(sw/1.20,sh/2,32,32,"files/blackdot.png") --dxDrawImage(sw/2,sh/2,32,32,"files/reddot.png") dxDrawText(math.floor(kmh + 0.5).. " km/h",sw/2, sh/1.80,sw/2, sh/1.80,tocolor(255,255,255,255),1,"bankgothic") if kmh > 50 then local fifty = dxDrawImage(sw/2,sh/2,32,32,"files/reddot.png") outputChatBox("50 or more") elseif kmh > 0 and kmh > 100 then local hundred = dxDrawImage(sw/1.80,sh/2,32,32,"files/reddot.png") outputChatBox("100 or more") elseif kmh > 150 then local hundredfifty = dxDrawImage(sw/1.60,sh/2,32,32,"files/reddot.png") outputChatBox("150 or more") elseif kmh > 200 then local twohundred = dxDrawImage(sw/1.40,sh/2,32,32,"files/reddot.png") outputChatBox("200 or more") elseif kmh > 250 then local twohundredf = dxDrawImage(sw/1.20,sh/2,32,32,"files/reddot.png") outputChatBox("250 or more") elseif kmh == 0 then fifty = nil hundred = nil hundredfifty = nil twohundred = nil twohundredf = nil end else return end end why isnt this working?
  10. i forgot to re-re-edit my topic,sorry i was using client and it worked out but i was confused whether it would give the gun to everybody or just that 1 player who triggered event because of: anyway thanks guys it works
  11. ok thanks but is this gonna give colt 45 to every single player or just the one who triggered event?(while using client as player element)
  12. client side script triggerServerEvent("onColtRequest",localPlayer) server script function coltSend(thePlayer) giveWeapon(thePlayer,22,200) end addEvent("onColtRequest",true) addEventHandler("onColtRequest",root,coltSend) how do i fix this stupid problem? oh and yeah i just want this to send weapon to one player,not everyone but i have no idea how to fukin do this because everything is too hard
  13. (if you want to learn how to use it: ) go on wiki and write table.sort then click right button which says Search it will show all pages which have table.sort in them.
  14. one of the mta sa's files(CPacketHandler.cpp) code Line Code ... 677 // unsigned char (1) - fighting style 678 // Dear God, please fix issue #7376 mta developer(s) believe in god! GodBelievers>Atheists
  15. @Bonsai, what could be "something else" ? any suggestions? @CrystalMV how could i make then map objects clientsided so they load for only 1 player?what are arguments for that? i dont see anything about client side on createObject page except blue text 'Client' indicating that its possible to make it clientsided
  16. okay,but can you give me an example? i saw loadstring on wiki only at useful functions section, but it seems pretty complicated to me what if i had 10 players on my server and i wanted to start map resource just for 1 player who used a command?
  17. is it possible to start a resource/script for just one player only ? i have seen that multigamemode servers have something like that i believe so i was just wondering how they done it does anyone know how to do that?
  18. that is freeroam client sided script as i said before, i am only editing it, and i posted already all edits i've done considering repair function
×
×
  • Create New...