Raised This Month: $ Target: $400
 0% 

Client Putinserver


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 09-15-2013 , 11:37   Client Putinserver
Reply With Quote #1

Hello. What the problem?

PHP Code:
void ClientPutInServeredict_t *pEntity )
{
    
printf("Putinserver Hooked");

and i am define the moduleconfig.h.

Thanks for help.
__________________
kiki33hun is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-15-2013 , 11:40   Re: Client Putinserver
Reply With Quote #2

Same question : what is the problem ? You explain NOTHING.
__________________
Arkshine is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 09-15-2013 , 11:43   Re: Client Putinserver
Reply With Quote #3

Ok. I am trying to print message, if user connected the server.

The function of printing message:
PHP Code:
#define MESSAGE_TO_PRINT "\x04[Server]\x01 Udv...!"

void PrintMessageToPlayeredict_t *edict_player );

int g_int_saytext_index;

void PrintMessageToPlayeredict_t *edict_player )
{
  if( !
FNullEntedict_player ) ) {
   
g_engfuncs.pfnMessageBeginMSG_ONE_UNRELIABLEg_int_saytext_indexNULLedict_player );
   
g_engfuncs.pfnWriteByteENTINDEXedict_player ) );
   
g_engfuncs.pfnWriteStringMESSAGE_TO_PRINT );
   
g_engfuncs.pfnMessageEnd( ); }
}

int RegUserMsg_Post( const char *char_nameint iSize )
{
   if( 
strcmpchar_name"SayText" ) == NULL )
      
g_int_saytext_index META_RESULT_ORIG_RET( int );

   
RETURN_META_VALUEMRES_IGNOREDNULL );

And the calling:
PHP Code:
void ClientPutInServeredict_t *pEntity 

    
PrintMessageToPlayerpEntity );
    
//printf("Putinserver Hooked");  //This is debug line. This is not logged the server console.

So you can understand?
__________________
kiki33hun is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 09-15-2013 , 11:52   Re: Client Putinserver
Reply With Quote #4

You still haven't supplied a problem. Only code that may or may not work.
__________________

Last edited by Black Rose; 09-15-2013 at 11:53.
Black Rose is offline
sparky99
Junior Member
Join Date: Jan 2006
Old 09-16-2013 , 06:14   Re: Client Putinserver
Reply With Quote #5

https://forums.alliedmods.net/archiv.../t-166706.html
https://forums.alliedmods.net/archiv.../t-180224.html

Last edited by sparky99; 09-16-2013 at 06:31.
sparky99 is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 09-16-2013 , 07:46   Re: Client Putinserver
Reply With Quote #6


What? De is only message. I am need putinserver function. The above function not work.

Up1: Putinserver work, print messages dont work.
__________________

Last edited by kiki33hun; 09-16-2013 at 09:17.
kiki33hun is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-16-2013 , 13:13   Re: Client Putinserver
Reply With Quote #7

You can't print a message to player at this time, that is true at least for TextMsg, SayText and hud messages.

If you do this to practise it is ok, else, this kind of stuff is fine to implement in plugins.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 09-16-2013 , 13:36   Re: Client Putinserver
Reply With Quote #8

Quote:
Originally Posted by ConnorMcLeod View Post
You can't print a message to player at this time, that is true at least for TextMsg, SayText and hud messages.

If you do this to practise it is ok, else, this kind of stuff is fine to implement in plugins.

Yes, thanks. I am logged putinserver, and work And i am tested messages (In clientcommand) and work

Thanks for reply.
__________________
kiki33hun 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 21:37.


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