Jump to content

Jail system


Recommended Posts

Posted

hello everyone

I have a server, and I want to make a jail system + wanted system

for example: when a player kill player get 1 Star, and when player get 3 Stars, go to jail automatically

anyone can help me :)?

76561198387870432.png

ZI ZOMBIE INFECTION: mtasa://5.196.7.163:22003

560x95_FFFFFF_FF9900_000000_000000.png

Posted

try it by yourself, i'll give you the functions you need

getPlayerWantedLevel -- check player wanted level 
setElementPosition -- for the jail 
onPlayerWasted -- you need this function if the wanted player dies(kill arrest) 

Aftermath

Posted

7d595a51fc.png

it's an event not a function. anyways all what you need is:

-- Function 
getPlayerWantedLevel() 
setPlayerWantedLevel() 
setElementPosition() 
getElementType() 
  
-- Events  
onPlayerWasted 

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

yes i know , i meant here are the things you'll need, sorry bout that.

-- Function 
getPlayerWantedLevel() -- get player wanted level if his wanted level is above 0 
setPlayerWantedLevel() -- if released, you set his wanted level to 0 
setElementPosition() -- setElementPosition to the jail place / release place 
getElementType() -- make a check / define 
  
-- Events  
onPlayerWasted 

Aftermath

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