Author Topic: Disable Weapon Damage ? Need Help  (Read 7603 times)

0 Members and 1 Guest are viewing this topic.

Offline killvn1

  • Street Thug
  • *
  • Posts: 33
    • View Profile
Disable Weapon Damage ? Need Help
« on: May 02, 2013, 10:22:56 am »
I see in some vc-mp server they can disable weapon damage in Bank's Area .

Wow ... can i do this ?  :) You guy have any idea ?  :-*
« Last Edit: May 02, 2013, 10:25:43 am by killvn1 »

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: Disable Weapon Damage ? Need Help
« Reply #1 on: May 02, 2013, 10:43:01 am »
This is possible to implement in Squirrel, but not in Pawn.

http://vcmp.liberty-unleashed.co.uk
Do not PM me for support.




Offline aledark24

  • Made Man
  • ***
  • Posts: 206
  • I am a scripter and you have celous of me....so you crashed my servers
    • View Profile
Re: Disable Weapon Damage ? Need Help
« Reply #2 on: May 02, 2013, 02:45:12 pm »
i hate you pawn..... xD
so many bugs.... or
so many missing function
I am a great scripter and you are celous of my works
.....

Vice City Life Multiplayer By Saint

Offline dynavolt71

  • Crime Boss
  • ****
  • Posts: 371
    • View Profile
    • My Blog
Re: Disable Weapon Damage ? Need Help
« Reply #3 on: May 04, 2013, 05:04:47 pm »
i hate you pawn..... xD
so many bugs.... or
so many missing function
Why you learn pawn ?
[PAWNO]Fix Error " Failed to set data for "" " - http://forum.vicecitymultiplayer.com/index.php?topic=5743.0



:'(

Offline [AoD]NC

  • VC:MP Beta Tester
  • VC:MP Veteran
  • *
  • Posts: 616
  • AoD forever!
    • View Profile
    • KURWA MAĆ
Re: Disable Weapon Damage ? Need Help
« Reply #4 on: May 04, 2013, 05:08:01 pm »
Or

You can remove every weapon from a player when entering the bank and give it back when he leaves it :).

Offline dynavolt71

  • Crime Boss
  • ****
  • Posts: 371
    • View Profile
    • My Blog
Re: Disable Weapon Damage ? Need Help
« Reply #5 on: May 04, 2013, 05:11:41 pm »
By pickup ?
[PAWNO]Fix Error " Failed to set data for "" " - http://forum.vicecitymultiplayer.com/index.php?topic=5743.0



:'(

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: Disable Weapon Damage ? Need Help
« Reply #6 on: May 04, 2013, 05:32:57 pm »
Or

You can remove every weapon from a player when entering the bank and give it back when he leaves it :).
By pickup ?

You could use pickups, but if too many people are entering and exiting the bank at the same time, and the pickup does not respawn quickly enough, players will be able to enter the bank with their weapons. For example, someone is chasing another person who runs into the bank. The player running into the bank loses their weapons because they ran into the pickup. However, the pickup takes 15 or 30 seconds to respawn. The player chasing them can run after them and start shooting this defenseless player.
Do not PM me for support.




Offline aledark24

  • Made Man
  • ***
  • Posts: 206
  • I am a scripter and you have celous of me....so you crashed my servers
    • View Profile
Re: Disable Weapon Damage ? Need Help
« Reply #7 on: May 04, 2013, 07:00:40 pm »
i hate you pawn..... xD
so many bugs.... or
so many missing function
Why you learn pawn ?
because is easy for me....
sq dont like so much...
so i choose pawn
I am a great scripter and you are celous of my works
.....

Vice City Life Multiplayer By Saint

Offline [AoD]NC

  • VC:MP Beta Tester
  • VC:MP Veteran
  • *
  • Posts: 616
  • AoD forever!
    • View Profile
    • KURWA MAĆ
Re: Disable Weapon Damage ? Need Help
« Reply #8 on: May 04, 2013, 11:34:53 pm »
Or another concept: the script checks every few seconds if the player is carrying a weapon in El Corupto Bank and if he got a weapon then throw him outside the bank + send a pm "remove your weapon to enter" (switch to "fist").

Guys, more creativity :D. If disabling sync is not possible in PAWN then let's find something that fits to our need ;).

Offline killvn1

  • Street Thug
  • *
  • Posts: 33
    • View Profile
Re: Disable Weapon Damage ? Need Help
« Reply #9 on: May 05, 2013, 06:29:16 am »
[pawn]public OnGameModeInit()
{

   SetTimer("Disable Bank Weapon",100, 1);

}
[/pawn]



it's a simplest way.But i hate use settime  :-[ . Cause server become lag :(

Offline dynavolt71

  • Crime Boss
  • ****
  • Posts: 371
    • View Profile
    • My Blog
Re: Disable Weapon Damage ? Need Help
« Reply #10 on: May 05, 2013, 09:25:46 am »
You want set what lol ?
[PAWNO]Fix Error " Failed to set data for "" " - http://forum.vicecitymultiplayer.com/index.php?topic=5743.0



:'(

Offline [AoD]NC

  • VC:MP Beta Tester
  • VC:MP Veteran
  • *
  • Posts: 616
  • AoD forever!
    • View Profile
    • KURWA MAĆ
Re: Disable Weapon Damage ? Need Help
« Reply #11 on: May 05, 2013, 02:27:15 pm »
Well, you must be crazy to set a 100 ms timer. If VCMP would have client-side scripting then 100 ms is okay, but for server-side scripting 100 ms is not a good solution. A timer set to 1 or more seconds is the best solution.

Offline dynavolt71

  • Crime Boss
  • ****
  • Posts: 371
    • View Profile
    • My Blog
Re: Disable Weapon Damage ? Need Help
« Reply #12 on: May 05, 2013, 03:07:12 pm »
1000 ms = 1 sec
[PAWNO]Fix Error " Failed to set data for "" " - http://forum.vicecitymultiplayer.com/index.php?topic=5743.0



:'(

Offline killvn1

  • Street Thug
  • *
  • Posts: 33
    • View Profile
Re: Disable Weapon Damage ? Need Help
« Reply #13 on: May 05, 2013, 03:19:22 pm »
Well, you must be crazy to set a 100 ms timer. If VCMP would have client-side scripting then 100 ms is okay, but for server-side scripting 100 ms is not a good solution. A timer set to 1 or more seconds is the best solution.

But back in my server , it's already use alot of settime :( . I didn't want to use more Settime so I have an idea :

[pawn]On player Death
{
if(strcmp(GetPlayerLocation(killerid), "Bank Area", true) == 0)
{
SendClientMessage(playerid, RED, "Congratulation ... I have a BIG Surprise for you");
Ban(killerid);
}
}[/pawn]

Tough guy huh ?
« Last Edit: May 05, 2013, 03:24:52 pm by killvn1 »

Offline dynavolt71

  • Crime Boss
  • ****
  • Posts: 371
    • View Profile
    • My Blog
Re: Disable Weapon Damage ? Need Help
« Reply #14 on: May 05, 2013, 03:37:28 pm »
:o wat ?!!!
[PAWNO]Fix Error " Failed to set data for "" " - http://forum.vicecitymultiplayer.com/index.php?topic=5743.0



:'(