\Help - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: \Help (
/showthread.php?tid=208199)
\Help -
slowride326 - 08.01.2011
Ok so i have a prison rp gamemode not released yett or hosted. But i want it where when someone enter the server with for example Payton_Martin It makes them pick a number 3 digit then when they play instead of saying Payton_Martin it would be like inmate_326
Re: \Help -
Padarom - 08.01.2011
pawn Код:
// Somewhere in Script where you want to let the name changed (eg. OnPlayerSpawn because of gTeam or something else)
new rnd, newname[MAX_PLAYER_NAME];
rnd = RandomMiMa(100, 999);
format(newname,sizeof(newname),"inmate_%i",rnd);
SetPlayerName(playerid,newname);
stock RandomMiMa(min, max)
{
return random(max-min)+min;
}
Untested but should work.
Re: \Help -
slowride326 - 08.01.2011
Will this make them change there SAMP name or not
Re: \Help -
Padarom - 08.01.2011
It will change their playername (when you press TAB for statistics or look the serverinfo), but they everytime can connect with their own name (Payton_Martin).
Or do you want that they only get messages with other name: "Payton_Martin: hello" -> "inmate_326: hello"?
Re: \Help -
slowride326 - 08.01.2011
When there walking around and when they chat i want it to say inmate_326
Also would you like to script for us
Re: \Help -
DarrenThayer - 08.01.2011
Do you want it to say "inmate_326" in the TAB and above the players name?
Re: \Help -
Padarom - 08.01.2011
That's what it does at the moment.
The player's name is for his complete online season "inmate_326".