Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. are you saying, when you enter the vehicle and vehicle is locked you can't unlock it anymore?
  2. Look, i don't f** understand a word of what you say.
  3. wow, a vehicle can sit on a player o_o? that's really strange, don't you think? Does it work? or not?
  4. when a player joins he is not logged in, so you have to use onPlayerLogin as eventHandler, addEventHandler ( "onPlayerLogin", getRootElement ( ), onPlayerJoin )
  5. getPlayerZombieKills?????? wtf? i think you should do: getElementData(source, "Zombie kills") and: setElementData(source, "Zombie kills", playerzombiekills)
  6. Castillo

    Race mod

    1.0.4 is the latest version currently.
  7. Castillo

    Your Infernus

    uhm, i think anyone could make his own infernus textures?
  8. Put the code EXACTLY like it is, leave the messages.
  9. if i'm right the addEventHandler error is because you put "bmxBike" and in function you use "bxmBike"
  10. look at the hour he said, "Thank you ill try if it doesn't work ill show what i did" and then look at the hour he said he don't get it, 17 minutes?
  11. He is using the admin panel to set the teams, i was wondering why he don't use the panel also to set the skin.
  12. you got things wrong here o_O, addCommandHandler( "heal", function( thePlayer, commandName, who ) if exports.players:isLoggedIn( thePlayer ) then local inPD, factionID, factionName, factionTag = exports.factions:isPlayerInFactionType( thePlayer, 2 ) if inPD and factionTag then setElementHealth ( getPlayerFromName(who), 100 ) else outputChatBox( "(( You are not in a Government faction. ))", thePlayer, 255, 0, 0 ) end end end ) try that code above.
  13. read carefully this tutorial. https://wiki.multitheftauto.com/wiki/Scr ... Tutorial_1
  14. you are asking me to script the script part, you just made the GUI.
  15. i don't understand why you need such script, if you are setting their team by admin panel then set their skin by admin panel too
  16. o_o, then you have to edit the admin panel i think.
  17. Post the code you use to set the player to team.
  18. there is no event to detect when a player joins a team, you could make your own event when you set him to the team.
  19. maybe you should explain us how you want it to work? like when the player spawns?
  20. Did you copy my latest code? because i've changed it many times.
  21. There is no such event named "onTeamJoin", also the addEventHandler isn't even right.
  22. When i press "L" it says Vehicle unlocked/locked, and the vehicle gets locked/unlocked.
  23. huh, i don't get you, i've tested it and has no problems.
  24. Your code has many errors, you got missing "end" and not needed stuff. try this code, vehicle = createVehicle ( 496, 2425, -55, 27, 0, 0, 0 ) setElementData(vehicle,"vehicle","car") setElementData(vehicle, "owner", "Jumper_Mych") function lockcar ( player ) if (getElementData(vehicle, "vehicle" ) == "car") and ( getElementData(vehicle, "owner" ) == getPlayerName(player) ) then if isVehicleLocked ( vehicle ) then setVehicleLocked ( vehicle, false ) outputChatBox("Vehicle unlocked!",player,0,255,0) else setVehicleLocked ( vehicle, true ) outputChatBox("Vehicle locked!",player,255,0,0) end end end function bindLockOnSpawn ( ) bindKey ( source, "l", "down", lockcar ) end addEventHandler( "onPlayerSpawn", getRootElement(), bindLockOnSpawn ) P.S: Stop saying "Don't copy my code" and so on because your codes always fails
  25. Maybe paradise game mode has something on it doing that, search in every script from it.
×
×
  • Create New...