11.02.2012, 13:31
pawn Код:
new
SwatScore = 0,
NarcoScore = 0
;
new tmpstr[50];
public OnPlayerDeath(playerid, killerid, reason)
{
if(GetPlayerTeam(killerid) == 1)
{
SwatScore++;
format(tmpstr,sizeof(tmpstr),"SWAT: %d NARCOS: %d",SwatScore,NarcoScore);
GameTextForPlayer(killerid, tmpstr, 3000, 4);
GameTextForPlayer(playerid, tmpstr, 3000, 4);
}
if(GetPlayerTeam(killerid) == 2)
{
NarcoScore++;
format(tmpstr,sizeof(tmpstr),"SWAT: %d NARCOS: %d",SwatScore,NarcoScore);
GameTextForPlayer(killerid, tmpstr, 3000, 4);
GameTextForPlayer(playerid, tmpstr, 3000, 4);
}
return 1;
}