#10

Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
	clickp[playerid] = clickedplayerid;
	ShowPlayerDialog(playerid,clickplmenu,DIALOG_STYLE_LIST,"Меню игрока","Посмотреть статистику\nВызвать на дуэль\nНаписать личное сообщение","OK","Закрыть");
	return 1;
}
У меня все работает! =)
Help please do a background check that would cause the player could not himself to a duel.

Код:
new pName[MAX_PLAYER_NAME];
    if(Duel[clickp[playerid]]  == playerid) return SendError(playerid, "Вы не можете вызвать на дуэль самого себя!");
    GetPlayerName(playerid, pName, sizeof(pName));
    Duel[clickp[playerid]] = playerid;
    g_GotInvitedToDuel[clickp[playerid]] = playerid;
	g_HasInvitedToDuel[playerid] = 1;
    format(string,sizeof string,"Игрок %s(%i) вызывает Вас на дуэль\nВы согласны?",pName,playerid);
    ShowPlayerDialog(clickp[playerid],AccDuel,DIALOG_STYLE_MSGBOX,"Вызов на дуэль:",string,"Принять","Отклонить");
Reply


Messages In This Thread
Duel - by [HHT]DRON - 08.07.2012, 13:19
Re: Duel - by lelemaster - 08.07.2012, 15:30
Re: Duel - by [HHT]DRON - 08.07.2012, 18:12
Re: Duel - by lelemaster - 10.07.2012, 07:50
Re: Duel - by [HHT]DRON - 10.07.2012, 09:15
Re : Duel - by lelemaster - 10.07.2012, 17:04
Re: Duel - by [HHT]DRON - 11.07.2012, 08:01
Re: Duel - by [HHT]DRON - 12.07.2012, 11:58
Re : Duel - by lelemaster - 12.07.2012, 12:51
Re: Duel - by [HHT]DRON - 12.07.2012, 14:28

Forum Jump:


Users browsing this thread: 2 Guest(s)