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

[AMXX] Calculator v1.2.0


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff       
Larcyn
Senior Member
Join Date: Oct 2010
Old 11-20-2011 , 06:32   [AMXX] Calculator v1.2.0
Reply With Quote #1

[AMXX] Calculator

Information:
A simple calculator with the four main operators. Pretty useless, but fun.

Addition
Subtraction
Multiplication
Division

Changelog:
v1.0.0 - Initial release
v1.0.1 - Optimized (Thanks to Korxu)
v1.1.0 - Added chat support (How to use tutorial in SMA)
v1.1.1 - Optimized
v1.2.0 - Optimized & Added new Chat code (Thanks to Sylwester & Fysiks)

Screenshot:



If you have any code suggestions please post them below.
Attached Files
File Type: sma Get Plugin or Get Source (calculator.sma - 1530 views - 6.0 KB)
__________________

Taking private requests, PM me for information.
Selling HideNSeek & Jailbreak plugins.

Selling Achievement API System (PHP &
MySQL / nVault)

Last edited by Larcyn; 05-11-2012 at 17:06. Reason: Updated plugin v1.2.0
Larcyn is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-20-2011 , 06:54   Re: [AMXX] Calculator
Reply With Quote #2

Add chat support would be cool.

Like someone writes :

Calc : 3 * 5 + 3

Print 18

Calc : 3 * ( 5 + 3 )

Print 24
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 11-20-2011 at 06:54.
ConnorMcLeod is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 11-20-2011 , 07:13   Re: [AMXX] Calculator
Reply With Quote #3

That's not something a beginner can do.
__________________
Impossible is Nothing
Sylwester is offline
Korxu
Senior Member
Join Date: Sep 2010
Old 11-20-2011 , 07:40   Re: [AMXX] Calculator
Reply With Quote #4

PHP Code:
if(iPlayerOperator[iPlayer] == 0)
        
client_print(iPlayerprint_chat"[AMXX] Result: %i"Value[iPlayer][1] + Value[iPlayer][2])
        
    else if(
iPlayerOperator[iPlayer] == 1)
        
client_print(iPlayerprint_chat"[AMXX] Result: %i"Value[iPlayer][1] - Value[iPlayer][2])
        
    else if(
iPlayerOperator[iPlayer] == 2)
        
client_print(iPlayerprint_chat"[AMXX] Result: %i"Value[iPlayer][1] * Value[iPlayer][2])
        
    else if(
iPlayerOperator[iPlayer] == 3)
         
client_print(iPlayerprint_chat"[AMXX] Result: %.2f"float(Value[iPlayer][1]) / float(Value[iPlayer][2])) 

PHP Code:
    switch ( iPlayerOperator iPlayer ] )
    {
        case 
0:
        {
            
client_print iPlayerprint_chat"[AMXX] Result: %i"Value iPlayer ] [ ] + Value iPlayer ] [ ] )
        }
        
        case 
1:
        {
            
client_print iPlayerprint_chat"[AMXX] Result: %i"Value iPlayer ] [ ] - Value iPlayer ] [ ] )
        }
        
        case 
2:
        {
            
client_print iPlayerprint_chat"[AMXX] Result: %i"Value iPlayer ] [ ] * Value iPlayer ] [ ] )
        }
        
        case 
3:
        {
            
client_print iPlayerprint_chat"[AMXX] Result: %.2f"float Value iPlayer ] [ ] ) / float Value iPlayer ] [ ] ) )
        }
    } 

Last edited by Korxu; 11-20-2011 at 07:41.
Korxu is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-20-2011 , 08:00   Re: [AMXX] Calculator
Reply With Quote #5

Quote:
Originally Posted by Sylwester View Post
That's not something a beginner can do.
Then this plugin is useless, faster to switch on windows and to use calculator
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
m0skVi4a
Senior Member
Join Date: May 2011
Location: Rousse, Bulgaria
Old 11-20-2011 , 09:10   Re: [AMXX] Calculator
Reply With Quote #6

LOL
Nice plugin
m0skVi4a is offline
Send a message via Skype™ to m0skVi4a
FOUTA
Senior Member
Join Date: Nov 2010
Location: Lebanon
Old 11-20-2011 , 09:24   Re: [AMXX] Calculator
Reply With Quote #7

press WINDOWS KEY + R
type calc

you will get your calculator isnt it faster???
__________________
www.cstuts.tk
Everything you might for Counter Strike
FOUTA is offline
Larcyn
Senior Member
Join Date: Oct 2010
Old 11-20-2011 , 09:36   Re: [AMXX] Calculator
Reply With Quote #8

@ConnorMcLeod
I'll try to add that feature soon.

@Korxu
Thanks for that, updated.

@FOUTA
Well, that's true. But it was meant to be possible while playing CS.
__________________

Taking private requests, PM me for information.
Selling HideNSeek & Jailbreak plugins.

Selling Achievement API System (PHP &
MySQL / nVault)

Last edited by Larcyn; 11-20-2011 at 09:36.
Larcyn is offline
FOUTA
Senior Member
Join Date: Nov 2010
Location: Lebanon
Old 11-20-2011 , 15:20   Re: [AMXX] Calculator
Reply With Quote #9

Quote:
Originally Posted by Larcyn View Post
@ConnorMcLeod
I'll try to add that feature soon.

@Korxu
Thanks for that, updated.

@FOUTA
Well, that's true. But it was meant to be possible while playing CS.
I play my cs in a window, so when i launch RUN, it doesnt get out of cs simple
__________________
www.cstuts.tk
Everything you might for Counter Strike
FOUTA is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 11-21-2011 , 03:57   Re: [AMXX] Calculator
Reply With Quote #10

nice plugin larcyn;
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
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 10:09.


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