07.03.2012, 01:28
no esta bien echo miralo bien. si una persona esta baneado y haces unban como puede estar conectado en server para utulizar
lo que quero hacer es que cuando haces /aunlock que haga un funcion dentro de .ini.
por ejemplo si esta baneado Nombre.ini
y haces /aunlock Nombre quero que desbloquee usuario..
pawn Код:
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(PlayerInfo[giveplayerid][pLocked] == 1)
{
PlayerInfo[giveplayerid][pLocked] = 0;
TogglePlayerControllable(giveplayerid, 1);
SendClientMessage(playerid, COLOR_YELLOW, "Account unlocked succesfuly.");
por ejemplo si esta baneado Nombre.ini
y haces /aunlock Nombre quero que desbloquee usuario..