Raised This Month: $51 Target: $400
 12% 

Giving a gift after a bomb explosion


Post New Thread Reply   
 
Thread Tools Display Modes
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 03-14-2024 , 20:58   Re: Giving a gift after a bomb explosion
Reply With Quote #11

Quote:
Originally Posted by Jhob94 View Post
AI can NOT program pawn right now. Pretty much everything it will tell you is wrong.
Quote:
Originally Posted by meTaLiCroSS View Post
Just proven this by teaching ChatGPT how SQLx works in AMXX plugins; just a leisure moment, but the AI didn't understand either
it can give us ideas but it is not a complete complement as such, always open to making corrections "optimizations" for its purpose.
__________________
mlibre is offline
Tote
Senior Member
Join Date: Jul 2023
Old 03-15-2024 , 08:06   Re: Giving a gift after a bomb explosion
Reply With Quote #12

Quote:
Originally Posted by mlibre View Post
wonderful

@Tote
My bad, didn't see. here you go hm

Code:
#include <amxmodx>
#include <fun>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Author"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	// Add your code here...
}

public bomb_explode()
{
	static player, iPnum, players[32]
	get_players(players, iPnum, "e", "TERRORIST");
	
	player = players[random(iPnum)];
	
	if(!player) return PLUGIN_CONTINUE;
	
	give_item(player, "weapon_awp")
	
	return PLUGIN_HANDLED;
}
Tote is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 03-15-2024 , 10:37   Re: Giving a gift after a bomb explosion
Reply With Quote #13

additionally, I would check if the chosen one has the AWP or not, if not, I would choose another, as well as ensuring that the same player is not repeated in consecutive rounds.
__________________
mlibre is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 03-16-2024 , 08:51   Re: Giving a gift after a bomb explosion
Reply With Quote #14

Comments after testing this idea. I made a similar script from the spirit of this thread the day of. When testing after seeing if they already have an AWP it is pointless and decided after checking to just to give them money. If they already have 16k and an AWP well this petered out fast. So I wound up making it 'Kevlar Tape' for a bonus. Everybody could always use some extra padding. Armor seemed to be the most useful.
__________________
DJEarthQuake is offline
Reply



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 19:31.


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