Raised This Month: $ Target: $400
 0% 

How to make toogle?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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