Jump to content

Haze

Members
  • Posts

    83
  • Joined

  • Last visited

Everything posted by Haze

  1. Haze

    Can you Help Us

    Well I got this Script Frome Community And I Want to Add it Only For Admins that mean the Only Group should Use this script are the Admins Can some One Show me How to Make It thx https://community.multitheftauto.com/ind ... ails&id=71 root = getRootElement () players = getElementsByType ( "player" ) OS_Trigger = false OS_Active = false function ResourceStartOS ( name, root ) for k,v in ipairs(players) do bindKey ( v, "o", "down", placeOSBeacon ) end end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), ResourceStartOS ) function OSPlayerJoin () bindKey ( source, "o", "down", placeOSBeacon ) end addEventHandler ( "onPlayerJoin", root, OSPlayerJoin ) function placeOSBeacon ( player, key, state ) if ( OS_Trigger == false ) and ( OS_Active == false ) then OS_Trigger = true defineLaunchType = key showCursor ( player, true ) outputChatBox ( "Click to activate orbital strike. Press activation key again to cancel.", player, 105, 252, 55 ) elseif ( OS_Trigger == true ) then --Cancel activation OS_Trigger = false defineLaunchType = nil showCursor ( player, false ) outputChatBox ( "Orbital strike activation cancelled.", player, 105, 252, 55 ) end end function playerClick ( button, state, clickedElement, x, y, z ) if ( OS_Active ~= false ) then outputChatBox ( "Sorry, orbital strike already activated", source, 105, 252, 55 ) end if ( button ~= "left" ) or ( state ~= "down" ) or ( defineLaunchType ~= "o" ) then return end showCursor ( source, false ) OS_Trigger = false OS_Active = true defineLaunchType = nil --reset stuff triggerClientEvent ( "ClientFireOS", getRootElement(), x, y, z ) end addEventHandler ( "onPlayerClick", root, playerClick ) function OrbitalStrikeFinished () OS_Active = false end addEvent("serverOrbitalStrikeFinished", true) addEventHandler("serverOrbitalStrikeFinished", root, OrbitalStrikeFinished) if you need the Clinet i can post it
  2. Haze

    Cars_Team

    Ok Thanks i Willl Try Thank you for your Help
  3. Well I got this Script Frome Community And I Want to Add it Only For Admins that mean the Only Group should Use this script are the Admins Can some One Show me How to Make It thx https://community.multitheftauto.com/ind ... ails&id=71
  4. Haze

    Cars_Team

    can you Make the Code for Me plz I realy Need Your Help Plz
  5. Haze

    Cars_Team

    no its not Should i add the Name Of the Car in ACL Group or what Plz Can Tape what sould i Add in ACL group in The Team
  6. Haze

    Cars_Team

    dud its Not working Now Everyone Can Drive the Car I tried to Remove my Self Frome the ACL group and Try to Drive the car and its not working Can someone Help me Plz i Chek the ID of Cars and i chek The Teams Now everyone can Drive the Car and Hydra Plz Help plz
  7. Haze

    Cars_Team

    SCRIPT ERROR: Restricted_Cars\script2.lua:1: '}' expected near '[' [2011-06-20 22:57:03] WARNING: Loading script failed: Restricted_Cars\script2.lua:1: '}' expected near '[' I got this ERROR
  8. Haze

    Cars_Team

    Hi I want to make some Cars only for Admins and some other group Like Gangs for Example i want Hydra Only For Millitery We got Script That it Kick you Frome The Car if you are not a Millitery Skin it Kick you frome Hydra i want to Change it to Teams that mean with ACL not with The Skins Can some one Help 2.copVehicles = { [523]=true,[598]=true[596]=true,[597]=true,[599]=true} 3.copSkins = { [280]=true,[281]=true[282]=true,[283]=true,[284]=true,[288]=true } 4. 5.function copenterVehicle ( player, seat, jacked ) 6. if ( copVehicles[getElementModel ( source )] ) and ( not copSkins[getElementModel ( player )] ) and ( seat == 0 ) then 7. removePedFromVehicle ( player )--force the player out of the vehicle 8. outputChatBox ( "You aren't a Police Officer , you mayn't drive this.", player ) --and tell the player why 9. end 10.end 11.addEventHandler ( "onVehicleEnter", getRootElement(), copenterVehicle ) 12.
×
×
  • Create New...