Twillix
Новичок
Почему то убийства не зачитываются, кто может с этим помочь?
Вот код с OnPlayerDeath
CaptureUpd
При начинании капта вот такой код
Вот код с OnPlayerDeath
PHP:
new bandkiller = pData[killerid][pFraction];
new bandkill = pData[playerid][pFraction];
if(bandkiller != bandkill && GangInfo[bandkiller][capture] && GangInfo[bandkill][capture] == 1 &&
GangInfo[bandkiller][captureid] == GangInfo[bandkill][captureid])
{
GangInfo[bandkiller][score] = GangInfo[bandkiller][score]+1;
foreach(new i: Player)
{
if(bandkiller != pData[i][pFraction] && bandkill != pData[i][pFraction]) continue;
SendDeathMessageToPlayer(i,killerid, playerid, reason);
}
CaptureUpd(bandkiller);
}
PHP:
stock CaptureUpd(bandkiller)
{
new SCORE11[128];
new SCORE22[128];
foreach(new i: Player)
{
if(!IsAGang(i)) continue;
if(GangInfo[bandkiller][gangnumber] == 1)
{
format(SCORE11, 64, "%d", GangInfo[bandkiller][score]);
TextDrawSetString(capture_table[4][GangInfo[bandkiller][table_id]], SCORE11);
}
else
{
format(SCORE22, 64, "%d", GangInfo[bandkiller][score]);
TextDrawSetString(capture_table[5][GangInfo[bandkiller][table_id]], SCORE22);
}
}
}
PHP:
new
faction = pData[playerid][pFraction];
GZMZ[i][gNapad] = faction;
ZoneOnBattle[i] = 1;
GangInfo[faction][table_id] = IsCapture;
GangInfo[GZMZ[i][gFrak]][table_id] = IsCapture;
IsCapture++;
GangInfo[faction][capture] =
GangInfo[GZMZ[i][gFrak]][capture] = 1;
GangInfo[GZMZ[i][gFrak]][captureid] =
GangInfo[faction][captureid] = faction;
GangInfo[faction][gangnumber] = 1;
GangInfo[GZMZ[i][gFrak]][gangnumber] =
GangInfo[faction][score] =
GangInfo[GZMZ[i][gFrak]][score] = 0;
capture_table_show(faction, GZMZ[i][gFrak]);
return 1;
