Jump to content

stopping vehicle , Staff Team


Annas

Recommended Posts

Posted

i need a stuff for STAFF TEAM ..

when i click "C" Bind , the vehicle stoped in 1sec in it PLACE .

(i need it only team named "Staff" can do this ..)

Thx.

Posted
i need a stuff for STAFF TEAM ..

when i click "C" Bind , the vehicle stoped in 1sec in it PLACE .

(i need it only team named "Staff" can do this ..)

Thx.

use

setElementFrozen () 

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

Posted

it can be like this:

function stopVehicle(player) 
    if (getTeamName(getPlayerTeam(player)) == "Staff") then 
    local vehicles = getElementsByType("vehicle") 
        for i , vehicle in pairs (vehicles) do 
        local Freeze = isElementFrozen (vehicle) 
        local newStatus = not Freeze 
        setElementFrozen (vehicle, newStatus ) 
        end 
    end  
end  
addCommandHandler("stop", stopVehicle) 

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

Posted

I don't think you can use "/stop", since it's a MTA hard coded command ( for stopping resources ).

Change the vehicle to something else, such as "freezevehs".

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
:~ not work ..

i make it CLEINT SIDE = not work

SERVER SIDE = Not Work

pls help me ..

it's server side code, replace /stop with any other command it's just an example.

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

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...