Saving team help
#3

Well no, AssignPlayerData is in the login dialog:

pawn Код:
if (strcmp(hashed_pass, Player[playerid][Password]) == 0)
            {
                cache_set_active(Player[playerid][Cache_ID]);

                AssignPlayerData(playerid);

                cache_delete(Player[playerid][Cache_ID]);
                Player[playerid][Cache_ID] = MYSQL_INVALID_CACHE;

                KillTimer(Player[playerid][LoginTimer]);
                Player[playerid][LoginTimer] = 0;
                Player[playerid][IsLoggedIn] = true;
               
                new ggString[128];
                format(ggString, sizeof(ggString), ""WHITE"* Welcome back "SAMP_BLUE"%s (%d) "WHITE"- "SAMP_BLUE"Account ID: %d "WHITE"- Your stats have been loaded.", ReturnPlayerName(playerid), playerid, Player[playerid][ID]);
                SendClientMessage(playerid, -1, ggString);

                SetSpawnInfo(playerid, Player[playerid][PlayerTeam], Player[playerid][Skin], 0, 0, 0, 0, 0, 0, 280, 0, 0, 0);
                SpawnPlayer(playerid);
            }
Reply


Messages In This Thread
Saving team help - by KinderClans - 07.08.2018, 13:33
Re: Saving team help - by zPain - 07.08.2018, 22:03
Re: Saving team help - by KinderClans - 07.08.2018, 22:20
Re: Saving team help - by Tenka - 08.08.2018, 06:35
Re: Saving team help - by KinderClans - 08.08.2018, 09:46
Re: Saving team help - by DerickClark - 08.08.2018, 09:52
Re: Saving team help - by KinderClans - 08.08.2018, 09:55
Re: Saving team help - by DerickClark - 08.08.2018, 10:09
Re: Saving team help - by KinderClans - 08.08.2018, 10:29
Re: Saving team help - by DerickClark - 08.08.2018, 10:41

Forum Jump:


Users browsing this thread: 1 Guest(s)