Exort
Умник
PHP:
public OnPlayerDeath(playerid, killerid, reason)
{
if(PlayerInfo[killerid][pE] == 1 && PlayerInfo[killerid][pS] == 2 && killerid != INVALID_PLAYER_ID)
{
if(PlayerInfo[playerid][pW] == 1)
{
PlayerInfo[killerid][pT] += 1;
SendClientMessage(killerid,-1,"Протекция");
}
if(PlayerInfo[playerid][pS] == 2 && PlayerInfo[playerid][pE] == 1)
{
PlayerInfo[killerid][pT] += 1;
SendClientMessage(killerid,-1,"Протекция.");
}
if(PlayerInfo[playerid][pS] == 3)
{
PlayerInfo[killerid][pT] += 5;
SendClientMessage(killerid,-1,"Протекция");
}
if(PlayerInfo[playerid][pS] == 1 || PlayerInfo[playerid][pS] == 3 || PlayerInfo[playerid][pS] == 2)
{
SendClientMessage(playerid,-1,"Протекция");
}
new memory[11];
format(memory, sizeof(memory), "%d", PlayerInfo[killerid][pT]);
PlayerTextDrawSetString(killerid, E[0][killerid], memory);
if(PlayerInfo[killerid][pT] >= 100)
{
for(new t; t != 3; t++) TextDrawHideForPlayer(playerid, E[t]);
PlayerInfo[killerid][pT] = 0;
PlayerInfo[killerid][pE] = 2;
ShowPlayerDialog(killerid, D_Refuse, DIALOG_STYLE_MSGBOX, "Протекция","Протекция","Далее","");
}
}
return 1;
}
