Liberty Unleashed

Liberty Unleashed => Support => Topic started by: rwwpl on August 26, 2014, 10:56:02 am

Title: SetWeaponData and weapon.dat doesn't work
Post by: rwwpl on August 26, 2014, 10:56:02 am
Example

Code: [Select]
function onServerStart()
{
SetWeaponData(6,WEAPONINFO_CLIPAMMO,1);
SetWeaponData(6,WEAPONINFO_DAMAGE,0);
}

And on the server M16 have 60 ammo...
Title: Re: SetWeaponData and weapon.dat doesn't work
Post by: xMerkel on August 26, 2014, 11:12:25 am
SetWeaponData not works (idk)

Copy 'weapon.dat' from your GTA3 dir located in /data/ to your server dir in /LU/data/
Title: Re: SetWeaponData and weapon.dat doesn't work
Post by: rwwpl on August 26, 2014, 12:04:59 pm
SetWeaponData not works (idk)

Copy 'weapon.dat' from your GTA3 dir located in /data/ to your server dir in /LU/data/


"SetWeaponData and weapon.dat doesn't work"

weapon.dat also does not work ...


--------------------------------
Next bug.

SetServerRule not working properly. (works only with server.conf)

example:
Code: [Select]
SetServerRule("Gamemode","LU-DM 1.3e");
(http://i60.tinypic.com/rv8uwz.png)
Title: Re: SetWeaponData and weapon.dat doesn't work
Post by: xMerkel on August 26, 2014, 02:17:20 pm
All things works.

Update your server (download again)

Add:

Code: [Select]
function onServerStart ( ) {

SetServerRule ( "Gamemode", "LU-DM 1.3e" );
}

If not works, the function onServerStart was already added
Title: Re: SetWeaponData and weapon.dat doesn't work
Post by: rwwpl on August 26, 2014, 03:03:29 pm
All things works.

Update your server (download again)

Add:

Code: [Select]
function onServerStart ( ) {

SetServerRule ( "Gamemode", "LU-DM 1.3e" );
}

If not works, the function onServerStart was already added

Still not working.
Title: Re: SetWeaponData and weapon.dat doesn't work
Post by: xMerkel on August 26, 2014, 03:05:29 pm
All things works.

Update your server (download again)

Add:

Code: [Select]
function onServerStart ( ) {

SetServerRule ( "Gamemode", "LU-DM 1.3e" );
}

If not works, the function onServerStart was already added

Still not working.

Then idk, i don't have idea why fails lol. Other idea is show all code
Title: Re: SetWeaponData and weapon.dat doesn't work
Post by: rwwpl on August 26, 2014, 03:30:48 pm
I found bug!

When I add to server.conf

Code: [Select]
server_rule motd http://www.lu-dm.y0.pl/server/ludm.rtf
it, this code:

Code: [Select]
function onServerStart ( ) {

SetServerRule ( "Gamemode", "LU-DM 1.3e" );
}

does not work.

Title: Re: SetWeaponData and weapon.dat doesn't work
Post by: xMerkel on August 26, 2014, 04:16:36 pm
Post it on Mantis (http://mantis.liberty-unleashed.co.uk)
Title: Re: SetWeaponData and weapon.dat doesn't work
Post by: rwwpl on August 27, 2014, 01:00:54 pm
I did not get a confirmation e-mail.

And next bug

player.Alpha also did not work.
Title: Re: SetWeaponData and weapon.dat doesn't work
Post by: xMerkel on August 27, 2014, 04:57:10 pm
I did not get a confirmation e-mail.

And next bug

player.Alpha also did not work.

Alpha works with many skins (not ID 0, 122...)
In confirmation email, click in 'Re-send' or lost password
Title: Re: SetWeaponData and weapon.dat doesn't work
Post by: rwwpl on August 27, 2014, 05:17:16 pm
I did not get a confirmation e-mail.

And next bug

player.Alpha also did not work.

Alpha works with many skins (not ID 0, 122...)
In confirmation email, click in 'Re-send' or lost password

Ok, alpha works, but I can't restore normal alpha level.

As for Mantis, this did not help.
Title: Re: SetWeaponData and weapon.dat doesn't work
Post by: xMerkel on August 27, 2014, 05:19:54 pm
I did not get a confirmation e-mail.

And next bug

player.Alpha also did not work.

Alpha works with many skins (not ID 0, 122...)
In confirmation email, click in 'Re-send' or lost password

Ok, alpha works, but I can't restore normal alpha level.

As for Mantis, this did not help.

The default level is 255
Title: Re: SetWeaponData and weapon.dat doesn't work
Post by: rwwpl on August 27, 2014, 05:59:48 pm
I did not get a confirmation e-mail.

And next bug

player.Alpha also did not work.

Alpha works with many skins (not ID 0, 122...)
In confirmation email, click in 'Re-send' or lost password

Ok, alpha works, but I can't restore normal alpha level.

As for Mantis, this did not help.

The default level is 255

I know. Only gave a value of 0 and then as I change for example. 255, nothing happened.
Title: Re: SetWeaponData and weapon.dat doesn't work
Post by: xMerkel on August 27, 2014, 06:20:29 pm
-- bla bla bla, text --

For me works
Title: Re: SetWeaponData and weapon.dat doesn't work
Post by: rwwpl on August 27, 2014, 06:40:04 pm
-- bla bla bla, text --

For me works

Ok, i had a small mistake in my /setalpha command and fixed it ;)