Jump to content
  • 0

Intrebare


stefanel994

Question

am facut comanda asta pentru unban

	if(strcmp(cmd, "/unlockaccount", true) == 0)
	{
		if (PlayerInfo[playerid][pAdmin] >= 3)
		{
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /unlockaccount [playerid/PartOfName]");
				return 1;
			}
			giveplayerid = ReturnUser(tmp);
			if(IsPlayerConnected(giveplayerid))
			{
			    if(giveplayerid != INVALID_PLAYER_ID)
			    {
			        if(PlayerInfo[giveplayerid][pBlocat] == 1)
			        {
			            PlayerInfo[giveplayerid][pBlocat] = 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;
	}

cand dau /unlockaccount si numele palyerului caruia vreau sa ii dau unban nu apare nimic daca scriu doar /unlockaccount apare use /unlockaccount playername/ID , oare de ce? help va rog.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • 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.