if (strcmp(cmd, "/deletarconta", true)==0) // By Wgrafael { if (PlayerInfo[playerid][pAdmin] >= 1338) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COR, "USAGE: /deletarconta [PlayerName]"); // Defina 'cor' para COR do texto. return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "AdmWarning: %s deletou a conta de %s", sendername,tmp); ABroadCast(COR,string,1); // Defina 'cor' para COR do texto. format(string, 256, "AdmWarning: %s deletou a conta de %s", sendername,tmp); format(string,sizeof(string),"%s.ini",tmp); fremove(string); SendClientMessage(playerid, COR, "Jogador Deletado"); // Defina 'cor' para COR do texto. } return 1; }
if (strcmp(cmd, "/resetarconta", true)==0)
{
if((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >=6)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USE: /resetarconta [Nome_Sobrenome]");
return 1;
}
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(giveplayer));
format(string, 256, "[ADMIN]: %s resetou a conta de %s", sendername, tmp);
ABroadCast(COLOR_YELLOW,string,1);
format(string, 256, "[ADMIN]: %s resetou a conta de %s", sendername, tmp);
printf(string);
format(string,sizeof(string),"%s.ini",tmp);
fremove(string);
SendClientMessage(playerid, COLOR_WHITE, "Player resetado");
SendRconCommand(string);
SendRconCommand("reloadbans");
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
}
return 1;
}
tbm vo ajuda pra ver no que da nй ta ae :
pawn Код:
|