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

Connect Message cs 1.6


Post New Thread Reply   
 
Thread Tools Display Modes
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 06-06-2016 , 05:38   Re: Connect Message cs 1.6
Reply With Quote #11

if they were declared globally , he would use szName[id] , not szName, 2D array.
I think he just forgot to declare .
siriusmd99 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 06-06-2016 , 06:00   Re: Connect Message cs 1.6
Reply With Quote #12

Quote:
Originally Posted by siriusmd99 View Post
if they were declared globally , he would use szName[id] , not szName, 2D array.
I think he just forgot to declare .
PHP Code:
public client_connect(id){

    
get_user_name(idszNamecharsmax(szName)) // Get username of ID (player) connecting, elsewhere declared globaly as szName[/*value*/]
    
get_user_authid(idszID19// Get ID of player connecting, elsewhere declared globaly as szID[/*value*/]
    
get_user_ip(idszIP191// Get IP of player connecting, elsewhere declared globaly as szIP[/*value*/].
    
    
get_players(iPlayersiPlayerNum"ch"// get all players, elsewhere declared globaly as iPlayers[/*value*/]
    
    
for (new 0iPlayerNumi++)
    {
        if (
access(iPlayers[i], ADMIN_BAN)) 
    
        
console_print(iPlayers[i], "[NOTICE] %s (%s) (%s) is connecting"szNameszIDszIP// this will output to ALL players: "[NOTICE] PLAYER ON CONNECT (STEAMID) (IP) is connecting"
    
}


I don't see anything wrong in the code tbh... Allthough, declaring these arrays localy is always better than declaring them globaly.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
abood alnjjar
Member
Join Date: Oct 2015
Location: palestine
Old 06-07-2016 , 05:45   Re: Connect Message cs 1.6
Reply With Quote #13

I want make it only for steamers..."name steam hase contact server" help please
__________________
abood alnjjar is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 06-07-2016 , 06:06   Re: Connect Message cs 1.6
Reply With Quote #14

Non-Steam detected. This forum supports only steam servers, no dproto.
siriusmd99 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 16:40.


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