Change Value Players!
#5

Yes.
"OnPlayerDisconnect":
HTML Code:
ResetPlayerData(playerid);
HTML Code:
stock ResetPlayerData(playerid)
{
    pInfo[playerid][pID] = -1;
    pInfo[playerid][pPass] = '\0';
    pInfo[playerid][pAdmin] = 0;
    pInfo[playerid][pHelper] = 0;
    pInfo[playerid][pMoney] = 0;
    pInfo[playerid][pScore] = 0;
    pInfo[playerid][pStatus] = 0;
    pInfo[playerid][pReg] = 0;
    pInfo[playerid][pSex] = 0;
    pInfo[playerid][pAge] = 0;
    pInfo[playerid][pMute] = -1;
    pInfo[playerid][pHoursPlayed] = 0;
    pInfo[playerid][pRPoints] = 0;
    pInfo[playerid][pBankMoney] = 2500;
    pInfo[playerid][pWantedLevel] = 0;
    pInfo[playerid][pPhoneBook] = 0;
    pInfo[playerid][pJob] = 0;
    pInfo[playerid][pJailed] = -1;
    pInfo[playerid][pPremium] = 0;
    pInfo[playerid][pMaterials] = 0;
    pInfo[playerid][pDrugs] = 0;
    pInfo[playerid][pLeader] = 0;
    pInfo[playerid][pMember] = 0;
    pInfo[playerid][pRank] = 0;
    pInfo[playerid][pPhoneNumber] = 0;
    pInfo[playerid][pHouse] = 355;
    pInfo[playerid][pBusiness] = 355;
    pInfo[playerid][pCarLic] = 0;
    pInfo[playerid][pFlyLic] = 0;
    pInfo[playerid][pBoatLic] = 0;
    pInfo[playerid][pGunLic] = 0;
    pInfo[playerid][pCarLicTime] = 0;
    pInfo[playerid][pFlyLicTime] = 0;
    pInfo[playerid][pBoatLicTime] = 0;
    pInfo[playerid][pGunLicTime] = 0;
    pInfo[playerid][pWarns] = 0;
    pInfo[playerid][pFWarns] = 0;
    pInfo[playerid][pDeaths] = 0;
    pInfo[playerid][pKills] = 0;
    pInfo[playerid][pLastLogin] = '\0';
    return true;
}
Reply


Messages In This Thread
Change Value Players! - by norton2 - 25.10.2015, 08:07
Re: Change Value Players! - by ATGOggy - 25.10.2015, 08:09
Re: Change Value Players! - by norton2 - 25.10.2015, 08:14
Re : Change Value Players! - by StreetRP - 25.10.2015, 08:36
Re: Change Value Players! - by norton2 - 25.10.2015, 08:43

Forum Jump:


Users browsing this thread: 1 Guest(s)