Raised This Month: $ Target: $400
 0% 

Help with a amx_showip


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 08-26-2013 , 04:35   Re: Help with a amx_showip
Reply With Quote #1

Quote:
Originally Posted by devilicioux View Post
You dont Need to loop through players .. instead of id use 0 .. It will print to all the players. Test it yourself.

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

public plugin_init() {
    
register_plugin("Connect Plugin""0.1""HoBaK");
}

public 
client_disconnect(id
{
  
    new 
name[32];
    new 
Ip[32];
    new 
steamid[32];
    new 
mapname[32];
    
get_user_name(players[i], name31)
    
get_user_ip(players[i], Ip310)
    
get_user_authid(players[i], steamid31)
    
get_mapname(mapname31)
    
client_print(0print_chat"[Map:%s] Player:%s, has left the game, IP:%s and Steam ID:%s"mapnamenameIpsteamid)
  
}

public 
client_connect(id)
{
      new 
name[32];
    new 
Ip[32];
    new 
steamid[32];
    new 
mapname[32];
    
get_user_name(players[i], name31)
    
get_user_ip(players[i], Ip310)
    
get_user_authid(players[i], steamid31)
    
get_mapname(mapname31)
    
client_print(0print_chat"[Map:%s] Player:%s, has joined the game, IP:%s and Steam ID:%s"mapnamenameIpsteamid)
  

__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then
devilicioux 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 15:49.


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