Athanatos

  • Hero Member
  • Posts: 979
Re: create bots with this plugin
« Reply #105,  »
Quote from Ezio9805-P on February 2nd, 11:45 AM
Quote from Athanatos on September 15th, 2020, 07:54 PM
You need to sync the health in the server's code. Take the onPlayerShot client side function (or whatever it was) send a `damage` packet to the server and then sync the health manually. That's kinda the only way.
Is there really an event function for on player getting shot?
In client side - yes. It doesn't work for shotguns and melee.

SexAppeal

  • Newbie
  • Ready to die.
  • Posts: 18
Re: create bots with this plugin
« Reply #106,  »
A recommendation from me would be to add a condition when the player executes a plugin command, I have tested these commands on my server and I realized that they were available to all players who were not developers or administrators, so I modified the plugin so that only administrators can use it, to test use the function VCMP-> IsPlayerAdmin (playerid), in the game it would be a question of putting player.Admin = true;

Savage Programmer~ ドょ越

Sebastian

  • VC:MP Beta Tester
  • Something like this: hga hga hga
  • Posts: 1,145
Re: create bots with this plugin
« Reply #107,  »
Quote from SexAppeal on March 5th, 08:14 AM
A recommendation from me would be to add a condition when the player executes a plugin command, I have tested these commands on my server and I realized that they were available to all players who were not developers or administrators, so I modified the plugin so that only administrators can use it, to test use the function VCMP-> IsPlayerAdmin (playerid), in the game it would be a question of putting player.Admin = true;
If you added just a checker, why is your file's size so different than @habi 's ?!


SexAppeal

  • Newbie
  • Ready to die.
  • Posts: 18
Re: create bots with this plugin
« Reply #108,  »Last edited
Quote from Sebastian on March 11th, 11:00 PM
Quote from SexAppeal on March 5th, 08:14 AM
A recommendation from me would be to add a condition when the player executes a plugin command, I have tested these commands on my server and I realized that they were available to all players who were not developers or administrators, so I modified the plugin so that only administrators can use it, to test use the function VCMP-> IsPlayerAdmin (playerid), in the game it would be a question of putting player.Admin = true;
If you added just a checker, why is your file's size so different than @habi 's ?!
I honestly have no idea why the file weighs more than the original, just add a conditional and that's it.
Re: create bots with this plugin
« Reply #109,  »
Quote from Sebastian on March 11th, 11:00 PM
Quote from SexAppeal on March 5th, 08:14 AM
A recommendation from me would be to add a condition when the player executes a plugin command, I have tested these commands on my server and I realized that they were available to all players who were not developers or administrators, so I modified the plugin so that only administrators can use it, to test use the function VCMP-> IsPlayerAdmin (playerid), in the game it would be a question of putting player.Admin = true;
If you added just a checker, why is your file's size so different than @habi 's ?!
In the same way, it is not necessary to download my file precisely, you can add that conditional on your own as I showed in the example.

Savage Programmer~ ドょ越

Sebastian

  • VC:MP Beta Tester
  • Something like this: hga hga hga
  • Posts: 1,145
Re: create bots with this plugin
« Reply #110,  »
Yeah, indeed.
Also, meanwhile, @SLC enumerated few reasons why a file size can be different, even if with the almost same code:


Don't take it personally, but it was too strange for me :)

SexAppeal

  • Newbie
  • Ready to die.
  • Posts: 18
Re: create bots with this plugin
« Reply #111,  »
Quote from Sebastian on March 12th, 12:34 AM
Yeah, indeed.
Also, meanwhile, @SLC enumerated few reasons why a file size can be different, even if with the almost same code:


Don't take it personally, but it was too strange for me :)
Haha no problem friend, I would still be suspicious of someone who uploads a file like this out of nowhere XD

Savage Programmer~ ドょ越

gta5

  • Newbie
  • Posts: 16