PlayerConnect
format(Celula, sizeof(Celula), Orgs, PlayerName(playerid));
if(dini_Exists(Celula))
{
PlayerInfo[playerid][pBALLAS] = dini_Int(Celula, "BALLAS");
PlayerInfo[playerid][pCHINES] = dini_Int(Celula, "CHINES");
PlayerInfo[playerid][pASFARC] = dini_Int(Celula, "ASFARC");
PlayerInfo[playerid][pSWAT] = dini_Int(Celula, "SWAT");
PlayerInfo[playerid][pFBI] = dini_Int(Celula, "FBI");
PlayerInfo[playerid][pGLOBO] = dini_Int(Celula, "Reporter");
}
PlayerDisconnect
if(PlayerInfo[playerid][pBALLAS] > 0)
{
format(Celula, sizeof(Celula), Orgs, PlayerName(playerid));
if(!dini_Exists(Celula)) dini_Create(Celula);
dini_IntSet(Celula, "BALLAS", PlayerInfo[playerid][pBALLAS]);
}
if(PlayerInfo[playerid][pCHINES] > 0)
{
format(Celula, sizeof(Celula), Orgs, PlayerName(playerid));
if(!dini_Exists(Celula)) dini_Create(Celula);
dini_IntSet(Celula, "CHINES", PlayerInfo[playerid][pCHINES]);
}
if(PlayerInfo[playerid][pASFARC] > 0)
{
format(Celula, sizeof(Celula), Orgs, PlayerName(playerid));
if(!dini_Exists(Celula)) dini_Create(Celula);
dini_IntSet(Celula, "ASFARC", PlayerInfo[playerid][pASFARC]);
}
if(PlayerInfo[playerid][pSWAT] > 0)
{
format(Celula, sizeof(Celula), Orgs, PlayerName(playerid));
if(!dini_Exists(Celula)) dini_Create(Celula);
dini_IntSet(Celula, "SWAT", PlayerInfo[playerid][pSWAT]);
}
if(PlayerInfo[playerid][pFBI] > 0)
{
format(Celula, sizeof(Celula), Orgs, PlayerName(playerid));
if(!dini_Exists(Celula)) dini_Create(Celula);
dini_IntSet(Celula, "FBI", PlayerInfo[playerid][pFBI]);
}
if(PlayerInfo[playerid][pREPORTER] > 0)
{
format(Celula, sizeof(Celula), Orgs, PlayerName(playerid));
if(!dini_Exists(Celula)) dini_Create(Celula);
dini_IntSet(Celula, "REPORTER", PlayerInfo[playerid][pREPORTER);
}
|
Vocк usar ZCMD e SSANCF ?
? ? e vocк nгo me respondeu aqui https://sampforum.blast.hk/showthread.php?pid=1785093#pid1785093 !! |