AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Allow White Space prefix-postfix in Player Names (https://forums.alliedmods.net/showthread.php?t=344857)

Cuttlas 12-13-2023 15:01

Allow White Space prefix-postfix in Player Names
 
is there any way to allow white space prefix-postfix in player names?

for example: " Cuttlas", "Cuttlas ", " Cuttlas "

bigdaddy424 12-13-2023 20:55

Re: Allow White Space prefix-postfix in Player Names
 
most likely no

fysiks 12-13-2023 21:05

Re: Allow White Space prefix-postfix in Player Names
 
The client won't let you do it. Even if you could that would not be a good idea.

georgik57 12-14-2023 10:18

Re: Allow White Space prefix-postfix in Player Names
 
probably with tabs or unicode invisible characters

Cuttlas 12-14-2023 14:38

Re: Allow White Space prefix-postfix in Player Names
 
Quote:

Originally Posted by georgik57 (Post 2814465)
probably with tabs or unicode invisible characters

I did not find any :(

my goal is to use the same names for bots. for example, I need to name them all ROBOT.
but currently, it will rename them as (1)Robot and similar numbering naming!

So I decided to make them different with some white spaces.

fysiks 12-14-2023 23:54

Re: Allow White Space prefix-postfix in Player Names
 
Seems like an odd thing to do. Why would you need to name them all the same?

Cuttlas 12-15-2023 08:26

Re: Allow White Space prefix-postfix in Player Names
 
Quote:

Originally Posted by fysiks (Post 2814487)
Seems like an odd thing to do. Why would you need to name them all the same?

because they are not humans (bots, zombie bots, and so on) I do not prefer fake names like Bob, john, and so on.

It would be perfect If I name them the same thing who they are :)

fysiks 12-15-2023 23:42

Re: Allow White Space prefix-postfix in Player Names
 
BOT1
BOT2
.
.
,
BOTx

101 12-16-2023 05:25

Re: Allow White Space prefix-postfix in Player Names
 
it would be better if their names was randomly generated (especially if they were Zombies) , it seems that they don't give a shit about names :

PHP Code:

#include <amxmodx>

new c_chars[20][] ={"Q","n","2","!","%"," ","5","X","j","f","e","7","t","z"," "," ","s","g","l","8"};


public 
plugin_init()
{
    
set_task(3.0,"Print_Test",100,_,_,"b");
}

public 
Print_Test()
{
    new 
PName[15];
    
    new 
=random_num(3,15);
    for (new 
=j<j++)
    {
        
format(PName,x,"%s%s",PName,c_chars[random(20)]);
    }
    
log_amx("Generated Name : %s",PName);



Cuttlas 12-17-2023 02:23

Re: Allow White Space prefix-postfix in Player Names
 
but I need the SAME name or the SAME name on view (with white spaces) :)


All times are GMT -4. The time now is 00:33.

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