Author Topic: SetWeaponData and weapon.dat doesn't work  (Read 2831 times)

rwwpl

  • Full Member
  • ***
  • Posts: 126
  • Karma: +18/-6
  • LU-DM Team
    • View Profile
    • LU-DM Team
SetWeaponData and weapon.dat doesn't work
« on: August 26, 2014, 11: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...

xMerkel

  • Newbie
  • *
  • Posts: 34
  • Karma: +1/-12
  • Cpp
    • View Profile
Re: SetWeaponData and weapon.dat doesn't work
« Reply #1 on: August 26, 2014, 12:12:25 pm »
SetWeaponData not works (idk)

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

rwwpl

  • Full Member
  • ***
  • Posts: 126
  • Karma: +18/-6
  • LU-DM Team
    • View Profile
    • LU-DM Team
Re: SetWeaponData and weapon.dat doesn't work
« Reply #2 on: August 26, 2014, 01: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");
« Last Edit: August 26, 2014, 01:35:52 pm by rwwpl »

xMerkel

  • Newbie
  • *
  • Posts: 34
  • Karma: +1/-12
  • Cpp
    • View Profile
Re: SetWeaponData and weapon.dat doesn't work
« Reply #3 on: August 26, 2014, 03: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

rwwpl

  • Full Member
  • ***
  • Posts: 126
  • Karma: +18/-6
  • LU-DM Team
    • View Profile
    • LU-DM Team
Re: SetWeaponData and weapon.dat doesn't work
« Reply #4 on: August 26, 2014, 04: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.

xMerkel

  • Newbie
  • *
  • Posts: 34
  • Karma: +1/-12
  • Cpp
    • View Profile
Re: SetWeaponData and weapon.dat doesn't work
« Reply #5 on: August 26, 2014, 04: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

rwwpl

  • Full Member
  • ***
  • Posts: 126
  • Karma: +18/-6
  • LU-DM Team
    • View Profile
    • LU-DM Team
Re: SetWeaponData and weapon.dat doesn't work
« Reply #6 on: August 26, 2014, 04: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.


xMerkel

  • Newbie
  • *
  • Posts: 34
  • Karma: +1/-12
  • Cpp
    • View Profile
Re: SetWeaponData and weapon.dat doesn't work
« Reply #7 on: August 26, 2014, 05:16:36 pm »
Post it on Mantis

rwwpl

  • Full Member
  • ***
  • Posts: 126
  • Karma: +18/-6
  • LU-DM Team
    • View Profile
    • LU-DM Team
Re: SetWeaponData and weapon.dat doesn't work
« Reply #8 on: August 27, 2014, 02:00:54 pm »
I did not get a confirmation e-mail.

And next bug

player.Alpha also did not work.

xMerkel

  • Newbie
  • *
  • Posts: 34
  • Karma: +1/-12
  • Cpp
    • View Profile
Re: SetWeaponData and weapon.dat doesn't work
« Reply #9 on: August 27, 2014, 05: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

rwwpl

  • Full Member
  • ***
  • Posts: 126
  • Karma: +18/-6
  • LU-DM Team
    • View Profile
    • LU-DM Team
Re: SetWeaponData and weapon.dat doesn't work
« Reply #10 on: August 27, 2014, 06: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.

xMerkel

  • Newbie
  • *
  • Posts: 34
  • Karma: +1/-12
  • Cpp
    • View Profile
Re: SetWeaponData and weapon.dat doesn't work
« Reply #11 on: August 27, 2014, 06: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

rwwpl

  • Full Member
  • ***
  • Posts: 126
  • Karma: +18/-6
  • LU-DM Team
    • View Profile
    • LU-DM Team
Re: SetWeaponData and weapon.dat doesn't work
« Reply #12 on: August 27, 2014, 06: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.

xMerkel

  • Newbie
  • *
  • Posts: 34
  • Karma: +1/-12
  • Cpp
    • View Profile
Re: SetWeaponData and weapon.dat doesn't work
« Reply #13 on: August 27, 2014, 07:20:29 pm »
-- bla bla bla, text --

For me works

rwwpl

  • Full Member
  • ***
  • Posts: 126
  • Karma: +18/-6
  • LU-DM Team
    • View Profile
    • LU-DM Team
Re: SetWeaponData and weapon.dat doesn't work
« Reply #14 on: August 27, 2014, 07:40:04 pm »
-- bla bla bla, text --

For me works

Ok, i had a small mistake in my /setalpha command and fixed it ;)
« Last Edit: August 27, 2014, 07:44:12 pm by rwwpl »

 

© Liberty Unleashed Team.