Raised This Month: $ Target: $400
 0% 

[Question] client_putinserver


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ghost95v
Senior Member
Join Date: Apr 2014
Location: somewhere in universe
Old 01-10-2015 , 07:25   [Question] client_putinserver
Reply With Quote #1

Hello, i just need a opinion, wich Way its good to use check name spam ?

with "set_task" ?

PHP Code:
public client_putinserverid )
         
set_task(1.0"Task_CheckName"id); 
or just this ?
PHP Code:
public client_putinserverid )
         (
Task_CheckName(id) ) 
Thank you.
__________________

Last edited by ghost95v; 01-10-2015 at 07:30.
ghost95v is offline
Send a message via Skype™ to ghost95v
bat
Veteran Member
Join Date: Jul 2012
Old 01-10-2015 , 08:30   Re: [Question] client_putinserver
Reply With Quote #2

Quote:
public client_putinserver( id )
(Task_CheckName(id) )
__________________
bat is offline
Send a message via Skype™ to bat
Natsheh
Veteran Member
Join Date: Sep 2012
Old 01-10-2015 , 09:09   Re: [Question] client_putinserver
Reply With Quote #3

You need to add client info changed forward so he can't change his name too in game to any existed name
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-10-2015 , 09:49   Re: [Question] client_putinserver
Reply With Quote #4

Quote:
Originally Posted by ghost95v View Post
Hello, i just need a opinion, wich Way its good to use check name spam ?

with "set_task" ?

PHP Code:
public client_putinserverid )
         
set_task(1.0"Task_CheckName"id); 
or just this ?
PHP Code:
public client_putinserverid )
         (
Task_CheckName(id) ) 
Thank you.
When client_putinserver is called, player will have already a name so you don't need a task.
__________________
HamletEagle is offline
ghost95v
Senior Member
Join Date: Apr 2014
Location: somewhere in universe
Old 01-10-2015 , 11:22   Re: [Question] client_putinserver
Reply With Quote #5

Quote:
Originally Posted by HamletEagle View Post
When client_putinserver is called, player will have already a name so you don't need a task.
Sorry, but i dont understand you, or you didn't understand me, what you mean with "player will have already a name"...

I take for example, if 32 players have bad names, whats reliable to use ?. a Task or directly the function to check the bad name ( like ive typed above.


Quote:
Originally Posted by Natsheh View Post
You need to add client info changed forward so he can't change his name too in game to any existed name
of course.
__________________

Last edited by ghost95v; 01-10-2015 at 11:27.
ghost95v is offline
Send a message via Skype™ to ghost95v
Natsheh
Veteran Member
Join Date: Sep 2012
Old 01-10-2015 , 11:33   Re: [Question] client_putinserver
Reply With Quote #6

Quote:
Originally Posted by ghost95v View Post
Sorry, but i dont understand you, or you didn't understand me, what you mean with "player will have already a name"...

I take for example, if 32 players have bad names, whats reliable to use ?. a Task or directly the function to check the bad name ( like ive typed above.
well as my knowledge you need to make a config file & add all the bad word's and bad name's

& he meant that no need to use set_task because it wont be necessary, you can just call the function because the name will be available in client_inputserver!

Last edited by Natsheh; 01-10-2015 at 11:35.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
ghost95v
Senior Member
Join Date: Apr 2014
Location: somewhere in universe
Old 01-10-2015 , 11:57   Re: [Question] client_putinserver
Reply With Quote #7

Quote:
Originally Posted by Natsheh View Post
well as my knowledge you need to make a config file & add all the bad word's and bad name's

& he meant that no need to use set_task because it wont be necessary, you can just call the function because the name will be available in client_inputserver!
Of course @Natsheh, will do those functions...

Thnx both.
__________________

Last edited by ghost95v; 01-10-2015 at 11:58.
ghost95v is offline
Send a message via Skype™ to ghost95v
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-10-2015 , 11:33   Re: [Question] client_putinserver
Reply With Quote #8

I assumed that you used a task because you believed that in putinserver the player name is not available yet. In this context it doesn't matter much, both are correct, but the task seems to be useless, just use the second way since you will get the same result.
__________________

Last edited by HamletEagle; 01-10-2015 at 11:33.
HamletEagle is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-10-2015 , 15:33   Re: [Question] client_putinserver
Reply With Quote #9

What is "name spam"?
__________________
fysiks is offline
ghost95v
Senior Member
Join Date: Apr 2014
Location: somewhere in universe
Old 01-10-2015 , 15:58   Re: [Question] client_putinserver
Reply With Quote #10

Quote:
Originally Posted by fysiks View Post
What is "name spam"?
i just called it "name spam", i meant the bad names wich i dont want to see.
__________________
ghost95v is offline
Send a message via Skype™ to ghost95v
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:21.


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