Jump to content
  • 0

UnLock


zroT

Question

[pawn] if(strcmp(cmd, "/unban", true) == 0)

{

if (PlayerInfo[playerid][pAdmin] >= 1)

{

tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /unban [playerid/PartOfName]");

return 1;

}

giveplayerid = ReturnUser(tmp);

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.");

        }

    }

}

}

else

{

SendClientMessage(playerid, COLOR_GRAD1, "You must be a level 3 admin to do this command.");

}

return 1;

}[/pawn]

Cum fac sa mearga??

stats.php?page=2&ip=samp.zonek.ro&port=7777
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.