Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 18/12/21 in all areas

  1. لا يمكن معرفة المحتوى المنسوخ من قبل المستخدم لأسباب أمنية
    1 point
  2. لاشكر علي واجب وحته لونسيت كل انسان ينسه العفو اخي الكريم
    1 point
  3. Have you tried using an onClientVehicleDamage event handler? I am not entirely sure how to implement it as code either because I am not sure how the "theAttacker" parameter is provided to the event handler, but the idea is the following: check inside of the event handler for any player's vehicle that got damaged and see if theAttacker is the vehicle of a different player who is at the same time the driver. if true then use the setPlayerWantedLevel function to assign a new wanted level The clientside skeleton could look like this: addEventHandler("onClientVehicleDamage", root, function(theAttacker) local damVehDriver = getVehicleOccupant(source, 0) if not (damVehDriver == localPlayer) then return end if not (getElementType(theAttacker) == "vehicle") then return end local vehOwner = getVehicleOccupant(theAttacker, 0) if not (vehOwner) or (vehOwner == localPlayer) then return end -- TODO: send an event to the server to notify that vehOwner has attacked -- the vehicle of localPlayer. The server should decide what to do in this situation -- for example call the setPlayerWantedLevel function. end ); Then you need a server-side custom event handler in which you receive both the player whose vehicle was damaged (A) and the driver of the attacking vehicle (B). You should perform some security checks like the player A being a cop and B not being a cop, etc. Then you should call the setPlayerWantedLevel function on B if the condition is met.
    1 point
  4. https://github.com/Vadya963/50pSublimeText3Package updated to version 1.5.7
    1 point
  5. i added dxDrawColorText ("#00BAFF" .. getPlayerName(player) .. " (" .. isAFK .. ")", sx-w, sy - offset, sx, sy - offset, tocolor(r,g,b,textalpha), player ~= g_Me and textscale*NAMETAG_TEXTSIZE or (textscale*NAMETAG_TEXTSIZE)/1.5, srfont, "center", "bottom", false, false, false ) but i got this error: attempt to concatenate global 'isAFK' a function value
    1 point
×
×
  • Create New...