18.04.2013, 19:20
Quote:
Setting peoples' names is a big no no.
Most of the servers save their players' stats by saving them into a file, and using GetPlayerName to determine which file will their data go. This means that if you are AFK when you disconnect, your stats are going to be saved on a different account, and that is not good. The script is good except for that thing (and the fact that you shouldn't send messages that include "u" as "you" and "wanna" as "want to", because most people want their server to look clean and official. |
PHP код:
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(isafk[playerid] == 1)
{
strdel(PlayerName, 0, 5);
SetPlayerName(playerid, PlayerName);
}