Posts: 220
Threads: 54
Joined: Jan 2014
Good evening.
So I use a system of numbered Unknown on my server which replaces the nickname of the player to avoid metagame.
So it looks like this:
Inconnu_14698 says: Blabla
So I for example my order /report but it works with the ids of players (0, 1, 2, 3 etc.).
So I'd like it to work with the id of the unknown, for example:
/report 14698
Thank you!
Posts: 2,593
Threads: 34
Joined: Dec 2007
you must modify ReturnUser function
Posts: 220
Threads: 54
Joined: Jan 2014
I know it has this function, but I do not know how to do it.
Derick if the code is changed, you can comment please?
So I understand, thank you
Posts: 220
Threads: 54
Joined: Jan 2014
No, because it is mainly for my system Unknown numbered.
So when the player talks being unknown it does:
Inconnu_14698 says: Blabla
The number varies of course.
So the player who reported the Unknown numbered does not know the name of the player, just unknown number.
To get a result like this for example:
/report 14698 (This is the number of the Unknown (But it is variable, it may change)) Blabla.
/report 14698 blabla
Posts: 220
Threads: 54
Joined: Jan 2014
pawn Код:
PlayerInfo[playerid][p_NbrInconnu] = 1000 + random(19999);
Inconnu_infos[playerid][Inconnu_id] = PlayerInfo[playerid][p_NbrInconnu];
memcpy(Inconnu_infos[playerid][Inconnu_Pseudo], pName[playerid], 0, MAX_PLAYER_NAME*4, MAX_PLAYER_NAME*4);
In my OnPlayerLogin.
So the unknown number assigned to it the connection, but it is visible or not in the chat if activated with a command.
In my /me:
pawn Код:
if(Player_use_nomoff[playerid] == 1) format(proxy_msg, sizeof(proxy_msg), "Inconnu %d %s", PlayerInfo[playerid][p_NbrInconnu], result);
else format(proxy_msg, sizeof(proxy_msg), "%s %s", pName[playerid], result);
proxy_sendMsg(playerid, proxy_msg);
Posts: 220
Threads: 54
Joined: Jan 2014
Your function will only work with Unknown.
Me, I want it to work with both, the Unknown and the players with the normal nametag.
But a friend told me that succeeds it happens in "IsNumeric" ...