Raised This Month: $ Target: $400
 0% 

Need help with these


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Samurai [/]
Member
Join Date: Sep 2006
Old 04-18-2007 , 17:02   Need help with these
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <geoip>
 
#define PLUGIN "PLUGIN"
#define VERSION "VERSION"
#define AUTHOR "AUTHOR"
 
 
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd"say /country""scan_text" )
}
 
public 
client_connect(id)
{
    new 
arg[128], name[64];
    
read_argv(1,arg,127);
    new 
id str_to_num(arg);
    
get_user_name(id,name,63);
 
    new 
usrip[33], result[46];
    
get_user_ip(idusrip321); 
    
geoip_country(usripresult45);
    
client_print(idprint_chat"[AMXX] %s is from %s"nameresult);
 

Why doesent this work?

And

PHP Code:
public Foot_steps(id)
{
if(
cs_get_user_team(id) == CS_TEAM_T)
{
set_user_footsteps (id1)
}
//how to set silents footsteps to terrorist only? 
and
PHP Code:
public client_connect(id)
{
if(
is_user_admin(id))
{
new 
name[18
get_user_name(idname17)
client_cmd (0"spk %s"g_sound1)
set_hudmessage(255255255, -1.0, -1.006.012.0)
show_hudmessage(0"Admin %s connected"name)

How im going to set hudmessage when admin connect?

and is it possible to make plugin that allows admins to spectate everyone, but normal players just teammates?
__________________

Last edited by Samurai [/]; 04-18-2007 at 17:09.
Samurai [/] is offline
 


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 06:34.


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