AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   C4 Drop Menu (https://forums.alliedmods.net/showthread.php?t=88019)

tuty 03-19-2009 11:57

C4 Drop Menu
 
2 Attachment(s)
C4 Drop Menu
http://csnation.totalgamingnetwork.c...ombCarrier.gif




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 :arrow:

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:


http://i41.tinypic.com/mtut7n.png

http://i42.tinypic.com/2m7jma1.png



crazyeffect 03-19-2009 12:06

Re: C4 Drop Menu
 
Cool :D

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 :D

YamiKaitou 03-19-2009 12:07

Re: C4 Drop Menu
 
ML?

Nextra 03-19-2009 12:18

Re: C4 Drop Menu
 
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:mrgreen:

tuty 03-19-2009 12:26

Re: C4 Drop Menu
 
ok i will update asap


EDIT: done ^^

da.beast 03-19-2009 12:59

Re: C4 Drop Menu
 
+karma

crazyeffect 03-19-2009 15:03

Re: C4 Drop Menu
 
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 )...

Starsailor 03-19-2009 15:15

Re: C4 Drop Menu
 
tuty you dont stop :D

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

tuty 03-19-2009 15:34

Re: C4 Drop Menu
 
Quote:

Originally Posted by Starsailor (Post 784598)
tuty you dont stop :D

ehm... :mrgreen::mrgreen::mrgreen:

Arkshine 03-19-2009 15:44

Re: C4 Drop Menu
 
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$ )...



All times are GMT -4. The time now is 12:40.

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