Jump to content

JohnDoe91286

Members
  • Content Count

    37
  • Joined

  • Last visited

Everything posted by JohnDoe91286

  1. How would I do that? function keepWanted () wlevel = getPlayerWantedLevel ( source ) setPlayerWantedLevel ( source, wlevel ) end addEventHandler ( "onPlayerWasted", getRootElement(), keepWanted )
  2. There is no such function. What exactly are you trying to do?
  3. I have a wanted system running on my server, it all works fine exept for the fact that hardcored into MTA the wanted level is set to 0 onPlayerWasted. Is there any way of manually removing this or does it have to be un-hardcored from MTA? I mean, could it be un-hardcored because it gives better oppertunities then? If somebody wanted it how it is now all they would have to use is the code below. And of course, if they wanted it like I do, they just let the wanted level stay as it is. function resetWanted () setPlayerWantedLevel ( source, 0 ) end addEventHandler ( "onPlayerWasted", getRootElem
  4. Thanks for the link, on the outputChatBox who would I put as the visibleTo argument?
  5. Could anybody help point out or show an example of how to outputChatBox something to everybody in a certain team? Thanks.
  6. JohnDoe91286

    IRC

    Hey, I got banned from #mta for linking to a pornographic video. I didn't know that wasn't allowed, please could I be unbanned? Now I know it's not allowed I won't do it again.
  7. Like DarkDragon[GER] said, "maybe you can learn from it".
  8. It might be possible but it would be extremely hard to script.
  9. I have a GUI Spawn Menu for my DP2.3 server. I want to make a much better one for MTA 1 but I don't have enough room on the spawn menu for any new classes. Does anybody know a good design of spawn menu that has loads of room for additional classes?
  10. I am trying to get the players blips on the minimap to change colour depending on which team they are.Why dosn't the code below work? function setBlipColor () local playerTeam = getPlayerTeam ( source ) if ( playerTeam == Police ) then setPlayerBlipColor ( 0, 0, 255 ) end addEventHandler ( "onPlayerSpawn, getRootElement(), setBlipColor )
  11. Is there a command to put in a script that makes a bind key for players like when freeroam is on "F" becomes the bind key for Jeptack toggle. I want to make a vehicle engine on/off toggle.
  12. Would anybody know how to turn a GUI Button spawn menu into a GUI Grid List spawn menu? Below is the current code for a GUI Button Spawn Menu (some parts have been removed) addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource( ) ), function ( ) myWindow = guiCreateWindow ( 0.12, 0.1, 0.8, 0.8, "Twiva Spawn menu", true ) button = guiCreateButton( 0, 0.1, 0.2, 0.1, "Pilot", true, myWindow ) addEventHandler( "onClientGUIClick", button, spawner, false, myWindow ) end ) function spawner ( ) triggerServerEvent ( "onGreeting", ge
  13. Would you know which part of them scripts it would go in?
  14. I have a spawn menu in DP2.3 that works fine. I have tried putting it onto aa test server in nightly but when I spawn as a class you just see the sky and nothing else. The code for one of the classes is below... function spawncop ( message ) -- this one is cop spawnPlayer ( source, -1617.4661865234, 674.52569580078, 7.1875, -35, 280 ); fadeCamera ( source, true ); end addEvent( "spawncop", true ); addEventHandler( "spawncop", getRootElement(), spawncop ); Also the spawn GUI script is below addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource( ) )
  15. I want to make it so when you type /wanted it comes up with a list of all the wanted players. I have done everything but the outputChatBox part. What do I need to modify of the code below to make it only appear to the player who has typed /wanted? outputChatBox ( getClientName ( thePlayer ) .. " has a wanted level of " .. level .. " stars!" )
  16. Is there any way of making it so when i click a certain class on my spawn screen another box comes up prompting a password. If you get the password right you can spawn that class. If you get it wrong you don't spawn as that class and either have to retry entering the password or leaving that class alone. If for any reason you need my Button code it is below. button10 = guiCreateButton( 0.0, 1.0, 0.01, 0.01, "Admin", true, myWindow ) addEventHandler( "onClientGUIClick", button10, spawner10, false, myWindow )
  17. And does that go in a seperate .lua or in the .map file?
  18. There is a free login menu resource avalible. You can find it by clicking here.
  19. Can't you just add Playerblips into your resource directory and use that? I know all the blips are green but you can edit the script.
  20. Is anybody willing to release an extremely basic housing system script?
  21. I want to use this script that kicks a player for spawning a Rocket launcher or minigun. I used the command in the script "kickplayer (source)" but whenever somebody spawns one it says on console "WARNING: mini.lua: Access denied @ 'kickPlayer' - Line: 6". How yould I allow it to kick aa player??? Also is there a command to make an exeption for admin class???
  22. I have made a script for car spawn points all over LS the only problem is I can't seem to make a respawner. I need the cars to respawn 10 secs after they explode. Anybody got a basic script for that.
×
×
  • Create New...