11.02.2015, 19:25
Код:
CarregarConta(playerid) { if(DOF2_FileExists(Contas(playerid))) { if(IsPlayerConnected(playerid)) { PlayerInfo[playerid][Admin] = DOF2_GetInt(Contas(playerid),"Admin"); SetPlayerScore(playerid, DOF2_GetInt(Contas(playerid),"Score")); GivePlayerMoney(playerid, DOF2_GetInt(Contas(playerid),"Dinheiro")); PlayerInfo[playerid][ClanDKF] = DOF2_GetInt(Contas(playerid),"ClanDKF"); pVip[playerid][0] = DOF2_GetInt(Contas(playerid),"pTime"); pVip[playerid][1] = DOF2_GetInt(Contas(playerid),"pVip"); ConvidadoGrupoID[playerid] = DOF2_GetInt(Contas(playerid),"Grupo ID"); DOF2_SaveFile(); if(PlayerInfo[playerid][Admin] > 1) { PlayerInfo[playerid][LabelAdmin] = Create3DTextLabel("Administrador {FFFFFF}®",-1,0.0,0.0,0.5,50,-1); } } } return 1; }