Jump to content

B!ERPuNK

Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by B!ERPuNK

  1. Whaha thanks, i should've remembered that one but i forgot . Thanks again ^^
  2. Oh, i have 1 more question: What function can you use to change a players skin? I know setPedSkin but i read it was deprecated. And using spawnPlayer is also kinda annoying, because then i have to add the coordinates and that kind of things, and i have used the event onPlayerSpawn a couple of times in my scripts that wouldnt work appropriately anymore if i use it.
  3. Thanks a lot, it work's now . I thought the name of the team was also the team object, but i was wrong . But thanks again, now people can finally get a job with my resource, or at least, become a medic or cop .
  4. Hello guys, i have a question. I have two resources, for convenience, let's call them A and B. In resource A, i want to create two (and eventually more) teams. This is the script i've added in the server script of resource A: function createTeams () local teamCops = createTeam ("cops", 0, 0, 255) local teamMedics = createTeam ("medics", 0, 255, 255) end Now, in resource B, i want to add a player to team cops when he does /cop in the chatbox and to team medics if he does /medic. I have added the following script to the server script of resource B: function becomeCop (source) setPlayerTeam (source, cops) outputChatBox ("You are now a cop!", source) end The problem is, when i do /cop, it doesn't add my player to the team. However, the text does show up in the chatbox. So can anyone tell me what i have done wrong ? Thanks .
  5. Thanks, it totally works! Thanks again !
  6. Hello everybody, I am making a RPG script with a friend. To make it a bit more realistic for every player, i want to change the time to the player's clock. Now i have allready got this script: function setupTime() local realtime = getRealTime() setTime(realtime.hour, realtime.minute) setMinuteDuration(60000) end addEventHandler("onPlayerJoin", getRootElement(), setupTime) But when i tested it with someone else (who set a different time on his pc), the time stayed the same for him. Is it possible that getRealTime gets the time from the server? And if possible, can i change it so it will take the time from the player? So that everyone from different places have a different time. Sorry for asking but it's been a little while since i scripted for MTA and i've got to pick it up again. Thanks in advance, Pim
  7. I would like to help you. I'll make a fully setup server for you, with all scripts and things like that, design a fully new roleplay and zombie script and then i give it to you. For free. ...nah.
  8. Yeah i also was like 'wtf how to change my pass' but yeah this helps people alot. Also, UPDATE: In all the other login scripts the login window dissapears for all players when one logs in. This is now fixed in version 0.0.3 .
  9. I suggest you to read the wiki: http://development.mtasa.com/. It has some nice guides for beginning MTA players. The buildings, pickups and vehicles can all be placed with the inbuilt Map Editor. For an arena you'd have to learn to script, or find a script.
  10. UPDATE: I've added a help.xml and a password changing menu. Now, when you type /changepw you can change your password in a GUI. For images, check the resource at the community.
  11. P-Spawn is a small script that does the following things: + Spawns players when they join + Give them weapon and ammo when they join + Give them money when they join + Respawns players when they die + Give respawned players weapon and ammo + Take money from the player when they die + Give money to the player when they kill someone A lot of things can be changed in variables with a lot of comments in the script.lua file. For example: + Change the amounts of money players get and lose + Change the spawn coördinates + Change the player skin + Change the weapons players get This script is supposed to stay small like this, but i might be willing to add some features to it. Please place a reaction if you want something added. Also, i did not test this script with more then 1 player, so if there are any bugs, please tell me and i will (try to) fix them. https://community.multitheftauto.com/index.php?p= ... ils&id=756
  12. P-Login is a nice login GUI with a login function and register function. It also shows if a username is allready taken, or if you put in the wrong username and/or password. In the newest version you can also change your password! To open the password changing screen, type in '/changepw' in the chatbox. To use this, simply add it to your resources folder and add it in mtaserver.conf to auto run it if you want it to start when you start the server. This resource is best to be used with my other script P-Spawn if you want a basic RPG-like freeroam mode. If you use it with the default freeroam mode (play) then it will be just the default freeroam mode, but also requiring users to register and login. TODO-list: - Add password changing [DONE] - Add help [DONE] - More easy editing options for server administrators [NOT DONE] For any questions, bug reports or requests; post in this topic or place a comment at the download. https://community.multitheftauto.com/index.php?p=resources&s=details&id=764
  13. Nice. Simple but well it works . Maybe once you've learned some more scripting you can start on a basic MP3 player, by adding a playlist with a few songs and adding commands as /nextsong, /prevsong and /stopmusic.
  14. Try new-mabako, because i think the old one doesn't work anymore. I could make a weaponshop, but it will take a while. And it will be a simple one, without images. I'll add it to the list of what i am going to make .
  15. What do you mean with spawnpoint script? Just a script that spawns players and respawns then when their dead, or something else? yes with skins and weapons so i can change: Coordinates & Skin & Weapons Thanks Well i've just made something really quick, i hope it's a bit like you wanted: https://community.multitheftauto.com/index.php?p=resources&s=details&id=756 But i can make something else too offcourse .
  16. What do you mean with spawnpoint script? Just a script that spawns players and respawns then when their dead, or something else?
  17. Sure, just post what you guys want or send me a PM if it's private!
  18. Hello guys, The last few days i'm busy learning to script for MTA. It's not so hard, but i still have a long, LONG way to go. So, that's why i accept requests for simple scripts! If you are really bad at - or do not know scripting at all - you can request me to make a simple script for you, or for the community. Even if you don't want a script, please give me some idea's about what i can make so i can learn from it. Do not make it too hard though . Thanks!
  19. Sorry but i am new to scripting, but i think this would work: Under the place where it says setPlayerMuted(victim, true) you could set a time with the setTimer command, so something like this: setPlayerMuted(victim, true) setTimer(setPlayerMuted, 1000, 1, victim, false) And then change 1000 to the amount of miliseconds you want it to last before the player gets unmuted. Like for example, 1000 is 1 second, so 60000 is 1 minute. Hope it works!
  20. I don't think that's possible. Don't know why you'd want that either: you could just use a place in the sky, in the sea, or even better, a place in another dimension. And you could also build in another interior in a place thats empty. Most part of an interior is empty anyway.
  21. Just try it. I'm also new to scripting, and the best way to learn is to try all kinds of things for yourself. And offcourse, when you don't get it after you've tried, you can ask people for help, but it's better to just try it at first.
  22. It's better to make logo's in Illustrator, not in Photoshop, because Photoshop just kills the quality. Besides, you've got a lot more control over your design in Illustrator. Anyway, i think the current MTA logo is just fine. But maybe i'll try making something anyways, just for fun.
  23. Nevermind anymore, i solved my problem by making a custom event and using the triggerClientEvent function. Thanks anyway for your help .
  24. Yes, i know that, but i don't know how i could use that. Let me explain my setup a bit: I have the RPG resource, which show the class chooser when the resource starts. In the meta file of the RPG scripts it includes the login resource, that also shows the login window when that resource starts. So there are 2 windows that start on the start of their resource. What i would like, is that when a player logs in with the login script, it sets a variable (like playerLoggedIn) to true, and that the RPG script shows the class chooser when that variable is set to true. Or maybe i could use the event onPlayerLogin, but does that also works when a player logs in through the GUI? And it's a server side-event, and my GUI for choosing the class is a client-side script, so would that work? Or else maybe i could make my own event, but i have know idea how i could do that. Any ideas?
  25. Problem solved by using custom events and the triggerClientEvent function! Hello guys, I made a login script and am busy with a RPG script, but since i'm new to scripting, it's not easy. However, the login script works and i've made a GUI in which you can choose which class (police, medic, criminal) you want to be. The last one is in the RPG script. However, the problem is that both the login window and the class-chooser window show up at the same time, so i'd rather have the player to first login, and then the class-chooser window shows up and the player chooses his class / team. Does anyone know how i can do this the easiest, because i am not that good in scripting. Maybe some kind of really global variable that can work between different scripts/resources, or something else? Thanks in advance!
×
×
  • Create New...