Jump to content

Jokeℝ1472771893

Members
  • Posts

    334
  • Joined

  • Last visited

Everything posted by Jokeℝ1472771893

  1. need to be in ACL group Admin. but i try its don't work
  2. function createBarrier(player) if isFBI(player) then local x,y,z = getElementPosition(player) local xR,yR,zR = getElementRotation(player) createObject(3091,x,y,z,xR,yR,zR) end addCommandHandler("sperre",createBarrier) Like This?
  3. the same thing here viewtopic.php?f=91&t=43342 -_-" its not same topic I ask how FBI can make Barriers
  4. its in ACL need to be Admin or need to be in Staff Team?
  5. and how to make thet only FBI for example can do it?
  6. function createBarrier() local x,y,z = getElementPosition(getLocalPlayer()) local xR,yR,zR = getElementRotation(getLocalPlayer()) createObject(3091,x,y,z,xR,yR,zR) end addCommandHandler("sperre",createBarrier) Its make Barrier but only me can see it other players can't see
  7. function togglestaffMode(thePlayer) local account = getPlayerAccount(thePlayer) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) ) then if getElementData(thePlayer,"invincible") then setElementData(thePlayer,"invincible",false) outputChatBox("Staff Mode is now off.",thePlayer,255,255,255) else setElementData(thePlayer,"invincible",true) outputChatBox("Staff Mode is now on.",thePlayer,255,255,255) end end end addCommandHandler("gostaff",togglestaffMode) How to make Admins Never Die and the player who whant to kill Admin loose Health?
  8. что тут добавить что Админы не умерали никогда и кто хочет убить админа умирает сам function togglestaffMode(thePlayer) local account = getPlayerAccount(thePlayer) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) ) then if getElementData(thePlayer,"invincible") then setElementData(thePlayer,"invincible",false) outputChatBox("Staff Mode is now off.",thePlayer,255,255,255) else setElementData(thePlayer,"invincible",true) outputChatBox("Staff Mode is now on.",thePlayer,255,255,255) end end end addCommandHandler("gostaff",togglestaffMode)
  9. local Skinmarker = createMarker ( 95.599998474121, 931.40002441406, 16.89999961853, "cylinder", 1.5, 33, 33, 33, 255 ) -- umkleide local theTeam = createTeam ( "Armed Force", 42, 77, 0 ) addEventHandler ( "onMarkerHit", Skinmarker, function ( hitElement ) if ( isPedInVehicle ( hitElement ) ) then return end if ( not isFBI ( hitElement ) ) then return end setElementModel ( hitElement, 287 ) setPlayerTeam ( hitElement, theTeam ) giveWeapon ( hitElement, 31, 1000, true ) giveWeapon ( hitElement, 3, 1, true ) giveWeapon ( hitElement, 29, 1000, true ) giveWeapon ( hitElement, 27, 1000, true ) end ) function isFBI ( thePlayer ) if ( not thePlayer ) then return false end local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) return isObjectInACLGroup ("user."..accName, aclGetGroup ( "FBI" ) ) end How to make it onmarkerhit set player team Armed Force?
  10. But it gives all player i need that it give weapon only ACL group member
  11. local Skinmarker = createMarker(931.40002441406, -1030.9000244141, 30.89999961853, "cylinder", 1.5, 33, 33, 33, 255) -- umkleide local theTeam = createTeam( "FBI", 31, 31, 31 ) addEventHandler("onMarkerHit", Skinmarker, function(hitElement) if(isPedInVehicle(hitElement)) then return end if not(isFBI(hitElement)) then return end setElementModel(hitElement, 286) setPlayerTeam(hitElement, theTeam) end) function isFBI(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "FBI" ) ) then return true; else return false; end end how to give weapon here?
  12. vehicleMarker = createMarker (938.79998779297,-1053.1999511719,30.60000038147, 'cylinder', 2.0, 16, 16, 16, 255 ) function vehicleMarkerHit ( hitElement, matchingDimension ) if ( isElement( hitElement ) and getElementType( hitElement ) == "player" and not isPedInVehicle (hitElement)) then local team = getPlayerTeam ( hitElement ) if ( getTeamName( team ) == "FBI" ) then local x, y, z = getElementPosition( hitElement ) local vehicle = createVehicle ( 490, 938.79998779297, -1050.5, 31.89999961853, 0, 0, 0 ) warpPedIntoVehicle( hitElement, vehicle ) else outputChatBox( "You must be on the FBI to use this.", hitElement, 255, 0, 0 ) end end end addEventHandler( "onMarkerHit", vehicleMarker , vehicleMarkerHit ) this make car onmarkerhit but how to make it like that when take first car and whant take second car first car disappear?
  13. it is by ACL group or Team maded by Admin Panel
×
×
  • Create New...