is this possible
#1

Hello all,

Is it possible to change player name tags into Stranger1, stranger2...
i think i already saw servers with that..
but i ******d it and didn't find anything that could help me.
Thanks,
Stefan
Reply
#2

erm, strange request but meh:

pawn Код:
for( new p = 0; p < MAX_PLAYERS; p++ )
{
    //Iterate through all players, if connected:
    if( IsPlayerConnected( p ) )
    {
        //Create a variable for the newly formatted name
        new szTmpName[ 24 ];

        //Format the newly created variable to "Stranger(ID)"
        format( szTmpName, sizeof szTmpName, "Stranger%d", p );

        //Finally, set it
        SetPlayerName( p, szTmpName );
    }
}
should work, although it's untested :p
Reply
#3

I think this is what you're looking for - http://forum.sa-mp.com/showthread.ph...hlight=%2Fmeet

Quote:
Originally Posted by Kwarde
Посмотреть сообщение
What is it?
This is just a reallife function. When you see an unknown human in reallife, you don't know who it is. You don't know his name. That is what this script does. When you see someone who you never met before, you won't see his/her name above his/her head. In the chat you'll see: "Person: {text}". But after /meetp(erson) you will be able to know it. Then you'll see his/her name above his/her head and in the chat you'll see: "{person}: {text}".
Or if I haven't understood correctly and you just want to set their names to "stranger1", "Stranger2" and nothing else just use the code the person has given you above.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)