SpikeRO3

Members
  • Content count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About SpikeRO3

  • Rank
    Vic
  • Birthday 17/07/94

Details

  • Gang
    SARP
  • Location
    Arad, Romania
  • Occupation
    Server administration, basketball, scripting
  1. thanks
  2. Hello. Yesterday i was making a script. When a player has wanted level > 0 and is in a specific team a timer clear his wanted level. But the script doesn't work, why? function wan() local players = getElementsByType ( "player" ) for theKey,thePlayer in ipairs(players) do local police = getTeamName(thePlayer) local wanted = getPlayerWantedLevel(thePlayer) if wanted > 0 and police == "San Andreas Police Department" then setPlayerWantedLevel ( thePlayer, 0 ) end end end setTimer(wan,100,0) addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), wan )
  3. Hello there! I'm working on a script in which all staff members have an image above The problem is that : fail to create "aclGetGroup". Please help me. imgW = 500 imgH = 90 function adminLogo() if (isGuestAccount(getPlayerAccount(v)) == false) then accountname = getAccountName (getPlayerAccount(v)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then local cX, cY, cZ = getCameraMatrix() local hX, hY, hZ = getPedBonePosition(player, -- s8) --> hZ = hZ + 0.5 local pX,pY,pZ = getPedBonePosition(localPlayer, -- s8) --> pZ = pZ + 0.5 if getScreenFromWorldPosition(hX, hY, hZ) and isLineOfSightClear(cX,cY,cZ, pX,pY,pZ) then local sX, sY, sD = getScreenFromWorldPosition(hX, hY, hZ) local relative = (50 - sD) / 50 if relative > 0 then local iW = imgW * relative local iH = imgH * relative local iX = sX - (iW / 2) local iY = sY - (iH / 2) dxDrawImage(iX, iY, iW, iH, "1.png") end end end end end addEventHandler("onClientRender", root, adminLogo)
  4. Helo! I want to disable / me command and do not know how. Please help me