Raised This Month: $ Target: $400
 0% 

How to make toogle?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-23-2008 , 08:48   How to make toogle?
Reply With Quote #1

I need help to make toogle.Example when client say "/ping" it will show the message.What the code for that?
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 12-23-2008 , 09:16   Re: How to make toogle?
Reply With Quote #2

Uh, well, that's not really a toggle. That's a command. Try reading the documentation for some scripting tutorials.
Spunky is offline
Send a message via AIM to Spunky
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-23-2008 , 09:19   Re: How to make toogle?
Reply With Quote #3

Can you give the link?It very hard to search.
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 12-23-2008 , 09:36   Re: How to make toogle?
Reply With Quote #4

http://www.amxmodx.org

[IMG]http://img185.**************/img185/4916/helpsecnd0.png[/IMG]
Spunky is offline
Send a message via AIM to Spunky
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-23-2008 , 09:45   Re: How to make toogle?
Reply With Quote #5

It may take for an hour to search it.Hard to found.Nvm,trying search.
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 12-23-2008 , 09:56   Re: How to make toogle?
Reply With Quote #6

[IMG]http://img355.**************/img355/5690/scriptsecit5.png[/IMG]

It's simple navigation...
Spunky is offline
Send a message via AIM to Spunky
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-24-2008 , 05:32   Re: How to make toogle?
Reply With Quote #7

I had click than i search for this command.Nothing saying about this.
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 12-24-2008 , 08:10   Re: How to make toogle?
Reply With Quote #8

...You're not supposed to search for the command. I was giving you resources so you can learn to do it yourself.
Spunky is offline
Send a message via AIM to Spunky
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-25-2008 , 05:03   Re: How to make toogle?
Reply With Quote #9

Ooo..sorry about that..I'm still learning now.But anyone know about this coding please help.
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
CodeMaster
Junior Member
Join Date: Dec 2008
Old 12-25-2008 , 06:20   Re: How to make toogle?
Reply With Quote #10

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Ping Info"
#define VERSION "1.0"
#define AUTHOR "CodeMaster"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_
    register_clcmd
("ping_cl","cmd_get_ping",ADMIN_USER,"")
}

public 
cmd_get_ping(id,level,cid) {
    new 
ping
    
new loss
    get_user_ping
(id,ping,loss)
    
client_print(id,print_chat,"Ping: %d",ping)
    
    return 
PLUGIN_HANDLED

This should work.
Spunky means that you can't FIND done code snippets you need, but he points to where you should search for info on how to do it.
It's always better if you know HOW-TO do things.

Again, try this, and if it won't work, say it and I'll fix it.

Cheers ;)

Nidza
__________________
+karma me if you found me useful
[60% -- ||||||||||] Learning AMXModX functions for better adaption to AMXModX Pawn
[100% - ||||||||||] Pawn Readaptation


Last edited by CodeMaster; 12-25-2008 at 06:28. Reason: Messed up the code
CodeMaster 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 09:13.


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