Jump to content

Feche1320

Members
  • Posts

    461
  • Joined

  • Last visited

Everything posted by Feche1320

  1. I don't want to people abuse commands, so I did this: if(getTickCount()-g_PlayerTick[source] < 20000) then outputChatBox("Please wait 20 seconds between commands.", source, 255, 0, 0) return else --more code g_PlayerTick[source] = getTickCount() end But the first line gives me this error: attempt to perform arithmetic on field '?' Thanks
  2. Ah, lol, well if yours is faster (I suppose), I'll switch to it. Thanks
  3. Ah, lol, I already did it if(getVehicleModelFromName(getVehicleName(getPedOccupiedVehicle(source))) == 425) Thanks anyways
  4. Hello, I am making a command to fix car, but if he is in certain vehicle model he can't. I tried getVehicleModelFromName, but I don't know how to get the players vehicle model. Thanks
  5. Yes, it was the spaces, thanks a lot!
  6. Still doesn't work, it says rank 1 for everyone
  7. I have a serverFFS linux server, and when I add a map that uses textures, sounds or anything else, it kicks me out saying 'Download error.. bla bla', do I have to set uo something..? Thanks
  8. Ah lol, I didn't think of that, thanks.
  9. This is: function getPlayerRank(player) if not g_CurrentRaceMode or not g_CurrentRaceMode:isRanked() then return false end return g_CurrentRaceMode:getPlayerRank(player) end It's the one that comes with the race gamemode.
  10. I have this: addEvent("onPostFinish") function OnMapFinish() for i, player in ipairs(getElementsByType('player')) do local rank = getPlayerRank(player) if(rank == 1) then givePlayerMoney(player, 1500) outputChatBox('Rank 1:' .. getPlayerName(player).. '') end if(rank == 2) then givePlayerMoney(player, 1500) outputChatBox('Rank 2:' .. getPlayerName(player).. '') end end end addEventHandler("onPostFinish", getRootElement(), OnMapFinish) But it gives me for all players rank 1, why it isn't working? Thanks
  11. Hello, i've seen in some servers that when you are writing a image comes up of his head, how is that possible? Thanks.
  12. Yea, that's what I was looking for, thanks!
  13. Thanks, but how can I modify the scoreboard? Some example? Thanks
  14. Hey all, I'm new into this, so I have a few questions: 1. How can I make a simple registration system with money? I don't know any saving/reading functions from Lua.. 2. How to modify the scoreboard? 3. Is it possible to remove the car tunnings on a race gamemode? That's all, thank you guys PS: If there is any tutorial on doing some of these things, please link it
  15. Again, thanks! And thanks too for fast reply
  16. I have this: addEvent("onMapStarting") addEventHandler("onMapStarting", getRootElement(), setblur) function setblur () setTimer(blurroff, 2500, 1) end function blurroff() for theKey,thePlayer in ipairs(getElementsByType("player")) do setPlayerBlurLevel ( thePlayer , 0 ) end What it should do is disable the player blur level, by doing a loop, but it doesn't work.. Thanks.
  17. I did try that, but it doesn't work, it doesn't output the "blabla got the hunter!", any ideas? Thanks
  18. I'm new into this, and I've got this problem: [2010-12-23 22:13:17] WARNING: race\tt.lua:4: Bad argument @ 'getPedOccupiedVehicle' [2010-12-23 22:13:17] WARNING: race\tt.lua:4: Bad argument @ 'getVehicleName' [2010-12-23 22:13:17] WARNING: race\tt.lua:4: Bad argument @ 'getVehicleModelFromName' Here is the code: addEvent( "onPlayerPickUpRacePickup", true ) function onPlayerPickUpRacePickup(pickupID,pickupType,vehicleModel) if pickupType == "vehiclechange" and vehicleModel == 425 then car_id = getVehicleModelFromName(getVehicleName(getPedOccupiedVehicle(getPlayerName(source)))) if car_id ~= 425 then outputChatBox(getPlayerName(source).." got the hunter!") outputChatBox("#38ff06Disabling Ghostmode in 10 seconds...") setTimer(gmoff, 10000, 1) g_SToptimesManager:playerFinished( source, exports.race:getTimePassed()) gmoff() end end end addEventHandler( "onPlayerPickUpRacePickup", getRootElement(), onPlayerPickUpRacePickup) I did try to solve it my self, but nothing.. Thanks
  19. I have this problem too, I only play DM/DD servers, so I can't tell you Towncivilian.
  20. Please list your network adapter model. Follow instructions I posted above. It's a Huawei MT8822 SmartAT and I'm using USB port.. this only happends on certain maps.
  21. Mh.. nothing happend.. still the same Is it a MTA bug?
×
×
  • Create New...