Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SendDeathMess #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 42 additions & 10 deletions cb/cbList.inc
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*
CB:�������� ���������� ����������� � cbFunctionArray.inc -> cmBlockList
����� ������������ ������������� � ��������� cbBlockSort_
CB:íàçâàíèå ïåðåìåííîé îáúÿâëÿåòñÿ â cbFunctionArray.inc -> cmBlockList
Çàòåì çàïèñûâàåòñÿ èíäåòåôèêàòîð â êàòåãîðèþ cbBlockSort_

ReturnCommand(playerid, params, world); - �������� �� params[] cbReturnList.inc -> params[]
��� ���������� �������������� ������������ ������ �� ���� #name# � �.�.
ReturnCommand(playerid, params, world); - Ïåðåäàåò èç params[] â cbReturnList.inc -> params[]
Òàì ïðîèñõîäèò ïðåîáðàçîâàíèå âîçâðàùàåìûõ êîìàíä ïî òèïó #name# è ò.ä.

���� ������� ����� ���������� �� ������ ������� ���� ��������:
Åñëè ôóíêöèÿ ìîæåò âûïîëíÿòñÿ íà ãðóïïó èãðîêîâ åñòü ïðîâåðêà:
if(cmBlock[world][blockid][cbMode])

�������� ID ������ � ID ����� ��� ����������� ����������� ������ ����������� �������� � ������� "������ �������"
Ïåðåäà÷à ID èãðîêà è ID áëîêà äëÿ ïðîõîæäåíèÿ ñîîòâåòñâèÿ èãðîêà òðåáîâàíèÿì ïðîâåðêè â ðàçäåëå "Ãðóïïà èãðîêîâ"
if(!cbCompareMode(i, blockid))
*/

Expand Down Expand Up @@ -721,7 +721,7 @@ CB:giveVehicle(playerid, blockid, world, params[])

if(vehicleid == -1)
{
SendErrorMessage(playerid, "��������� ����� ����������.");
SendErrorMessage(playerid, "Äîñòèãíóò ëèìèò òðàíñïîðòà.");
return CBWrongData(playerid, blockid, world);
}

Expand All @@ -746,7 +746,7 @@ CB:giveVehicle(playerid, blockid, world, params[])

if(vehicleid == -1)
{
SendErrorMessage(playerid, "��������� ����� ����������.");
SendErrorMessage(playerid, "Äîñòèãíóò ëèìèò òðàíñïîðòà.");
return CBWrongData(playerid, blockid, world);
}

Expand Down Expand Up @@ -3005,7 +3005,7 @@ CB:ShowDialog(playerid, blockid, world, params[])
continue;

pData[i][pRetVal][10] = callBlock;
Dialog_Show(i, CBMainDialog, type, "\t{FFFFFF}[ ��������� ���� ]", str, "Y", "X");
Dialog_Show(i, CBMainDialog, type, "\t{FFFFFF}[ Êîìàíäíûé áëîê ]", str, "Y", "X");
}

return true;
Expand All @@ -3015,7 +3015,7 @@ CB:ShowDialog(playerid, blockid, world, params[])
return true;

pData[playerid][pRetVal][10] = callBlock;
Dialog_Show(playerid, CBMainDialog, type, "\t{FFFFFF}[ ��������� ���� ]", str, "Y", "X");
Dialog_Show(playerid, CBMainDialog, type, "\t{FFFFFF}[ Êîìàíäíûé áëîê ]", str, "Y", "X");
return true;
}

Expand Down Expand Up @@ -3983,6 +3983,38 @@ CB:CallTriggerBlock(playerid, blockid, world, params[])
return true;
}

CB:SendDeathMess(playerid, blockid, world, params[])
{
new killer, plyid, weapon;

ReturnCommand(playerid, params, world);

if(sscanf(params, "ddd", killer, plyid, weapon))
return CBWrongData(playerid, blockid, world);

if(cmBlock[world][blockid][cbMode])
{
foreach(new i : Player)
{
if(world != GetPlayerVirtualWorld(i))
continue;

if(!cbCompareMode(i, blockid))
continue;

SendDeathMessageToPlayer(i, killer, plyid, weapon)
}

return true;
}

if(world != GetPlayerVirtualWorld(playerid))
return true;

SendDeathMessageToPlayer(playerid, killer, plyid, weapon)
return true;
}

/*
CB:donate(playerid, params[])
{
Expand Down