Jump to content

johhnhd

Members
  • Posts

    45
  • Joined

  • Last visited

Everything posted by johhnhd

  1. I am having trouble with a login script a friend gave us it a while a go and now it has created problems can anyone help?
  2. guys if you read the whole thing i say i acknowledge it is server side
  3. I don't have a clue on how to manipulate this to onPlayerLogin. Here is my attempt client addEventHandler("onPlayerLogin", resourceRoot, function() spawnwnd = guiCreateWindow(0, 0, 1440, 900, "Spawn Selection", false) guiWindowSetMovable(spawnwnd, true) guiWindowSetSizable(spawnwnd, false) tabSpawn = guiCreateTabPanel(10, 21, 1420, 869, false, spawnwnd) basemode = guiCreateTab("Los Santos", tabSpawn) --basemode-- red = guiCreateButton(0, 5, 707, 840, "Grove Street", false, basemode) blue = guiCreateButton(712, 5, 707, 840, "Ballas", false, basemode) showCursor (true) --basemode-- addEventHandler ("onClientGUIClick", red, spawnRed, false) addEventHandler ("onClientGUIClick", blue, spawnBlue, false) end ) I know it is a server side script but I dont know how to link it. this is the original script addEventHandler("onClientResourceStart", resourceRoot, function() spawnwnd = guiCreateWindow(0, 0, 1440, 900, "Spawn Selection", false) guiWindowSetMovable(spawnwnd, true) guiWindowSetSizable(spawnwnd, false) tabSpawn = guiCreateTabPanel(10, 21, 1420, 869, false, spawnwnd) basemode = guiCreateTab("Los Santos", tabSpawn) --basemode-- red = guiCreateButton(0, 5, 707, 840, "Grove Street", false, basemode) blue = guiCreateButton(712, 5, 707, 840, "Ballas", false, basemode) showCursor (true) --basemode-- addEventHandler ("onClientGUIClick", red, spawnRed, false) addEventHandler ("onClientGUIClick", blue, spawnBlue, false) end )
  4. Yes I have tried it and it still comes up with the error.
  5. This is the error This is the script vehicle1 = createVehicle( 433, 2870.1000976563, 963.20001220703, 11.300000190735, 0, 0, 136 ) vehicle = createVehicle( modelID, x, y, z, rotX, rotY, rotZ ) state = setVehicleDoorState ( vehicle, 1, 1 ) addEventHandler("onVehicleStartEnter", root, function(player) if getPlayerTeam(player) ~= getTeamFromName("MI-6") then cancelEvent() end end) EDIT: It won't let people in the MI-6 team enter the vehicle.
  6. It keeps coming up Access Denied @ 'addAccount' so i add the resource in the console acl (resource.login) and it keeps coming up with the same problem and it does have the right to add account
  7. I am using 50p spawn menu and i was wondering if anyone has a teamsaver that saves the team on the score board and lets people join it from the spawn menu and if there is anyway i could replace the password with an acl checker to see if they're in the acl group. Many thanks John.
  8. johhnhd

    Gang spawn

    Yes I know is there any script I can use to do it ?
  9. Ok thanks I will test now
  10. johhnhd

    Gang spawn

    So currently I am using 50p's spawn with passwords, but I have Castillo's gang system. I was wondering if I could get rid of the password and since when I press tab it comes up with group. I could use that to lock spawns to gangs?
  11. Is this /lock or like when you spawn and go up to it you can only enter if youre that user
  12. All I want to do is lock or edit a car that only the person who can use it is the one who is locked/edited to it.
  13. I'm stuck on finding a script to lock cars to players(usernames). I'm hoping someone can point me in the right direction cheers:)
  14. Is there a way I can lock a vehicle to skin (or team)?
  15. I recently downloaded a roleplay and want to play it on my server i dont know what to do help! http://code.google.com/p/mta-venux/downloads/list Thats the roleplay I got.
  16. johhnhd

    Admin panel help

    I need help with the admin panel.It wont show up and I have done the acl There is the admin bit of acl my username is pro.Please can you post the solution!
×
×
  • Create New...