Jump to content

KiffShark

Members
  • Posts

    60
  • Joined

  • Last visited

Everything posted by KiffShark

  1. mmm this is what I have found searching in google https://forum.multitheftauto.com/viewtop ... 1&p=436747 the same problem ._.
  2. yes! for example (Tec9) function replaceModel ( ) txd = engineLoadTXD("files/tec9mod.txd", 372 ) engineImportTXD(txd, 372) dff = engineLoadDFF("files/tec9mod.dff", 0 ) engineReplaceModel(dff, 372) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) (the folder is "files" and meta is ok... no matter what mod I try to use) I've changed all weapons, and work, but Tec9, flowers.. parachute.. nope I've changed spraycan and camera too and they work...
  3. Hi! Well...the problem is that I created a map without problems but since yesterday some items/furniture like beds, wardrobes... now the item are like "ghost-mode", I can cross them when I play ._. for example, in the gyms the punching bags are "ghost" too, so it isn't problem of the created map what's happening? some idea? thanks Kiff. sorry for my english
  4. Hello I'm replacing weapons in my server, but the problem is that when I replace, Tec9, parachute, dildos, flowers..... and I enter uin the server it crashes It's not problem of the mod, I have tried a lot of them, it's just these weapons.... I have thought that maybe is not possible to change them... (I write good the scripts, wapons ids, files in resource....) I've replaced all weapons succesfully... Why I can't change tec9, parachute, flowers........?
  5. YEAAAAAAAAAAH THANKS!!!!! G-g!!! -.- sorry Solved! Thanks Snaik!!! =D works perfectly!! *o* thanks again!
  6. console: and I don't receive money when i'm in gen team in other file of the same resource is created the team (works) gen = createTeam ( "Gen", 255, 0, 0 ) setTeamFriendlyFire(gen, false)
  7. ok i guess it xDD that's why i 've said sorry if looks made by a baby (I want that players in team Gen will receive $500 every 24 mins) (in the last code was 10 secs but only for test it) I tried this too function genPayDay() local team = getPlayerTeam(source) if team then if getTeamName(team) == gen then givePlayerMoney ( value, 500 ) outputChatBox ( "*--------------- payday ---------------", value, 0, 255, 0) outputChatBox ( "*text1", value, 0, 255, 0) outputChatBox ( "*text2.", value, 0, 255, 0) outputChatBox ( "*text3", value, 0, 255, 0) end end function onResourceStart(thisResource) setTimer ( genPayDay, 720000, 0 ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), onResourceStart ) but doesn't work what do you think?
  8. Hi again! I have done a script of "PayDay" for a team, but it doesn't work Someone can help me? (The team isn't the problem, it is created correctly in the same resource and works in the game) It's strange but I used this strcture because I saw it in a resource addEventHandler("onResourceStart", function genPayDay(player) if getPlayerTeam(player, "gen") then outputChatBox ( "*------------ payday ------------", value, 0, 255, 0) outputChatBox ( "*text1", value, 0, 255, 0) outputChatBox ( "*text2", value, 0, 255, 0) outputChatBox ( "*text3", value, 0, 255, 0) for i, v in ipairs(getElementsByType("player")) do givePlayerMoney ( value, 500 ) setTimer ( genPayDay, 10000, 0 ) end else end end ) (the timer is 10s only for test it, when it works i will put 24 minutes) I've test 100000 ways of code that looks better than this thing before -.- anyone has worked.. If someone can fix it or give another suggestion I'd be so pleased console: Problem here: addEventHandler("onResourceStart", function genPayDay(player) if getPlayerTeam(player, "gen") then (But I have seen this in a resource that works correctly._.) Thanks! (sorry for my english and if the script looks made by a baby )
  9. Thanks to both! solved! the command doesn't work but it's ok, I think it's because of when I type the command there isn't attacker and attacked players so "wtF?" Thanks, it's solved I'll add new topics in the future for more scripts haha I hope not be a bother Sorry for my english. Kiff.
  10. Hi everyone, I'm from Spain so I don't speak english very good but I think that you will be able to understand me I need somebody to fix this script: (I have delete the text from outputchatbox) function robar ( attacker, attackerweapon, bodypart, loss ) local playerTeam = getPlayerTeam ( source ) if no ( playerTeam ) and(attackerweapon == 0) then givePlayerMoney ( attacker, 15 ) takePlayerMoney ( source, 15 ) outputChatBox ( "-", attacker, 255, 0, 0 ) outputChatBox ( "-", attacker, 255, 0, 0 ) outputChatBox ( "-", source, 255, 0, 0 ) else cancelEvent() end end end addEventHandler ("onPlayerDamage", getRootElement(), robar) addCommandHandler("adminrobar",robar) the console says: the lines there are: addEventHandler ("onPlayerDamage", getRootElement(), robar) addCommandHandler("robar",robar) waht is wrong? the function? Thanks! Kiff
×
×
  • Create New...