Jump to content


  • Posts

  • Joined

  • Last visited

JohnDoe91286's Achievements


Rat (9/54)



  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", getRootElement(), resetWanted )
  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


    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", getLocalPlayer() ) end function spawned ( ) guiSetVisible ( myWindow, false ) guiSetVisible ( myWindow2, false ) showCursor(false) end addEventHandler ( "onClientPlayerSpawn", getLocalPlayer(), spawned ) function died ( ) guiSetVisible ( myWindow, true ) guiSetVisible ( pic1, true ) guiSetVisible ( pic2, true ) fadeCamera ( source, false ) end addEventHandler ( "onClientPlayerWasted", getLocalPlayer(), died ) function changeVisibility ( ) -- we check if the gui element is visible if guiGetVisible ( myWindow ) then -- if it is, we hide it showCursor(true) else showCursor(false) end end setTimer ( changeVisibility, 1000, 0 )
  • Create New...