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

[REQ] Bomba


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Snake.
Senior Member
Join Date: Jul 2017
Old 12-04-2017 , 11:36   [REQ] Bomba
Reply With Quote #1

Nevermind.

Last edited by Snake.; 08-07-2018 at 02:28.
Snake. is offline
Send a message via Skype™ to Snake.
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 12-04-2017 , 16:59   Re: [RED] Hidenseek Last Terrorist Bomb
Reply With Quote #2

Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <fun> #define PLUGIN "Last Man Standing" #define VERSION "1.0" #define AUTHOR "NapoleoN#" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_event("DeathMsg", "eDeath", "a") } public eDeath() {     new ctPlayers[32], ctNum     new tsPlayers[32], tsNum     get_players(ctPlayers, ctNum, "ae", "CT")     get_players(tsPlayers, tsNum, "ae", "TERRORIST")         if(ctNum >= 1 && tsNum == 1) {         ShowMenu(tsPlayers[tsNum])     } } public ShowMenu(id) {     new szTemp[60]     formatex(szTemp, charsmax(szTemp), "Last Man Standing^nReceive a free FlashBang & Smoke?")         new menu = menu_create(szTemp, "HandleMenu")         menu_additem(menu, "\rYes.")     menu_additem(menu, "\dNo.")         menu_display(id, menu) } public HandleMenu(id, menu, item) {     if(is_user_alive(id)) {         switch(item) {             case 0: {                 give_item(id, "weapon_flashbang")                 give_item(id, "weapon_smokegrenade")             }             case 1: {                 return PLUGIN_HANDLED             }         }     }     menu_destroy(menu)     return PLUGIN_HANDLED }

Untested
Attached Files
File Type: sma Get Plugin or Get Source (LastManStanding.sma - 402 views - 1.3 KB)
__________________

Last edited by Napoleon_be; 12-22-2017 at 06:08.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Snake.
Senior Member
Join Date: Jul 2017
Old 12-08-2017 , 10:49   Re: [RED] Hidenseek Last Terrorist Bomb
Reply With Quote #3

Hi, when one terrorist remains, server crushes. Also can you share it in sma folder ? Thank you so much
Snake. is offline
Send a message via Skype™ to Snake.
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 12-13-2017 , 15:27   Re: [RED] Hidenseek Last Terrorist Bomb
Reply With Quote #4

Show your error logs pls.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-13-2017 , 17:11   Re: [RED] Hidenseek Last Terrorist Bomb
Reply With Quote #5

Quote:
Originally Posted by Snake. View Post
Also can you share it in sma folder ? Thank you so much
Don't you know how to create a new text document?! I mean, you can even copy an existing .sma file and replace the content in it if that's easier for you.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Snake.
Senior Member
Join Date: Jul 2017
Old 12-15-2017 , 04:50   Re: [RED] Hidenseek Last Terrorist Bomb
Reply With Quote #6

Quote:
Originally Posted by OciXCrom View Post
Don't you know how to create a new text document?! I mean, you can even copy an existing .sma file and replace the content in it if that's easier for you.
I was copying given code by creating a new plugin.It gave errors.The code can not be read.I'm pretty newbie.
I will try what you said
Snake. is offline
Send a message via Skype™ to Snake.
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 12-15-2017 , 06:24   Re: [RED] Hidenseek Last Terrorist Bomb
Reply With Quote #7

Quote:
Originally Posted by Napoleon_be View Post
Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <fun> #define PLUGIN "Last Man Standing" #define VERSION "1.0" #define AUTHOR "NapoleoN#" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_event("DeathMsg", "eDeath", "a") } public eDeath() {     new ctPlayers[32], ctNum     new tsPlayers[32], tsNum     get_players(ctPlayers, ctNum, "ae", "CT")     get_players(tsPlayers, tsNum, "ae", "TERRORIST")         if(ctNum >= 1 && tsNum == 1) {         ShowMenu(tsPlayers[tsNum])     } } public ShowMenu(id) {     new szTemp[60]     formatex(szTemp, charsmax(szTemp), "Last Man Standing^nReceive a free FlashBang & Smoke?")         new menu = menu_create(szTemp, "HandleMenu")         menu_additem(menu, "\rYes.")     menu_additem(menu, "\dNo.")         menu_display(id, menu) } public HandleMenu(id, menu, item) {     if(is_user_alive(id)) {         switch(item) {             case 0: {                 give_item(id, "weapon_flashbang")                 give_item(id, "weapon_smokegrenade")             }             case 1: {                 return PLUGIN_HANDLED             }         }     }     return PLUGIN_HANDLED }

Untested
Destroy the menu.
__________________
edon1337 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 12-19-2017 , 18:18   Re: [RED] Hidenseek Last Terrorist Bomb
Reply With Quote #8

Quote:
Originally Posted by edon1337 View Post
Destroy the menu.
Done, edited my code posted before.

Thanks for the notice.

Also @Snake, if you want to be helped, post error logs after testing the updated code if you get some.
__________________

Last edited by Napoleon_be; 12-19-2017 at 18:21.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Snake.
Senior Member
Join Date: Jul 2017
Old 12-21-2017 , 11:55   Re: [RED] Hidenseek Last Terrorist Bomb
Reply With Quote #9

Quote:
Originally Posted by Napoleon_be View Post
Done, edited my code posted before.

Thanks for the notice.

Also @Snake, if you want to be helped, post error logs after testing the updated code if you get some.
Dude, my problem is; when i copy and paste the code in amx mod x studio, copied lines can't be read. So can you share it as sma folder if possible ?
Snake. is offline
Send a message via Skype™ to Snake.
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 12-22-2017 , 06:08   Re: [RED] Hidenseek Last Terrorist Bomb
Reply With Quote #10

Quote:
Originally Posted by Snake. View Post
Dude, my problem is; when i copy and paste the code in amx mod x studio, copied lines can't be read. So can you share it as sma folder if possible ?
Updated first post.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
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 17:14.


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