if(strcmp(cmd,"/ultimologin",true)==0) { if(PlayerInfo[playerid][pAdmin] >= 3000) { if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != DONO) { SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo estб em modo Admin USE: /jogar"); return true; } tmp = strtok(cmdtext,idx); if(!strlen(tmp)) { SendClientMessage(playerid,COLOR_GRAD1,"USE: /ultimologin [NOME_SOBRENOME]"); return true; } new stringul[64]; format(stringul, sizeof(stringul), "Contas/%s.ini", tmp); if(!DOF2_FileExists(stringul)) { SendClientMessage(playerid,COLOR_GRAD1,"Este Nick nгo existe no servidor, digite um nome correto EX: Nome_Sobrenome"); return true; } new Info[6][24]; new arquivo[64]; giveplayerid = ReturnUser(tmp); GetPlayerName(playerid, PlayerNome, sizeof(PlayerNome)); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); split(PlayerInfo[giveplayerid][pLastLogin],Info,'/'); format(arquivo, sizeof(arquivo), "Contas/%s.ini", OpenAccPlayer, tmp); format(string,sizeof(string), " %s - Ъltimo Login: [%d/%d/%d - %d:%d:%d]", tmp, strval(Info[0]),strval(Info[1]),strval(Info[2]),strval(Info[3]),strval(Info[4]),strval(Info[5])); ABroadCast(COLOR_YELLOW,string,1); return true; } return 1; } |
if(strcmp(cmd,"/ultimologin",true)==0){
if(PlayerInfo[playerid][pAdmin] >= 3000){
if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != DONO){
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo estб em modo Admin USE: /jogar");
return true;
}
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)){
SendClientMessage(playerid,COLOR_GRAD1,"USE: /ultimologin [NOME_SOBRENOME]");
return true;
}
new stringul[64];
format(stringul, sizeof(stringul), "Contas/%s.ini", tmp);
if(!DOF2_FileExists(stringul))
{
SendClientMessage(playerid,COLOR_GRAD1,"Este Nick nгo existe no servidor, digite um nome correto EX: Nome_Sobrenome");
return true;
}
new Info[ 6 ][ 24 ],arquivo[ 64 ];
giveplayerid = ReturnUser( tmp );
GetPlayerName(playerid, PlayerNome, sizeof(PlayerNome));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
split(PlayerInfo[giveplayerid][pLastLogin],Info,'/');
format(arquivo, sizeof(arquivo), "Contas/%s.ini", OpenAccPlayer, tmp);
format(string,sizeof(string), " %s - Ъltimo Login: [%d/%d/%d - %d:%d:%d]", tmp, strval(Info[0]),strval(Info[1]),strval(Info[2]),strval(Info[3]),strval(Info[4]),strval(Info[5]));
ABroadCast(COLOR_YELLOW,string,1);
return true;
}