Raised This Month: $7 Target: $400
 1% 

Subplugin Submission [ZP] Bot Addon: Give Random Extra


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 03-13-2017 , 18:56   [ZP] Bot Addon: Give Random Extra
Reply With Quote #1

[ZP] Bot Addon: Give Random Extra

By: Crazy


Description:
Quote:
This plugin give a random extra item to humans bot when the round start.
Cvars:
Quote:
* zp_random_give_enable <0/1> - Plugin enabled.
* zp_random_give_maxbots <number> - Max bots.
Configuration:
Quote:
/*============================================ ====================================
[Plugin Customization]
============================================= ====================================*/

// Items name (note: dont forget of add exact item name.)

new const EXTRA_ITEMS[][] = {
"Item Name 0",
"Item Name 1",
"Item Name 2",
"Item Name 3"
}
Change Log:
Quote:
* v1.0: (Mar 2017)
- First release;

* v1.1: (Mar 2017)
- Code updated, fixed the problem with survivor/plague rounds;
Credits:
Quote:
* MeRcyLeZZ: for the nice zombie plague mod.
* Crazy: created the plugin code.
* And all zombie-mod players that use this plugin.
Enjoy!
Attached Files
File Type: sma Get Plugin or Get Source (zp_bot_force_buy_items.sma - 1496 views - 2.6 KB)

Last edited by CrazY.; 03-20-2017 at 19:27. Reason: Updated to v1.1
CrazY. is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 03-20-2017 , 19:28   Re: [ZP] Bot Addon: Give Random Extra
Reply With Quote #2

New update!
__________________








CrazY. is offline
Rainbowdash98
New Member
Join Date: Jan 2018
Old 01-05-2018 , 11:57   Re: [ZP] Bot Addon: Give Random Extra
Reply With Quote #3

Quote:
Originally Posted by CrazY. View Post
New update!
hey man i know this plugin it long time now how i can "exact item name" ???
Rainbowdash98 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 01-05-2018 , 16:09   Re: [ZP] Bot Addon: Give Random Extra
Reply With Quote #4

Are the names that are enclosed in the brackets that are saved in the extra items file.
__________________








CrazY. is offline
New and Clueless
Senior Member
Join Date: Dec 2015
Old 02-07-2018 , 22:45   Re: [ZP] Bot Addon: Give Random Extra
Reply With Quote #5

Code:
L 02/06/2018 - 21:25:18: [ZP] Invalid Player (7)
L 02/06/2018 - 21:25:18: [AMXX] Displaying debug trace (plugin "zp_bot_force_buy_items.amxx")
L 02/06/2018 - 21:25:18: [AMXX] Run time error 10: native error (native "zp_force_buy_extra_item")
L 02/06/2018 - 21:25:18: [AMXX]    [0] zp_bot_force_buy_items.sma::give_item (line 127)

Spoiler


Also this plugin causes some weird crash in my server.

If I use admin menu and make myself sniper/nemesis or assassin or survivor the server crashes and restarts. Sometimes happens when the game chooses the mode itself. E.g. game chooses nemesis round and then server crashes and restarts.
__________________

ANY SCRIPTER ON THIS FORUM HAS FREE VIP/ADMIN IN MY SERVER!

Last edited by New and Clueless; 02-07-2018 at 22:46.
New and Clueless is offline
New and Clueless
Senior Member
Join Date: Dec 2015
Old 02-11-2018 , 18:04   Re: [ZP] Bot Addon: Give Random Extra
Reply With Quote #6

Any idea for this?
__________________

ANY SCRIPTER ON THIS FORUM HAS FREE VIP/ADMIN IN MY SERVER!
New and Clueless is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 02-12-2018 , 20:08   Re: [ZP] Bot Addon: Give Random Extra
Reply With Quote #7

Same of this: https://forums.alliedmods.net/showth...=295303&page=2 (is_user_alive)
__________________








CrazY. is offline
okbede_123
Member
Join Date: May 2019
Old 05-29-2019 , 22:36   Re: [ZP] Bot Addon: Give Random Extra
Reply With Quote #8

so this game is weak player. i think play with bot and make them smart is good idea. can you make them smart moẻ? example : they can use parachute, create lasemine on wall?
okbede_123 is offline
TekLak
Junior Member
Join Date: Jul 2019
Old 01-22-2023 , 04:48   Re: [ZP] Bot Addon: Give Random Extra
Reply With Quote #9

How to prevent survivors and nemesis get these extra items? I see for example knifer holding goldenak
I tried:
Quote:
if (zp_get_user_nemesis(id) && zp_get_user_survivor(id) && zp_class_assassin_get(id) && zp_class_knifer_get(id) && zp_class_nightcrawler_get(id) && zp_class_plasma_get(id) && zp_class_sniper_get(id))
continue;
but it is crashing

Last edited by TekLak; 01-22-2023 at 04:49.
TekLak is offline
Old 12-13-2023, 10:27
amirwolf
This message has been deleted by amirwolf. Reason: Solved
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode