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

C4 Drop Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   Exolent[jNr] (178)
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 03-19-2009 , 11:57   C4 Drop Menu
Reply With Quote #1

C4 Drop Menu





Description:

- Because when some noob got the bomb on round start and he drop it, with this plugin if he want to drop C4 must pay some cash or he can't drop the C4!
- If he has bomb in hands and when he press G(drop) will be appear a menu with options...se image menu


Cvars:

- c4_drop_cost - 6000 (cost of c4 if he want to drop it)
- c4_drop_plugin - 1- enabled / 0- disabled (Default: 1)


Modules:

- cstrike

Changelog:

PHP Code:
/*
Version 1.0 - first release
Version 1.1 - Added ML / Optimized code
Optimized - thanks Connor <3
Version 1.2 - fixed two things...
*/ 


Notes!


Carefully with translates! Do not edit that marked with red if you want a good translate

ARE_YOU_SURE = \dAre you sure?^n
SHOW_DROP_COST = \y( Drop cost is: \r%d$ \y)^n^n
YES_I_WANT = \r1. \wYes, i want to drop \yC4 \wand i will loose money!^n
NO_I_DONT = \r2. \wNope, i don't want to drop the \yC4\w...^n


Images:







Attached Files
File Type: txt c4_drop_menu.txt (2.2 KB, 1703 views)
File Type: sma Get Plugin or Get Source (C4_Drop_Menu.sma - 2038 views - 1.7 KB)
__________________

Last edited by tuty; 02-28-2012 at 11:33.
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 03-19-2009 , 12:06   Re: C4 Drop Menu
Reply With Quote #2

Cool

But

PHP Code:
"\wBefore i answer i must know what is the price." 
->

PHP Code:
"\wBefore i answer i must know what the price is." 
And maybe ML?
Its a menu, i suppose you add it
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-19-2009 , 12:07   Re: C4 Drop Menu
Reply With Quote #3

ML?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 03-19-2009 , 12:18   Re: C4 Drop Menu
Reply With Quote #4

Never thought of something like that. 6000$ is pricy, no one will ever drop the bomb again

I'd suggest that you display the cost directly below the heading of the menu, an extra menu choice seems useless to me.
And I believe that you do not need to return PLUGIN_HANDLED when the client is dead, but PLUGIN_CONTINUE will not make a difference
__________________
In Flames we trust!
Nextra is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 03-19-2009 , 12:26   Re: C4 Drop Menu
Reply With Quote #5

ok i will update asap


EDIT: done ^^
__________________

Last edited by tuty; 03-19-2009 at 12:56.
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
da.beast
Junior Member
Join Date: Mar 2009
Old 03-19-2009 , 12:59   Re: C4 Drop Menu
Reply With Quote #6

+karma
da.beast is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 03-19-2009 , 15:03   Re: C4 Drop Menu
Reply With Quote #7

Dutch

Quote:
[nl]
ARE_YOU_SURE = \dBen je zeker?^n
SHOW_DROP_COST = \y( Drop kosten zijn: \r%d$ \y)^n^n
YES_I_WANT = \r1. \wJa, ik wil de \yC4 \w neerleggen en geld verliezen!^n
NO_I_DONT = \r2. \wNee, ik wil de \yC4\w niet neerleggen...^n
DONT_HAVE_CASH = Je hebt niet genoeg geld om de C4 neer te leggen ( %d$ nodig )...
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 03-19-2009 , 15:15   Re: C4 Drop Menu
Reply With Quote #8

tuty you dont stop

Spanish translation
Code:
[es]
ARE_YOU_SURE = \dEstas seguro?^n
SHOW_DROP_COST = \y( Soltar la bomba cuesta: \r%d$ \y)^n^n
YES_I_WANT = \r1. \wSi quiero soltar la \yC4 \y perder mi plata!^n
NO_I_DONT = \r2. \wNo, no quiero soltar la \yC4\w...^n
DONT_HAVE_CASH = No tenes plata para soltar la C4 ( Necesitas %d$ )...
+k for you, nice plugin
__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 03-19-2009 , 15:34   Re: C4 Drop Menu
Reply With Quote #9

Quote:
Originally Posted by Starsailor View Post
tuty you dont stop
ehm...
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-19-2009 , 15:44   Re: C4 Drop Menu
Reply With Quote #10

Hi.

- LANG_PLAYER -> id
- Instead of 1<<0, use MENU_KEY_1, MENU_KEY_2 etc..

French translation :

Code:
[fr]
ARE_YOU_SURE = \dEs-tu sure ?^n
SHOW_DROP_COST = \y( Deposer coute : \r%d$ \y)^n^n
YES_I_WANT = \r1. \wOui, je veux deposer la \yBombe \w et je perdrais de l'argent !^n
NO_I_DONT = \r2. \wNope, je ne veux pas deposer la \yBombe\w...^n
DONT_HAVE_CASH = Tu n'as pas assez d'argent pour deposer la Bombe ( besoin de %d$ )...
Arkshine is offline
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 19:16.


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