Jump to content

[Help]Script


BadBoy

Recommended Posts

iam new in the forum but I learn some think :wink:

but now I want to know what did I wil use for :!:

if player in team police attack with weapon ID ( 3 ) player have wanted level then 8)

take the player have wanted level follow the player attacked him and his team police :)

and put player in marker . :fadein:

Hope You Guys UnderStand Me . ! :roll:

Link to comment

it's wil be like this ?

addEventHandler("onPlayerDamage",root, 
function( attacker, attackerweapon, _ , _ ) 
local players = getElementsByType ( "player" )  
for _,v in ipairs(players) do  
local team = getPlayerTeam(attacker) 
if ( team ) then 
if team = getTeamFromName ( "Police" ) then 
if ( attackerweapon == 3 ) then 
local x , y , z = getElementPosition ( attacker ) 
local rx , ry , rz = getElementRotation( attacker ) 
setElementPosition(v , x , y , z ) 
setElementRotation(v , rx , ry , rz ) 
toggleAllControls ( v, true )               
setControlState ( "walk", true ) 
              end 
           end 
        end 
     end 
  end 
) 
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...