Jump to content

Citizen

Moderators
  • Posts

    1,803
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Citizen

  1. Double Post: Ok I just understand the skin selection system, I explain you: All skins are available by this script so you can't add other skins In fact, this script jump the Non-working IDs ( see the bottom of this page ) elseif (skin == 7) then setPedSkin(client, 9) The skin 8 is a Non-working ID so he jump this ID and give the skin 9 Conclusion: All skins are available
  2. Yeah but it's not easy to add skin and close the loop of the skin selection
  3. This error means that your MTA try to download the requested files to enter in the server by a website but which doesn't exist. I think that it's in your mtaserver.conf at: http://..... So if your server is in local, delete the URL like this: Save it and restart your server. Really ? Could you put here your script ?
  4. Yeah I'm agree with The Kid, because there is basic code very easy to learn this by yourself
  5. you right and I miss a little s at Admin so replace that line: teamAdmin = createTeam( "Admins" ) And now it will work perfectly
  6. Yeah my bad sorry because I'm french so ammos = munitions in french and I began with munitions and I forgot it
  7. In fact, he have no GM, no skill in lua and he want to learn it. I'm gonna help him for the start
  8. hum if you want to give weapon for only one ped, you have to use /givepedwp thePed theWeapon theAmmos and if you want to give a weapon to all peds, try this: function giveWeaponPeds( thePlayer, commandName, weapon, ammo ) if (weapon and munitions) then for k,i in ipairs ( getElementsByType( "ped" ) )do giveWeapon ( i, weapon, ammo, true ) end else outputChatBox("/wpeds [weaponID] [ammos]", thePlayer ) end end addCommandHandler( "wpeds", giveWeaponPeds, false, false )
  9. Yeah I think it's better put this a the top of your lua file: teamAdmin = createTeam( "Admin" ) function enterInTeam( thePlayer, commandName ) if teamAdmin then setPlayerTeam ( thePlayer, teamAdmin ) end end addComandHandler("enterteam", enterInTeam, false, false ) Then restart your server and tape /enterteam then try to enter in your colshape
  10. Where is your createTeam and your setPlayerTeam please ( Lol my bad, I thought that the onColshapeHit was never triggered )
  11. Hi Brooks2011, If you don't pay this hard work, nobody will want
  12. Hi h1ama3d , You have to find another onPlayerChat and delete the addEventHandler( "onPlayerChat", ... ) or place a return at the top of the function
  13. You have to specify the ID of your ped, then the ID of the weapon and the munitions Exemple: /createped ped1 /givepedwp ped1 24 500
  14. We can't help you if you don't put a minimum of code from your ( your ? ) GM
  15. Ok so try that and tell me if HIT appear in your chatbox when you enter in the ColShape function detectorDetect(thePlayer) outputChatBox("HIT") if ( getPlayerTeam(thePlayer) == "Admins")then outputChatBox("Welcome!", thePlayer, 0, 255, 0) else setElementPosition(thePlayer, 247, 1833, 5) setElementRotation(thePlayer, 269) outputChatBox("You are not allowed to come here!", thePlayer, 255, 0, 0) end end addEventHandler("onColShapeHit", detector, detectorDetect) EDIT: I paste the code again EDIT2: IDK why but the code in lua was bugged so I put it in text format
  16. And where is it in your code ? In a function or just like that ?
  17. Where the colshape is created ? put it here please
  18. Lol I didn't try to see in the mtaserver.conf . It's not the better way because you can't stop or start the GM like you want ok you were right
  19. My bad sorry I don't understood like that @MatiasRuff: Try to make this scoreboard alone and if you need some help put your code here and we will see together the problem(s)
  20. @Solidsnake That's why I stopped to reply
×
×
  • Create New...