is this possible - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: is this possible (
/showthread.php?tid=288753)
is this possible -
Stefans94 - 08.10.2011
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
Re: is this possible -
blewert - 08.10.2011
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
Re: is this possible -
Haydz - 08.10.2011
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.