AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Question] client_putinserver (https://forums.alliedmods.net/showthread.php?t=255072)

ghost95v 01-10-2015 07:25

[Question] client_putinserver
 
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.

bat 01-10-2015 08:30

Re: [Question] client_putinserver
 
Quote:

public client_putinserver( id )
(Task_CheckName(id) )

Natsheh 01-10-2015 09:09

Re: [Question] client_putinserver
 
You need to add client info changed forward so he can't change his name too in game to any existed name

HamletEagle 01-10-2015 09:49

Re: [Question] client_putinserver
 
Quote:

Originally Posted by ghost95v (Post 2247352)
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.

ghost95v 01-10-2015 11:22

Re: [Question] client_putinserver
 
Quote:

Originally Posted by HamletEagle (Post 2247407)
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 (Post 2247393)
You need to add client info changed forward so he can't change his name too in game to any existed name

of course.

HamletEagle 01-10-2015 11:33

Re: [Question] client_putinserver
 
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.

Natsheh 01-10-2015 11:33

Re: [Question] client_putinserver
 
Quote:

Originally Posted by ghost95v (Post 2247438)
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!

ghost95v 01-10-2015 11:57

Re: [Question] client_putinserver
 
Quote:

Originally Posted by Natsheh (Post 2247444)
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.

fysiks 01-10-2015 15:33

Re: [Question] client_putinserver
 
What is "name spam"?

ghost95v 01-10-2015 15:58

Re: [Question] client_putinserver
 
Quote:

Originally Posted by fysiks (Post 2247516)
What is "name spam"?

i just called it "name spam", i meant the bad names wich i dont want to see.


All times are GMT -4. The time now is 15:21.

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