Jump to content

[Help] improve server !


Yussuf

Recommended Posts

  • Replies 53
  • Created
  • Last Reply

Top Posters In This Topic

Please , I have other questions :

1-Standard Hud.....

2-When player die , he lost his weapon ! I want disable it ! how ?

3- I want that players colors (in chatbox/radar) be assigned by color's gang ! if they didn't join any gang , the default color is white ! how can I do it ???

Link to comment
function onPlayerWastedRestoreWeapons(ammo, killer) 
for i=0,12 do 
local weapon = getPedWeapon(source,i) 
local ammo = getPedTotalAmmo(source,i) 
setTimer(giveWeapon,2500,1,source,weapon,ammo,true) 
  end 
end 
addEventHandler("onPlayerWasted",getRootElement(),onPlayerWastedRestoreWeapons) 

<meta> 
    <info author="Castillo" type="script" name="restore weapons on wasted." /> 
    <script src="server.lua" /> 
</meta> 

Try that, it should work (not tested).

Edited by Guest
Link to comment
  • 2 weeks later...

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