SetPlayerName on gmx - 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: SetPlayerName on gmx (
/showthread.php?tid=109636)
SetPlayerName on gmx -
Daren_Jacobson - 21.11.2009
I have made an undercover system and it involves setting the player name. The thing is, if the server bounces while their name is set to not their account name, they continue to have that weird name after the bounce, so then it asks them to register that account.
I was wondering if anyone has found a way to SetPlayerName when the server bounces.
Re: SetPlayerName on gmx -
Daren_Jacobson - 21.11.2009
okay, I just did this and it works.
pawn Код:
public OnRconCommand(cmd[])
{
if (!strcmp(cmd, "gmx", true))
{
foreach(Player, playerid)
{
SetPlayerName(playerid, pOldName[playerid]);
}
}
return 1;
}
Re: SetPlayerName on gmx -
jameskmonger - 21.11.2009
What do you mean "bounces"?
Re: SetPlayerName on gmx -
Daren_Jacobson - 22.11.2009
when you gmx your server it is called "bouncing it" that is what it has been called that forever.
Re: SetPlayerName on gmx -
jameskmonger - 22.11.2009
Oh, I just call it gmxing