How to reget the origin player name
#3

Use SetPVarString to temporarily store the player's name before setting the tag when they go AFK.

Something like:

Under your AFK code
PHP код:
SetPVarString(playerid"AFKName"Name); 
And under /stopafk command
PHP код:
new name[24];
GetPVarString(playerid"AFKName"namesizeof(name));
SetPlayerName(playeridname);
DeletePVar(playerid"AFKName"); 
It's better if you use global arrays but PVar is easier to use so.
Reply


Messages In This Thread
How to reget the origin player name - by Eymeric69 - 17.05.2016, 14:51
Re: How to reget the origin player name - by SyS - 17.05.2016, 14:54
Re: How to reget the origin player name - by Sjn - 17.05.2016, 14:59
Re: How to reget the origin player name - by Eymeric69 - 17.05.2016, 15:03
Re: How to reget the origin player name - by Konstantinos - 17.05.2016, 15:14
Re: How to reget the origin player name - by GhostHacker - 17.05.2016, 15:18
Re: How to reget the origin player name - by SyS - 17.05.2016, 15:20
Re: How to reget the origin player name - by Sjn - 17.05.2016, 15:23
Re: How to reget the origin player name - by Eymeric69 - 17.05.2016, 15:25
Re: How to reget the origin player name - by bgedition - 17.05.2016, 18:11

Forum Jump:


Users browsing this thread: 1 Guest(s)