22.08.2011, 10:57
how can i make this
so it unlocks ALL accounts? please edit and give me ,thx in advance
pawn Code:
if (strcmp(cmd, "/deleteacc", true)==0)
{
if((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >=3)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /deleteacc [PlayerName]");
return 1;
}
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(giveplayer));
format(string, 256, "AdmWarning: %s has deleted account: %s", sendername, tmp);
ABroadCast(COLOR_LIGHTRED,string,1);
format(string, 256, "AdmWarning: %s has deleted account: %s", sendername, tmp);
printf(string);
SendClientMessage(playerid, COLOR_WHITE, "Player unbanned");
SendRconCommand(string);
SendRconCommand("reloadbans");
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
}
return 1;
}